canonical / tdx

Intel confidential computing - TDX
GNU General Public License v3.0
59 stars 23 forks source link

guest-tools: image: virt-customize fails to create the guest image #133

Open fidencio opened 1 month ago

fidencio commented 1 month ago
sdp@984fee00bd70:~/tdx/guest-tools/image$ sudo -E ./create-td-image.sh 
SUCCESS: Installation of required tools
--2024-06-05 04:59:22--  https://cloud-images.ubuntu.com/releases/noble/release//SHA256SUMS
Resolving proxy-dmz.intel.com (proxy-dmz.intel.com)... 10.7.211.16
Connecting to proxy-dmz.intel.com (proxy-dmz.intel.com)|10.7.211.16|:912... connected.
Proxy request sent, awaiting response... 200 OK
Length: 7629 (7.5K)
Saving to: ‘SHA256SUMS’

SHA256SUMS                                            100%[======================================================================================================================>]   7.45K  --.-KB/s    in 0.01s   

2024-06-05 04:59:23 (506 KB/s) - ‘SHA256SUMS’ saved [7629/7629]

SUCCESS: Verify the checksum for Ubuntu cloud image.
SUCCESS: Copy the ubuntu-24.04-server-cloudimg-amd64.img => /tmp/tdx-guest-ubuntu-24.04-generic.qcow2
Image resized.
[   0.0] Examining the guest ...
virt-customize: error: libguestfs error: passt exited with status 1

If reporting bugs, run virt-customize with debugging enabled and include 
the complete output:

  virt-customize -v -x [...]
WARN: Failed to resize guest image to 50G
~/tdx/guest-tools/image/cloud-init-data ~/tdx/guest-tools/image
SUCCESS: Generate configuration for cloud-init...
I: -input-charset not specified, using utf-8 (detected in locale settings)
Total translation table size: 0
Total rockridge attributes bytes: 331
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 0
183 extents written (0 MB)
SUCCESS: Generate the cloud-init ISO image...
~/tdx/guest-tools/image
SUCCESS: Complete cloud-init...
[   0.0] Examining the guest ...
virt-customize: error: libguestfs error: passt exited with status 1

If reporting bugs, run virt-customize with debugging enabled and include 
the complete output:

  virt-customize -v -x [...]
ERROR: Failed to setup guest image
SUCCESS: Cleanup!
syncronize-issues-to-jira[bot] commented 1 month ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/PEK-718.

This message was autogenerated

hector-cao commented 1 month ago

Thanks @fidencio In the past, i saw this kind of failure without being able to reproduce it easily, can you reproduce it ?

fidencio commented 1 week ago

Thanks @fidencio In the past, i saw this kind of failure without being able to reproduce it easily, can you reproduce it ?

I ended up reinstalling everything on my end, and was not able to reproduce this anymore. :-/