intel / intel/confidential-computing.tdx.tdx-module

Issue in creating a new TD in debug mode

Open
#17 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
113
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Hi, I am trying to create a TD in debug mode.

From most of the articles I saw, they recommend changing the debug flag to 1 instead of 0 to launch a TD in debug mode. But I am not getting the TD with debug mode enabled when doing it. Here is the issue description:

First, I followed this repo ([https://github.com/canonical/tdx]) to create a TD. Then I changed the `guest-tools/trust_domain.xml.template` file to edit the launchSecurity block to add "``".

```


0x10000000




```

Modifying this and creating a new TD with "`./tdvirsh new`" resulted in the creation of a TD, but not in debug mode.

I also used the other option by **editing the qemu:commandline block** in the `guest-tools/trust_domain.xml.template` file and using the **qemu command** directly to see if it helps. Those did not help either.

The modification in the qemu:commandline block is:

```


```

The QEMU command that I ran was:

```
qemu-system-x86_64 \
-name td-debug-vm,debug-threads=on \
-machine q35,confidential-guest-support=tdx \
-accel kvm \
-cpu host \
-m 16G \
-object tdx-guest,id=tdx0,debug=on,quote-generation-socket=vsock:2:4050 \
-drive file=/path/to/image/image.qcow2,format=qcow2,if=virtio \
-netdev user,id=net0,hostfwd=tcp::10022-:22 \
-device virtio-net-pci,netdev=net0 \
-nographic
```

Both of these would generate an error saying that the parameters 'type' and 'qom-type' are missing. Putting tdx-guest as type and qom-type did not resolve the issue.

Right now, I am struggling to find out what the issue is and how I can run a TD in debug mode.
Could you help me figure out what I am missing here? Is there any manual or guide by Intel that I can follow to launch a TD in debug mode? Your help is appreciated. Thank you.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.