Question Locked

Citrix XenCenter - how to clone a VM?

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi

Does anyone know how to clone a VM in Citrix XenCenter without having to convert the VM into a template and cloning the VM? Basically cloning directly from a live VM.

I read somewhere you can do it from the CLI via "xe -s server vm-clone vm=VM-NAME new-name-label=NEW-VM-NAME -u user -pw password". But when I do this I just get an error:

Error: Connection reset by peer (calling read )

Searching what this error means doesn't give any info regarding VM cloning.

Thanks in advance

4 replies

by jrocksuki

Thanks Andrew. That looks like the script that would work, although I'm not sure which variables I have to change (apart from SERVER, USERNAME and PASSWORD).

Do I have to change the to the actual vm uuid value? I.e. Running "xe host-list" on the xenserver to get the value.

Also I'm pretty sure I need to change the "new-name-label=cloned_vm" to the name of the new cloned vm - but would you be able to confirm that?

Thanks very much

by Former member

Yes, naturally change the server, username and password etc).

You are welcome to change the cloned_vm variable if you wish.

Then launch the script with the VM name you want to clone.

Give it whirl, let me know if you error out.

This discussion is closed to new replies.