Open BastienFaivre opened 1 month ago
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/PEK-898.
This message was autogenerated
@BastienFaivre Hello, could you provide the package version of libvirt ? dpkg -l | grep libvirt
and the kernel version of the 2 guests uname -a
Hi @hector-cao, I have installed libvirt from source, here is what I've done:
$ git clone https://github.com/intel/libvirt-tdx.git
$ cd libvirt-tdx
$ git checkout tdx_for_upstream_v1
$ meson setup build -Dsystem=true -Ddriver_qemu=enabled -Ddriver_libvirtd=enabled -Ddriver_remote=enabled
$ ninja -C build
$ sudo ninja -C build install
But here is still the command output:
$ sudo dpkg -l | grep libvirt
ii libsys-virt-perl 10.0.0-1build2 amd64 Perl module providing an extension for the libvirt library
rc libvirt-daemon-config-network 10.0.0-2ubuntu8.3 all Libvirt daemon configuration files (default network)
rc libvirt-daemon-config-nwfilter 10.0.0-2ubuntu8.3 all Libvirt daemon configuration files (default network filters)
rc libvirt-daemon-driver-qemu 10.0.0-2ubuntu8.3 amd64 Virtualization daemon QEMU connection driver
rc libvirt-daemon-system-systemd 10.0.0-2ubuntu8.3 all Libvirt daemon configuration files (systemd)
ii libvirt-dev:amd64 10.0.0-2ubuntu8.3 amd64 development files for the libvirt library
ii libvirt-glib-1.0-0:amd64 5.0.0-2build3 amd64 libvirt GLib and GObject mapping library
ii libvirt-glib-1.0-data 5.0.0-2build3 all Common files for libvirt GLib library
ii libvirt-l10n 10.0.0-2ubuntu8.3 all localization for the libvirt library
ii libvirt0:amd64 10.0.0-2ubuntu8.3 amd64 library for interfacing with different virtualization systems
ii python3-libvirt 10.0.0-1build1 amd64 libvirt Python 3 bindings
Furthermore, here is the kernel version of the host and guest (I use the same guest for both QEMU and virsh):
# host
Linux <host name> 6.8.1-rt8+ #1 SMP PREEMPT_RT Wed May 29 16:23:24 CEST 2024 x86_64 x86_64 x86_64 GNU/Linux
# guest
Linux tdx-guest 6.8.1-rt8 #3 SMP PREEMPT_RT Thu Jul 4 14:46:19 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
@BastienFaivre None of these components seem to come from our release, did you follow the setup process ?
Hi @hector-cao, sorry for the delay, I was on vacation. We are currently looking into the origin of the components we use. We will get back to you as soon as we have an update to share.
Hi,
After setting up the environment, I tried to boot the TD image with QEMU, which worked perfectly. Indeed, in the TD image, I get the following:
However, when I try to boot the TD image with virsh using the given
tdvirsh
script, the TDX guest is undetected. Here is what I got:Am I missing something in the configuration or execution with virsh?
Furthermore, with the version of virsh I am using,
I had to modify the provided
td_guest.xml.template
file because the taglaunchSecurity
does not recognize the type valuetdx
. After some research, I tried to rename the tag tolaunchSecurityTDX
as mentioned here, and it works. I am a bit surprised since this documentation is from 3 years ago, and the most updated one does not mention this tag at all...What version of virsh are you using to have the template from the repository working?
Thank you in advance for your support!