On Fri, 5 Dec 2025 at 14:27, Weber, Ricarda <[email protected]> wrote:
> I am currently stuck with starting an Intel TDX VM on a compatible hardware 
> (meaning that this machine has already successfully hosted an Intel td).
> When executing
>
> qemu-system-x86_64 \
> -enable-kvm \
> -nographic \
> -accel kvm \
> -m 4G -smp 4 \
> -name process=tdxvm,debug-threads=on \
> -cpu host \
> -object tdx-guest,id=tdx0 \
> -machine q35,hpet=off,kernel_irqchip=split,confidential-guest-support=tdx0 \
> -nographic -vga none \
> -bios /usr/share/ovmf/OVMF.fd \
> -kernel ./ubuntu-24.04-server-cloudimg-amd64-vmlinuz-generic \
> -drive 
> file=./ubuntu-24.04-server-cloudimg-amd64.img,if=virtio,format=qcow2,id=virtio-disk0
>  \
> -serial stdio \
> -nodefaults \
> -device virtio-net-pci,netdev=nic0 -netdev 
> user,id=nic0,hostfwd=tcp::10022-:22 \
> -device virtio-blk-pci,drive=virtio-disk0
>
> I get
> qemu-system-x86_64: -object tdx-guest,id=tdx0: Parameter 'qom-type' does not 
> accept value 'tdx-guest'

This error message means that "tdx-guest" is not an object
type that this QEMU binary knows about. Either:
 (1) this QEMU is too old, and pre-dates TDX support
     (it was introduced in QEMU 10.1, I think)
 (2) this QEMU was built without the TDX support enabled
     (but I think it is enabled by default if you are building
     an x86-64 target QEMU with KVM support)

You can check these with:
  qemu-system-x86_64 -version
    -- make sure it says you have at least 10.1
  qemu-system-x86_64 -accel help
    -- make sure 'kvm' is in the list of accelerators

thanks
-- PMM

Reply via email to