Red Hat Bugzilla – Bug 459877
cloning an image over an existing disk file returns a wrong error
Last modified: 2010-03-16 13:14:24 EDT
# 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.
Closing as UPSTREAM.