copy a KVM/Qemu vm to a cluster

shocked

New Member
Mar 10, 2009
3
0
1
Hello,

I want to COPY not migrate a KVM/Qemu vm to another machine. I have it configured perfectly and I want to run another copy (i realize i will need to change the ip). I can't figure out how to do this so it appears in the control panel on the guest node. Can someone help?

Thanks
 
Hello,

I want to COPY not migrate a KVM/Qemu vm to another machine. I have it configured perfectly and I want to run another copy (i realize i will need to change the ip). I can't figure out how to do this so it appears in the control panel on the guest node. Can someone help?

Thanks

this is manual process. a KVM guest is defined here:

/etc/qemu-server/VMID.conf

and the disk image file should be in this directory:
/var/lib/vz/images/VMID/

so the easiest way is that you create a new VM with identical settings to the one you want to copy via web interface. do not start!

now, copy the disk image to the new location, adapt the config file, start (take care about not using duplicate MAC addresses)