Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run the TDX guest image failed #8

Open
triplewz opened this issue Feb 25, 2025 · 7 comments
Open

Run the TDX guest image failed #8

triplewz opened this issue Feb 25, 2025 · 7 comments

Comments

@triplewz
Copy link

triplewz commented Feb 25, 2025

Hello, When I try to run the TDX guest image, It failed with the following message:
'virtio-9p-pci' is not a valid device model name

sudo /usr/libexec/qemu-kvm -accel kvm -m 4096M -smp 2 -cpu host -machine q35,kernel_irqchip=split,confidential-guest-support=tdx,hpet=off -object tdx-guest,id=tdx -nographic -nodefaults -chardev stdio,id=ser0,signal=on -serial chardev:ser0 -kernel images/dstack-nvidia-dev-0.3.3/bzImage -initrd images/dstack-nvidia-dev-0.3.3/initramfs.cpio.gz -bios images/dstack-nvidia-dev-0.3.3/ovmf.fd -cdrom images/dstack-nvidia-dev-0.3.3/rootfs.iso -drive file=my-gpu-cvm/hda.img,if=none,id=virtio-disk0 -device virtio-blk-pci,drive=virtio-disk0 -virtfs local,path=my-gpu-cvm/shared,mount_tag=host-shared,readonly=off,security_model=mapped,id=virtfs0 -device vhost-vsock-pci,guest-cid=8420 -device virtio-net-pci,netdev=nic0_td -netdev user,id=nic0_td,hostfwd=tcp:127.0.0.1:10022-:22,hostfwd=tcp:127.0.0.1:8888-:8888 -device pcie-root-port,id=pci.1,bus=pcie.0 -fw_cfg name=opt/ovmf/X-PciMmio64,string=262144 -object iommufd,id=iommufd0 -device vfio-pci,host=28:00.0,bus=pci.1,iommufd=iommufd0 -append console=ttyS0 init=/init dstack.fde=1 panic=1 systemd.unified_cgroup_hierarchy=0
qemu-kvm: -virtfs local,path=my-gpu-cvm/shared,mount_tag=host-shared,readonly=off,security_model=mapped,id=virtfs0: 'virtio-9p-pci' is not a valid device model name
@triplewz
Copy link
Author

triplewz commented Feb 25, 2025

test machine:

  • CPU:INTEL(R) XEON(R) GOLD 6530
  • GPU:NVIDIA GeForce RTX 4090D
  • OS: centos 7.x
  • qemu 8.2.50

@triplewz
Copy link
Author

I update the qemu, but it still failed. The new error is qemu-system-x86_64: -object tdx-guest,id=tdx: Parameter 'qom-type' does not accept value 'tdx-guest'

Image

@kvinwang
Copy link
Collaborator

Please follow the configuration guide at https://github.com/canonical/tdx to set up your host system and install the compatible QEMU version.

@triplewz
Copy link
Author

Please follow the configuration guide at https://github.com/canonical/tdx to set up your host system and install the compatible QEMU version.

OK,I will try, thanks.

@triplewz
Copy link
Author

triplewz commented Feb 26, 2025

@kvinwang But the os is centos7, does it matter?

@kvinwang
Copy link
Collaborator

@kvinwang But the os is centos7, does it matter?

I don't believe CentOS is supported. The host system configuration remains complex even with Ubuntu 24.x. You're likely to encounter difficulties despite following the Canonical/TDX guide.

@triplewz
Copy link
Author

triplewz commented Feb 26, 2025

@kvinwang But the os is centos7, does it matter?

I don't believe CentOS is supported. The host system configuration remains complex even with Ubuntu 24.x. You're likely to encounter difficulties despite following the Canonical/TDX guide.

OK, thanks. This comment shows how to install TDX on centos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants