Ubuntu 20.04.04 machine freezes

If you have the same issue as @IlyaK (or another issue introduced with 5.4.0-122-generic) it should help:
issues occured again tonight after downgrade to 5.4.0-121-generic
but the system seems didn't freeze totally and the cpu Utilization also didn't reach to 100%

network connection didn't work

1659626966159.png
 
We are also seeing that hot migration from server with kernel 5.15.39-1-pve stops working once it's migrated to the other hypervisor. Migrating from server with new kernels we do not see the same behavior.
 
I have a problem when installing ubuntu server there is a crash "generating crash report" even though I installed it by defaultScreenshot 2023-08-04 224909.png
 
I just installed Promox and created my first VM(Ubuntu Server), and found the same issue, freezing without any way to restore the VM.
 
I just installed Promox and created my first VM(Ubuntu Server), and found the same issue, freezing without any way to restore the VM.
Just wanted to update and say that I resolved my issue by turning-off all power saving features, including c-states - hasn't happened since
 
I am having exactly the same issues - host CPU is a Celeron J6412 (Protectli VP2420), the Proxmox 8.0.3 host is running 2 VMs and is lightly loaded. This is my first Proxmox host, moving away from ESXi, so the setup is fairly vanilla.

The first VM, pfSense firewall, runs perfectly with no issues whatsoever. The Ubuntu 22.04.3 VM crashes sporadically, generally through the night it seems and when it has crashed the memory is always maxed out and one CPU is running 100%. As a test I increased the guest RAM from 8GB to 16GB and the crashes happen less frequently but still do happen.

@JohnBee Where did you disable power savings? In the Ubuntu guest or in Proxmox host? Any clues to what you did gratefully received.
 
I am having exactly the same issues - host CPU is a Celeron J6412 (Protectli VP2420), the Proxmox 8.0.3 host is running 2 VMs and is lightly loaded. This is my first Proxmox host, moving away from ESXi, so the setup is fairly vanilla.

The first VM, pfSense firewall, runs perfectly with no issues whatsoever. The Ubuntu 22.04.3 VM crashes sporadically, generally through the night it seems and when it has crashed the memory is always maxed out and one CPU is running 100%. As a test I increased the guest RAM from 8GB to 16GB and the crashes happen less frequently but still do happen.

@JohnBee Where did you disable power savings? In the Ubuntu guest or in Proxmox host? Any clues to what you did gratefully received.
Have you tried installing the latest Intel microcode? The freezing issue is a known one that is nearly always resolved by updating the microcode. If you search these forums, there's plenty of guides on how to do it and why it's required.
 
Thank you for the hint. My searches took me here and I updated the Debian Firmware Repository and ran
Code:
apt install intel-microcode
but I get the same results -
Code:
# grep microcode /proc/cpuinfo | uniq
microcode    : 0x1
# dmesg | grep microcode
[    0.295779] MDS: Vulnerable: Clear CPU buffers attempted, no microcode

Did I miss something here? The output from apt showed the latest microcode version that Ubuntu lists, is it necessary to go to the latest 'unstable' version? I ran this on the guest VM but should this be updating the microcode on the Proxmox host? Apologies for the beginner questions :)

Running
Code:
apt dist-upgrade
did give lots of updates mentioning firmware so perhaps that will help. I did this to the host too.
 
Last edited:
You'll need to add the non-free-firmware repositories to /etc/apt/sources.list

Code:
# Include Intel microcode firmware
deb http://ftp.debian.org/debian bookworm main contrib non-free-firmware
deb http://ftp.debian.org/debian bookworm-updates main contrib non-free-firmware

Then run:

Code:
sudo apt update && sudo apt install intel-microcode
 
New to proxmox but not virtualization, migrated from ESXi to Proxmox 8 and running several VMs including windows, ubuntu, etc. All of my VMs run fine except my Ubuntu VMs keep freezing. Only way to recover is to run "qm stop <100>" and restart the VM. I have 2 Ubuntu VMs and both freeze randomly my Windows, GNS3 Server, OpenSUSE all fine but my Ubuntu VMs having the issue. Disabled power controlls still same issue. Really frustrating to be honest. Also not running a NUC but using a Core i5:

pve1.png
 
Last edited:
Hi,
New to proxmox but not virtualization, migrated from ESXi to Proxmox 8 and running several VMs including windows, ubuntu, etc. All of my VMs run fine except my Ubuntu VMs keep freezing. Only way to recover is to run "qm stop <100>" and restart the VM. I have 2 Ubuntu VMs and both freeze randomly my Windows, GNS3 Server, OpenSUSE all fine but my Ubuntu VMs having the issue. Disabled power controlls still same issue. Really frustrating to be honest. Also not running a NUC but using a Core i5:

View attachment 67877
please share the output of pveversion -v and qm config <ID> for the problematic VMs. Is there something obviously different in the configuration of the Ubuntu VMs and the other VMs? Do you see anything interesting in the host or guest system logs around the time the issue occurs? Should a VM hang again, please share the output of qm status <ID> --verbose while it's hanging.
 
  • Like
Reactions: N1ghtS7alker
New to proxmox but not virtualization, migrated from ESXi to Proxmox 8 and running several VMs including windows, ubuntu, etc. All of my VMs run fine except my Ubuntu VMs keep freezing. Only way to recover is to run "qm stop <100>" and restart the VM. I have 2 Ubuntu VMs and both freeze randomly my Windows, GNS3 Server, OpenSUSE all fine but my Ubuntu VMs having the issue. Disabled power controlls still same issue. Really frustrating to be honest. Also not running a NUC but using a Core i5:

View attachment 67877
Crashed again shortly after booting, this time I was tailing the kernel, system and dmesg logs and all that was displayed was the logs below and the OS was frozen. could not click anywhere in the desktop:

pve2.png
 
Hi,

please share the output of pveversion -v and qm config <ID> for the problematic VMs. Is there something obviously different in the configuration of the Ubuntu VMs and the other VMs? Do you see anything interesting in the host or guest system logs around the time the issue occurs? Should a VM hang again, please share the output of qm status <ID> --verbose while it's hanging.
Hi Fiona, I apprecaite the help. Attached are the requested outputs for you. To also add I store this VM on an NFS share, I have other VMs also on that share that maintain running when the 2x Ubuntu boxes freeze. my version of OS is Ubuntu 20.04.6 LTS.
 

Attachments

Hmm, sounds like it might be a network issue. There is an error in the VM about CIFS and then about disk issues (and the virtual disk is stored on NFS). Can you also check the system journal of the host around the time the issue happened?
 
Thank you for that hint, I checked the logs and saw an OpenVPN crash right before. I am using a VPN to route my traffic differently and found an update for the provider so I updated and will monitor. My other Ubuntu VM does not have any VPN so if it crashes again I will gather the logs from it :) Thank you !!!
 
Well that wasnt it, I just had it crash again without the VPN even running. :(
With the same network-related error messages? Maybe there is some kind of instability then or was it overloaded?
 
Good afternoon
We have two hosts that are united in a cluster.
1st host: 88 x Intel(R) Xeon(R) CPU E5-2696 v4
2nd host: 96 x AMD EPYC 7642
When migrating from one host to another, the virtual machines were rebooted, in the properties of the virtual machine I had to change the processor type to KVM64 - the problem with the migration disappeared.
Virtual machines migrated from one host to another occurred live.

Another point has arisen that some virtual machines on Ubuntu freeze after migration after a random time, and some freeze even without migration, you can’t do anything in the console, only hard reset

What could be the problem? Can anyone tell me?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!