<div dir="ltr"><div>Hi,</div><div><br></div><div>I can't get virt-sysprep to work.</div><div><br></div><div>What are you trying to do?</div><div>- I want to clean a virtual machine before creating a template from it.</div><div><br></div><div>What exact command(s) did you run?</div><div>- sudo virt-sysprep -v -x -a /var/lib/libvirt/images/centos_8_stream.qcow2</div><div><br></div><div>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.<br></div><div><br></div><div>What was the precise error or output of these commands?</div><div>- Find attached the output of the previous command.</div><div><br></div><div>Command executed to retrieve output: sudo virt-sysprep -v -x -a /var/lib/libvirt/images/centos_8
_stream.qcow2 > output.log 2>&1</div><div><br></div><div>Include the version of libguestfs, the operating system version, and how you installed libguestfs (eg. from source, yum install, etc.)</div><div>- virt-sysprep 1.42.0,</div><div>- libguestfs 1.42.0-5</div><div>- Linux lap-001-1 5.12.1-arch1-1 #1 SMP PREEMPT Sun, 02 May 2021 12:43:58 +0000 x86_64 GNU/Linux</div><div><br></div><div>Library installed this way: yay -S libguestfs</div><div><br></div><div>URL of the package: <a href="https://archlinux.org/packages/community/x86_64/libguestfs/">https://archlinux.org/packages/community/x86_64/libguestfs/</a><br></div><div><br></div><div>Thanks!</div><div><br></div><div>Best regards,</div><div><br></div><div>Adrien<br></div></div>