@jwp can you explain or link some documentation on how I can expose those feature one by one ? I’m not sure how to do that, but basically using kvm64, I’m loosing the AMD SEV feature which makes me unable to boot a Linux VM and inside that Linux VM boot Windows for instance.
EDIT :
Running virsh capabilities showed me most of the flags, I think but I’m still not sure where I should insert them in the XML, most likely inside <cpu>....</cpu>
Related, nesting VMs with hardware acceleration within disparate OS’s/hypervisors can be super fragile. Generally nesting is only supported on specifically tested combinations, and even then generally of the same hypervisor type.
Well, it may be broken occasionally, but it should never reset the host. It would be interesting to find out whether this happens on Windows as well. This could help to narrow down the issue to hypervisor or CPU issue.
So far testing kvm64 and a lot of feature exposed, the nested Windows VM did not boot past the Tianocore BIOS.
Changing the CPU to qemu64, it is working fine for now (if I hit a reset, I will update here), so far I haven’t had a reset on my host where previously exposing the whole CPU in pass through did reset my host.
I will most likely try to narrow down the feature flags list to what is explicitly needed + security flags.
I’m not alone, this is extremely frustrating for those who frequently use virtual machines, and this issue has existed for nearly a year without being fixed.
I’m facing the same issues for a while now. I could narrow it down that it doesn’t have anything to do with the VM (runs great on other machines) and probably also not much with my system, so I came here!
Host: FW 13 AMD 7840U, 6.10.13-3
VM: Win11 on qemu/libvirt
Random crashes when using the VM in a way that the host reboots. No logs whatsoever. Also, no observable patterns to when it happens.
I have a OSX VM which runs with CPU: qemu64, that doesn’t have these issues. So probably CPU features may be the right path.
I’m using 6.12.0-rc2-2-MANJARO now, and I haven’t had hard crashes so far.
I’m having the issue, though, that from time to time the Windows VM is stuck at boot. Don’t know what’s causing this. I had it before too, but it seems now to happen more frequently.