Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

Unable to launch the Guest OS in device-passthrough branch #12

Description

@chenjikai111

I want to pass a NVMe device to VM using the device-passthrough branch, but I ran into an error that the system couldn't start, it's stuck here:

# qemu-system-x86_64 -enable-kvm -drive file=/root/tdx-noble-24.04/guest-tools/image/tdx-guest-ubuntu-24.04-generic.qcow2,if=virtio -smp cores=20,threads=2,sockets=2 -m 5G -cpu host -netdev user,id=n1,ipv6=off,hostfwd=tcp::2022-:22 -device virtio-net-pci,netdev=n1,mac=7c:c2:55:9f:64:58 -nographic -object tdx-guest,id=tdx -object memory-backend-ram,id=mem0,size=5G -machine q35,kernel-irqchip=split,confidential-guest-support=tdx,memory-backend=mem0 -bios /root/git/edk2_sn/OVMF.fd -vga none -nodefaults -serial stdio

BdsDxe: loading Boot0007 "Ubuntu" from HD(15,GPT,73CBA394-9E5D-4AAC-9A82-73A0939BDFF9,0x2800,0x35000)/\EFI\ubuntu\shimx64.efi
BdsDxe: starting Boot0007 "Ubuntu" from HD(15,GPT,73CBA394-9E5D-4AAC-9A82-73A0939BDFF9,0x2800,0x35000)/\EFI\ubuntu\shimx64.efi
Loading Linux 6.8.0-41-generic ...
Loading initial ramdisk ...
EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
EFI stub: Measured initrd data into PCR 9

I've patched QEMU and KVM, and my system has been activated TDX:
[ 3.787546] virt/tdx: module initialized

I didn't use the https://github.com/tianocore/edk2.git code to generate OVMF because there was a problem upgrading the subunits, and I replaced it with https://github.com/tlendacky/edk2.git > snp-fixes.

What is the cause of this mistake?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions