Hi,

I am looking to use QEMU to run Intel TDX. I am using this repo
<https://github.com/canonical/tdx/tree/noble-24.04/guest-tools> as my
guide. My issue comes down to the following:

I am running the following command on two different Intel Xeon 6 machines
with TDX and SGX configured at the BIOS level and running Ubuntu 24.04.

qemu-system-x86_64 -accel kvm -m 4G -smp 16 -name
td,process=td,debug-threads=on -cpu host -object
'{"qom-type":"tdx-guest","id":"tdx","quote-generation-socket":{"type":
"vsock", "cid":"2","port":"4050"}}' -machine
q35,kernel_irqchip=split,confidential-guest-support=tdx,hpet=off -bios
/usr/share/ovmf/OVMF.fd -nographic -nodefaults -device
virtio-net-pci,netdev=nic0_td -netdev
user,id=nic0_td,hostfwd=tcp::10022-:22 -drive
file=~/tdx/guest-tools/image/tdx-guest-ubuntu-24.04-generic.qcow2,if=none,id=virtio-disk0
-device virtio-blk-pci,drive=virtio-disk0 -device
vhost-vsock-pci,guest-cid=3

I have two machines, an Xeon 8570 machine and an Xeon 6731E. The Xeon 6731E
machine I had to install the operating system. The Xeon 8570 came somewhat
preconfigured.

The command above on the 8570 machine spun up a TDX guest VM. The same
command on the Xeon 6731E machine failed with:

qemu-system-x86_64: KVM_TDX_INIT_VM failed: Invalid argument



This
<https://lore.kernel.org/lkml/fa3d75e8-c459-4b8e-b76a-e4209a238...@linux.intel.com/>
is all I could find relevant there.

What specific configuration differences should I be looking for between
these machines that might explain this?

Best wishes,
Freddie


-- 
e: freddie.woodr...@appliedblockchain.com
w: appliedblockchain.com
a:
 Level39, One Canada Square, Canary Wharf, London UK, E14 5AB
*t:    *+44 7748 453 287

Find us on Github <https://github.com/appliedblockchain/> / Linkedin
<https://www.linkedin.com/company/applied-blockchain/> / Medium
<https://medium.com/@AppBlockchain_> / Twitter
<https://twitter.com/appblockchain>

Reply via email to