Describe the bug
Our nightly automation runs are currently failing at the create_td_image.sh step. After a preliminary investigation, we found that the -v [UBUNTU_VERSION] argument has become mandatory for executing the create-td-image.sh script, which was not the case previously.
sdp@sdp:~/bprashan/tdx$ sudo -E ./setup-tdx-host.sh
Hit:1 https://download.docker.com/linux/ubuntu noble InRelease
Hit:2 https://aquasecurity.github.io/trivy-repo/deb noble InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble InRelease
Get:4 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Hit:5 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:6 https://apt.releases.hashicorp.com noble InRelease
Hit:7 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:8 https://ppa.launchpadcontent.net/kobuk-team/tdx-attestation-release/ubuntu noble InRelease
Hit:9 https://ppa.launchpadcontent.net/kobuk-team/tdx-release/ubuntu noble InRelease
Hit:10 https://ppa.launchpadcontent.net/kobuk-team/tdx-testing/ubuntu noble InRelease
Fetched 126 kB in 2s (81.4 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
28 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: https://aquasecurity.github.io/trivy-repo/deb/dists/noble/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
PPA publishes dbgsym, you may need to include 'main/debug' component
Repository: 'Types: deb
URIs: https://ppa.launchpadcontent.net/kobuk-team/tdx-release/ubuntu/
Suites: noble
Components: main
'
Description:
This package archive contains required components to enable TDX for both host and guest VM.
TDX is a Intel hardware solution for Confidential Computing.
To get an introduction on TDX, you can visit the link: https://cdrdv2.intel.com/v1/dl/getContent/690419
The current supported Ubuntu series are:
- Ubuntu 24.04 (Noble)
No longer supported:
- Ubuntu 23.10 (Mantic)
For installation instructions, please visit : https://github.com/canonical/tdx
More info: https://launchpad.net/~kobuk-team/+archive/ubuntu/tdx-release
Adding repository.
Found existing deb entry in /etc/apt/sources.list.d/kobuk-team-ubuntu-tdx-release-noble.sources
Hit:1 https://aquasecurity.github.io/trivy-repo/deb noble InRelease
Hit:2 https://download.docker.com/linux/ubuntu noble InRelease
Hit:3 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:4 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:5 https://apt.releases.hashicorp.com noble InRelease
Hit:6 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:7 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:8 https://ppa.launchpadcontent.net/kobuk-team/tdx-attestation-release/ubuntu noble InRelease
Hit:9 https://ppa.launchpadcontent.net/kobuk-team/tdx-release/ubuntu noble InRelease
Hit:10 https://ppa.launchpadcontent.net/kobuk-team/tdx-testing/ubuntu noble InRelease
Reading package lists... Done
W: https://aquasecurity.github.io/trivy-repo/deb/dists/noble/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Package: *
Pin: release o=LP-PPA-kobuk-team-tdx-release
Pin-Priority: 4000
Unattended-Upgrade::Allowed-Origins {
"LP-PPA-kobuk-team-tdx-release:noble";
};
Unattended-Upgrade::Allow-downgrade "true";
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-image-intel is already the newest version (6.8.0-1013.20).
qemu-system-x86 is already the newest version (2:8.2.2+ds-0ubuntu1.4+tdx1.0).
libvirt-daemon-system is already the newest version (10.0.0-2ubuntu8.3+tdx1.2).
libvirt-clients is already the newest version (10.0.0-2ubuntu8.3+tdx1.2).
ovmf is already the newest version (2024.02-3+tdx1.0).
0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/99-tdx-kernel.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-1013-intel
Found initrd image: /boot/initrd.img-6.8.0-1013-intel
Found linux image: /boot/vmlinuz-6.8.0-49-generic
Found initrd image: /boot/initrd.img-6.8.0-49-generic
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-modules-extra-6.8.0-1013-intel is already the newest version (6.8.0-1013.20).
0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
Skip installing attestation components...
========================================================================
The host OS setup has been done successfully. Now, please enable Intel TDX in the BIOS.
========================================================================
sdp@sdp:~/bprashan/tdx$ cd guest-tools/image/
sdp@sdp:~/bprashan/tdx/guest-tools/image$ sudo ./create-td-image.sh
INFO: Installation of required tools
ERROR: Please specify the ubuntu release by setting UBUNTU_VERSION or passing it via -v
INFO: Cleanup!
sdp@sdp:~/bprashan/tdx/guest-tools/image$ sudo -E ./create-td-image.sh
INFO: Installation of required tools
ERROR: Please specify the ubuntu release by setting UBUNTU_VERSION or passing it via -v
INFO: Cleanup!
sdp@sdp:~/bprashan/tdx/guest-tools/image$
Expected behavior
If the user does not specify the -v command line option when calling create_td_image.sh, we can default to the UBUNTU_VERSION specified in the [setup-tdx-common] (https://github.com/canonical/tdx/blob/noble-24.04/setup-tdx-common#L20)
The documentation needs to be updated to provide clearer instructions on how to run create_td_image.sh script.
System report
Please run the system-report.sh script (located in the root directory of this repo) on your host system and copy the output below.
Describe the bug Our nightly automation runs are currently failing at the
create_td_image.sh
step. After a preliminary investigation, we found that the-v
[UBUNTU_VERSION] argument has become mandatory for executing the create-td-image.sh script, which was not the case previously.To Reproduce Steps to reproduce the behavior:
Expected behavior If the user does not specify the -v command line option when calling
create_td_image.sh
, we can default to the UBUNTU_VERSION specified in the [setup-tdx-common] (https://github.com/canonical/tdx/blob/noble-24.04/setup-tdx-common#L20) The documentation needs to be updated to provide clearer instructions on how to runcreate_td_image.sh
script.System report Please run the
system-report.sh
script (located in the root directory of this repo) on your host system and copy the output below.Git ref
Operating system details
Kernel version
TDX kernel logs
TDX CPU instruction support
Model specific registers (MSRs)
CPU details
QEMU package details
Libvirt package details
OVMF package details
sgx-dcap-pccs package details
tdx-qgs package details
sgx-ra-service package details
sgx-pck-id-retrieval-tool package details
QGSD service status
PCCS service status
MPA registration logs (last 30 lines)