[fedora-virt] virt-sysprep cannot open image file - Invalid argument

Ian Pilcher arequipeno at gmail.com
Thu Oct 31 17:37:56 UTC 2013


I'm trying to use virt-sysprep for the first time, and getting the
following error:

[root at ian ~]# virt-sysprep -d rdo-template
Examining the guest ...
Fatal error: exception Guestfs.Error("could not create appliance through
libvirt: Unable to read from monitor: Connection reset by peer [code=38
domain=10]")

Digging into the qemu log, I see:

qemu-system-x86_64: -drive
file=/var/lib/libvirt/images/rdo-template.img,if=none,id=drive-scsi0-0-0-0,format=qcow2,cache=none:
could not open disk image /var/lib/libvirt/images/rdo-template.img:
Invalid argument

qemu-img -info says this about the file:

image: /var/lib/libvirt/images/rdo-template.img
file format: qcow2
virtual size: 8.0G (8589934592 bytes)
disk size: 1.3G
cluster_size: 65536

Any ideas what's going on?

(libguestfs-tools-1.22.7-1.fc19.x86_64, BTW.)

-- 
========================================================================
Ian Pilcher                                         arequipeno at gmail.com
Sometimes there's nothing left to do but crash and burn...or die trying.
========================================================================



More information about the virt mailing list