[Pkg-libvirt-maintainers] Bug#1086021: libvirt: cannot restore snapshots with host-model CPU

anonym anonym at riseup.net
Fri Oct 25 08:25:57 BST 2024


Source: libvirt
Version: 10.8.0-1
Severity: normal

Dear Maintainer,

When I try to restore a snapshot from a kvm domain that is configured
with `<cpu mode='host-model'/>` it fails with:

     error: operation failed: guest CPU doesn't match specification:
     missing features: vmx-invvpid-single-context-noglobals

FWIW, my host CPU is a 13th Gen Intel(R) Core(TM) i7-1370P, and I know
that a friend with a different model 13th gen Intel CPU also is
affected.

I can work around this by completely removing the <cpu> tag so the
hypervisor default is used.

Here's a reproducer:

---8<---

cat > /tmp/foo.xml <<-EOF
<domain type='kvm'>
   <name>foo</name>
   <cpu mode='host-model'/>
   <memory unit='MiB'>32</memory>
   <os>
     <type arch='x86_64'>hvm</type>
   </os>
</domain>
EOF

virsh create /tmp/foo.xml
virsh save foo /tmp/foo.save
virsh restore /tmp/foo.save
sudo rm -f /tmp/foo.xml /tmp/foo.save

--->8---

Cheers!

-- System Information:
Debian Release: trixie/sid
   APT prefers unstable
   APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.11.4 (SMP w/20 CPU threads; PREEMPT)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



More information about the Pkg-libvirt-maintainers mailing list