Wednesday, October 6, 2010

Clone Xen VM

I have been created an Xen VM. I want to clone it.
My enviroment is centos 5.4 with Dom0 installed.
And the original template vm is centos,too.
1. lvcreate -L 10G volGroup00 -n vm1
2. virt-clone --original vm_template --name vm1 --file /dev/VolGroup00/vm1 --force
3. edit /etc/sysconfig/network's hostname.
4. change ip if you don't want use dhcp.

No comments: