As a workaround, if you use KVM as virtualization system, you can “play” with “qemu-img” to copy an image from a datastore to another one.
Here is a pseudo protocol:
Perform a disk saveas of the image you want to “clone”
If you can browse in the datastore directly, you can use qemu-img convert to copy the “saved as” image to another place (the other datastore or another place)
If you cannot browse in the datastore, you can mount on a “powered off” VM the “saved as” image and then you can use qemu-img convert on the host hosting the VM
Then you can create a new image on the targeted datastore providing the “path” the image on the datastore or by uploading it (if possible)
Hi @jpfoures,
thanks for the suggestion. Is it possible to follow your steps only using the CLI? because using the GUI when I select the image I would like to clone I can’t see any “save as” option. I’m using ON5.4.6
I am not really sure, “disk saveas” came with 5.6. I use 5.8.3 cluster and the workaround I gave details is based on that release.
With CLI you cannot perform qemu-img commands, these commands are only possible on KVM nodes.
If you can power off the VM, you do not need to clone or saveas the disk. You can use directly qemu-img command.
If you can’t stop the VM, you can try too, but because the disk is used you might have an issue on the new image.