Failed to Start a VM and QEMU Reports an Error
Symptom
In an environment where a server powered by the new Kunpeng 920 processor model runs openEuler 22.03 LTS SP4 and QEMU 6.2.0, there is a probability that VMs fail to be started and the following error log is generated for QEMU:
- qemu-kvm: failed to create scratch VCPU with SVE enabled

- qemu-kvm: Failed to retrieve host CPU features

Key Process and Cause Analysis
There is a probability that QEMU instructs KVM to create vCPUs through ioctl but the creation fails. As a result, a QEMU abort error is triggered and the VM fails to be started. The creation of cVMs inherits this open source process. Therefore, the startup of cVMs is affected by this problem.


Conclusion and Solution
Try restarting the cVM for several times until the confidential VM is successfully started.
Parent topic: Troubleshooting Cases