Help, it’s not working!
Hi, I can't get virt-sysprep to work. What are you trying to do? - I want to clean a virtual machine before creating a template from it. What exact command(s) did you run? - sudo virt-sysprep -v -x -a /var/lib/libvirt/images/centos_8_stream.qcow2 I use sudo because centos_8_stream.qcow2 belongs to root:root. If I change the permissions to access it without superuser permissions, the error is the same. What was the precise error or output of these commands? - Find attached the output of the previous command. Command executed to retrieve output: sudo virt-sysprep -v -x -a /var/lib/libvirt/images/centos_8 _stream.qcow2 > output.log 2>&1 Include the version of libguestfs, the operating system version, and how you installed libguestfs (eg. from source, yum install, etc.) - virt-sysprep 1.42.0, - libguestfs 1.42.0-5 - Linux lap-001-1 5.12.1-arch1-1 #1 SMP PREEMPT Sun, 02 May 2021 12:43:58 +0000 x86_64 GNU/Linux Library installed this way: yay -S libguestfs URL of the package: https://archlinux.org/packages/community/x86_64/libguestfs/ Thanks! Best regards, Adrien
On Thu, May 06, 2021 at 06:50:54PM +0000, Adrien wrote:
supermin: root UUID is longer than 16 bytes
This is a bug in the "file" command: https://www.mail-archive.com/libguestfs@redhat.com/msg21721.html https://bbs.archlinux.org/viewtopic.php?id=265321 You can either downgrade "file" to < 5.40, add the upstream patch to file which fixes this, or apply this patch to libguestfs: https://github.com/libguestfs/libguestfs/commit/278d0d3226f4bdb7c6586986ca46... Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
participants (2)
-
Adrien -
Richard W.M. Jones