Closed kpadwal closed 2 years ago
Attaching the guest launch log. guest-launch.txt
The issue is resolved. I have booted the VM with kernel and initrd.
Hi kpadwal,
I'm facing the same issue as you were. Could you elaborate on how you solved it? Also could you specify which branch you were using as I see the launch-qemu script is different in each.
I copied the kernel and initrd of the guest kernel to the hypervisor and then booted the VM with the -kernel, -initrd, and -append arguments.
-machine q35 -smp 4,maxcpus=64 -m 2048M,slots=5,maxmem=30G -no-reboot -drive if=pflash,format=raw,unit=0,file=<>/AMDSEV/snp-release-2022-07-27/usr/local/share/qemu/OVMF_CODE.fd,readonly -netdev user,id=vmnic -device virtio-net-pci,disable-legacy=on,iommu_platform=true,netdev=vmnic,romfile= -drive file=/var/lib/libvirt/images/ubuntu-20.04.2_test.qcow2,if=none,id=disk0,format=qcow2 -device virtio-scsi-pci,id=scsi0,disable-legacy=on,iommu_platform=true -device scsi-hd,drive=disk0 -machine memory-encryption=sev0,vmport=off -object sev-snp-guest,id=sev0,cbitpos=51,reduced-phys-bits=1 -kernel <>/guest_kernel/vmlinuz-5.19.0-rc6-snp-guest-a7065246cf78 -append "console=ttyS0 earlyprintk=serial root=/dev/sda2" -initrd <>/guest_kernel/initrd.img-5.19.0-rc6-snp-guest-a7065246cf78 -nographic -monitor pty -monitor unix:monitor,server,nowait
Hi,
I am trying to launch SEV-SNP guest from an Ubuntu 20.04.2 host. I have followed the instructions from https://github.com/AMDESE/AMDSEV/tree/sev-snp-devel, still, guest is stuck while its launch,
Host kernel:
Guest:
Trying to launch the guest, qcow2 file has sev-snp guest kernel,
./launch-qemu.sh -hda /var/lib/libvirt/images/ubuntu-sev-snp-20.04.2.qcow2 -sev-snp
Any ideas on fixing this issue would be greatly appreciated!
Thanks, Kiran