Regarding #2 how exactly do I call things to reproduce this OVMF bug behaviour,
   >> Any kind of setup, download and commandline.
      Please refer to the following steps:

             a) Tested on Ubuntu Host Kernel version: 6.11.0-19-generic

             b) Download and build the latest QEMU upstream(9.1+) 
                (Reason: Current QEMU noble package version(8.2.2) has no SNP 
support for QEMU SNP VM launch (A separate issue unlinked with this OVMF bug))  
                
                  # Download QEMU 9.1+ source code
                  wget https://download.qemu.org/qemu-9.1.3.tar.xz
                  tar xvJf qemu-9.1.3.tar.xz
                  cd qemu-9.1.3
                  
                  #Installed missing package dependencies on my noble host for 
QEMU build process
                 
                  # Build QEMU 9.1.3
                  ./configure
                  make
             
            c) Install the OVMF noble package
               sudo apt install -y ovmf
            
            d) Download and configure theQCOW2 guest image with the cloud-init 
user and meta-data(GUEST_IMAGE.qcow2)

            e) Launch SNP QEMU VM with following qemu commandline(bios that 
points to noble OVMF.fd filepath):
               
                ${HOME}/qemu-9.1.3/build/qemu-system-x86_64 \
               -enable-kvm \
               -cpu EPYC-v4 \
               -nographic \
               -device virtio-scsi-pci,id=scsi0 \
               -device scsi-hd,drive=disk0 \
               -drive 
if=none,id=disk0,format=qcow2,file=<GUEST_IMAGE.qcow2-file-path> \
               -bios /usr/share/ovmf/OVMF.fd \ 
               -object 
memory-backend-memfd,id=ram1,size=2048M,share=true,prealloc=false \
               -machine memory-backend=ram1,confidential-guest-support=sev0 \
               -object sev-snp-guest,id=sev0,cbitpos=51,reduced-phys-bits=1

            f) Error: The above QEMU SNP Guest VM boot command hangs
                (This OVMF behaviour is found similar to the old GH Issue found 
in https://github.com/AMDESE/AMDSEV/issues/236)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2104069

Title:
  OVMF.fd file doesn't support SNP QEMU Guest Launch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/edk2/+bug/2104069/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to