Public bug reported:

issue:
I have experienced multiple instances where windows VMS running on kvm froze. 
Some VMS occur once every one or two months. The symptoms include a black 
screen and no response from the console, the virtual cpu usage reaching 100%, 
and the virtual machine's network being inaccessible. The solution is to hard 
restart the virtual machine or perform a hot migration to another Host, which 
can immediately restore it. It is suspected to be a bug related to kvm or 
kernel. The guestvm log has been checked and no findings were found. Neither 
kvm nor kernel generates any special logs.


I find some similar issue from promox ,the solution is upgrade kernel to 6.8. 
https://forum.proxmox.com/threads/proxmox-8-0-kernel-6-2-x-100-cpu-issue-with-windows-server-2019-vms.130727/page-12

Hostinfo
CPU:Intel(R) Xeon(R) Silver 4309Y CPU @ 2.80GHz
OS:22.04.2 LTS (Jammy Jellyfish)
Kernel:Linux cn01 5.19.0-32-generic #33~22.04.1-Ubuntu 
QEMU:qemu-system-x86   1:6.2+dfsg-2ubuntu6.26--6.18

Guest info:
GuestOS: windows server 2019/windows Server 2016 /windows server 2022
virtio: 0.185/0.208/0.229/141

Guest vm xml:
<domain type='kvm' id='52'>
  <name>i-2-49-VM</name>
  <uuid>f588615a-251a-47a5-93fa-af346f60ae55</uuid>
  <description>Windows PV</description>
  <memory unit='KiB'>16777216</memory>
  <currentMemory unit='KiB'>16777216</currentMemory>
  <vcpu placement='static'>8</vcpu>
  <cputune>
    <shares>80</shares>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <sysinfo type='smbios'>
    <system>
      <entry name='manufacturer'>Apache Software Foundation</entry>
      <entry name='product'>CloudStack KVM Hypervisor</entry>
      <entry name='uuid'>f588615a-251a-47a5-93fa-af346f60ae55</entry>
    </system>
  </sysinfo>
  <os>
    <type arch='x86_64' machine='pc-i440fx-6.2'>hvm</type>
    <boot dev='hd'/>
    <boot dev='cdrom'/>
    <smbios mode='sysinfo'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
    <hyperv mode='custom'>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8096'/>
    </hyperv>
  </features>
  <cpu mode='host-passthrough' check='none' migratable='on'>
    <topology sockets='2' dies='1' cores='4' threads='1'/>
    <feature policy='require' name='vmx'/>
  </cpu>
  <clock offset='localtime'>
    <timer name='hypervclock' present='yes'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='network' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <auth username='cloudstack'>
        <secret type='ceph' uuid='82d65340-2c61-318a-91ce-897418d7d3ed'/>
      </auth>
      <source protocol='rbd' name='rbd/01d91285-03d4-4f10-85a1-cf86415b2bca' 
index='2'>
        <host name='172.16.100.2'/>
        <host name='172.16.100.3'/>
        <host name='172.16.100.4'/>
      </source>
      <target dev='vda' bus='virtio'/>
      <serial>01d9128503d44f1085a1</serial>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' 
function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <alias name='ide0-1-0'/>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0' model='piix3-uhci'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 
function='0x2'/>
    </controller>
    <controller type='usb' index='1' model='ehci'>
      <alias name='usb1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' 
function='0x0'/>
    </controller>
    <controller type='usb' index='2' model='nec-xhci'>
      <alias name='usb2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' 
function='0x0'/>
    </controller>
    <controller type='ide' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 
function='0x1'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' 
function='0x0'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    </controller>
    <interface type='bridge'>
      <mac address='1e:00:3a:00:02:3b'/>
      <source bridge='br1'/>
      <bandwidth>
        <inbound average='640000' peak='640000'/>
        <outbound average='640000' peak='640000'/>
      </bandwidth>
      <target dev='vnet71'/>
      <model type='virtio'/>
      <link state='up'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' 
function='0x0'/>
    </interface>
    <interface type='bridge'>
      <mac address='02:00:3b:d0:00:03'/>
      <source bridge='brbond1-1020'/>
      <bandwidth>
        <inbound average='640000' peak='640000'/>
        <outbound average='640000' peak='640000'/>
      </bandwidth>
      <target dev='vnet72'/>
      <model type='virtio'/>
      <link state='up'/>
      <alias name='net1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' 
function='0x0'/>
    </interface>
    <interface type='bridge'>
      <mac address='02:00:1b:0f:00:03'/>
      <source bridge='brbond1-1021'/>
      <bandwidth>
        <inbound average='640000' peak='640000'/>
        <outbound average='640000' peak='640000'/>
      </bandwidth>
      <target dev='vnet73'/>
      <model type='virtio'/>
      <link state='up'/>
      <alias name='net2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' 
function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/0'/>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/0'>
      <source path='/dev/pts/0'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <channel type='unix'>
      <source mode='bind' 
path='/var/lib/libvirt/qemu/i-2-49-VM.org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0' state='connected'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'>
      <alias name='input1'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input2'/>
    </input>
    <graphics type='vnc' port='5904' autoport='yes' listen='172.16.100.2'>
      <listen type='address' address='172.16.100.2'/>
    </graphics>
    <audio id='1' type='none'/>
    <video>
      <model type='qxl' ram='65536' vram='16384' vgamem='16384' heads='1' 
primary='yes'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' 
function='0x0'/>
    </video>
    <watchdog model='i6300esb' action='none'>
      <alias name='watchdog0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' 
function='0x0'/>
    </watchdog>
    <memballoon model='none'/>
  </devices>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+0:+0</label>
    <imagelabel>+0:+0</imagelabel>
  </seclabel>
</domain>

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2137130

Title:
  KVM guestvm freeze

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/2137130/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to