Open morbitzer opened 5 years ago
I see that you are trying to install debian-9.6.0-amd64-netinst.iso . It is important to note that the guest kernel must be SEV aware, SEV guest patches was accepted in kernel >= 4.15. Do you know the kernel version used in debian-9.6.0-amd64-netinst.iso ? if its < 4.15 then you will not able to boot it as a SEV guest.
Thanks for the hint, it does indeed work when using ubuntu. I tried with the latest debian-installer, but that also didn't work. Might be a problem with the debian installer.
However, I'm still not able to boot the disk image image I used previously for the SEV-encrypted VM. (This was the early process of creating a SEV-kernel on your host, and moving it to the VM ). Is there a way to still use the old images?
@codomania Even with the latest Ubuntu desktop 18.04, I still can not boot the guest with qemu, just boot into the UEFI interactive shell every time. Could you please provide a valid guest for me?
Alright, I managed to fix that problem.
Liaojinghui
@Liaojinghui Hi, could you please provide your solution? I encountered the same situation.
Reference in n
For me, it was about OVMF_VARS.fd and .qcow2, i fixed the problem by creating new OVMF_VARS.fd and .qcow2. But I can not remeber more detail, that is too long ago.
I successfully installed everything according to the README. The only changes I had to make:
disable AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT in the kernel. (See #14). However, I was still able to run SEV encrypted VMs previously even with AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT disabled.
Configure qemu with
--disable-werror
. Otherwise, the compilation would stop due to some warnings:If I now try to start a VM with
sudo launch-qemu.sh -hda ubuntu-18.04.qcow2 -cdrom debian-9.6.0-amd64-netinst.iso -vnc 0 -console serial
I am able to connect via VNC and see the boot menu from the CD. The last output I see at the console isHowever, as soon as I select an option, the VM reboots. I attached the full log for details. cdrom.log
When I try to directly start from a disk image, qemu tries to perform PXE instead. After unsuccessfully finishing PXE, it dropps me into UEFI Shell:
I also attached the log of this proccess. hda.log
From my understanding, something seems to be going wrong with the detection of the virtual disk image. I do see all partions of it in the UEFI shell, but somehow, qemu does not boot from it.