Skip to content

SEV-SNP Cannot boot guest ubuntu:24.04 to install #233

Description

@haruki3hhh

Hi,
I try to build the SEV-SNP env in my machine.

In host, I think the env is built successfully:

name@huasheng:~/AMDSEV$ uname -r
6.11.0-rc3-snp-host-85ef1ac03941

name@huasheng:~/AMDSEV$ sudo dmesg | grep -i -e rmp -e sev
[    0.000000] SEV-SNP: RMP table physical range [0x00000000a0900000 - 0x00000000a4efffff]
[   33.059076] ccp 0000:06:00.5: sev enabled
[   33.194974] ccp 0000:06:00.5: SEV firmware update successful
[   33.486157] ccp 0000:06:00.5: SEV API:1.55 build:21
[   33.486167] ccp 0000:06:00.5: SEV-SNP API:1.55 build:21
[   33.498331] kvm_amd: SEV enabled (ASIDs 30 - 1006)
[   33.498335] kvm_amd: SEV-ES enabled (ASIDs 1 - 29)
[   33.498338] kvm_amd: SEV-SNP enabled (ASIDs 1 - 29)

name@huasheng:~/AMDSEV$ cat /sys/module/kvm_amd/parameters/sev
Y
name@huasheng:~/AMDSEV$ cat /sys/module/kvm_amd/parameters/sev_es 
Y
name@huasheng:~/AMDSEV$  cat /sys/module/kvm_amd/parameters/sev_snp 
Y

Then I try follow the steps here:
https://github.com/AMDESE/AMDSEV?tab=readme-ov-file#ubuntu18-prep-vm

./usr/local/bin/qemu-img create -f qcow2 ubuntu-24.04.qcow2 50G
cp ./usr/local/share/qemu/OVMF_VARS.fd OVMF_VARS.fd
./launch-qemu.sh -hda ubuntu-24.04.qcow2 -cdrom ubuntu-24.04.1-live-server-amd64.iso

ubuntu-24.04.1-live-server-amd64.iso I downloaded from: https://releases.ubuntu.com/24.04/
image

But the screen stuck in here:

InstallProtocolInterface: 4006C0C1-FCB3-403E-996D-4A6C8724E06D 7AE72F30
InstallProtocolInterface: 09576E91-6D3F-11D2-8E39-00A0C969723B 7AE72F40
EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
CpuDxe: 5-Level Paging = 0
MpInitChangeApLoopCallback() done!
SetUefiImageMemoryAttributes - 0x000000007EAE4000 - 0x0000000000009000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x000000007EADD000 - 0x0000000000007000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x000000007EAD7000 - 0x0000000000006000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x000000007EAD0000 - 0x0000000000007000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x000000007EAC0000 - 0x0000000000010000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x000000007EABB000 - 0x0000000000005000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x000000007EAB4000 - 0x0000000000007000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x000000007EAB0000 - 0x0000000000004000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x000000007EAAB000 - 0x0000000000005000 (0x0000000000000008)
image

The qemu CMD running is:

/home/name/AMDSEV/usr/local/bin/qemu-system-x86_64 -enable-kvm -cpu EPYC-v4 \
-machine q35 -smp 4,maxcpus=255 -m 2048M,slots=5,maxmem=10240M \
-no-reboot \
-drive if=pflash,format=raw,unit=0,file=/home/name/AMDSEV/usr/local/share/qemu/OVMF_CODE.fd,readonly \
-drive if=pflash,format=raw,unit=1,file=/home/name/AMDSEV/ubuntu-24.04.fd \
-drive file=/home/name/AMDSEV/ubuntu-24.04.1-live-server-amd64.iso,media=cdrom \
-boot d \
-drive file=/home/name/AMDSEV/ubuntu-24.04.qcow2,if=none,id=disk0,format=qcow2 \
-device virtio-scsi-pci,id=scsi0,disable-legacy=on,iommu_platform=true \
-device scsi-hd,drive=disk0 \
-nographic \
-monitor pty \
-monitor unix:monitor,server,nowait

Could you help me about it?

Appreciate!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions