version: 0.4.4 # virt-clone -o vm_debian1 -n vm_debian2 -f /media/disk/vm02.img ERROR: Disk size must be an int or a float. ^^^^^^^^^^^ |_ the message is not related to the real error. Once I deleted the file /media/disk/vm02.img, the cloning operation succeeded (btw it could be fine to allow to overwrite the target image)
This is actually an issue in the python-virtinst package. I've fixed this upstream: now if you try -f 'some-existing-file', virt-clone will prompt the user saying something like "This will overwrite 'file', are you sure you want to use this path?" Which seems a sufficient solution to me. http://hg.et.redhat.com/virt/applications/virtinst--devel?cs=dade986aa3bd Closing as UPSTREAM.