miloserdoff commented on issue #10009: URL: https://github.com/apache/cloudstack/issues/10009#issuecomment-2526066320
@weizhouapache When I tried to launch the guest OS via qemu-system-x86_64, everything was fine. When I try to launch via libvirt qemu using launchSecurity type='sev-snp' it gives an error. error: internal error: QEMU unexpectedly closed the monitor (vm='i-2-323-VM'): SNP_LAUNCH_UPDATE ret=-5 fw_error=22 'Invalid parameter' SEV-SNP: CPUID validation failed for function 0x8000001d, index: 0x3, provided: eax:0x00000163, ebx: 0x03c0003f, ecx: 0x00003fff, edx: 0x00000006, expected: eax:0x00000163, ebx: 0x03c0003f, ecx: 0x00003fff, edx: 0x00000002 SEV-SNP: failed update CPUID page If I specify a different policy error: internal error: process exited while connecting to monitor: 2024-12-08T14:00:31.063779Z qemu-system-x86_64: -accel kvm: sev_snp_launch_start: SNP_LAUNCH_START ret=-22 fw_error=0 '' 2024-12-08T14:00:31.063852Z qemu-system-x86_64: -accel kvm: sev_common_kvm_init: failed to create encryption context 2024-12-08T14:00:31.104910Z qemu-system-x86_64: -accel kvm: failed to initialize kvm: Operation not permitted However, there are rights to the /dev/kvm folder. The user is in the kvm group. root@****:~# ls -la /dev/kvm crw-rw---- 1 root kvm 10, 232 Dec 8 14:15 /dev/kvm -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
