Showing posts from August, 2011

How to create clone of a virtual machine

After creating a virtual we can create clone of a machine which would be the eject copy of our original machine. The main profit of cloning is that it save our time to repeat whole process of creating a virtual machine if we are following a specific template.

Following command will create a clone for machine xen machine in Linux environment.

General syntax.
#virt-clone --original machine1 --name machine2 --file /var/lib/xen/images/machine2.img

--original machine1(name of the original machine of which we want to make clone)

--name machine2(name of the cloned machine which we want to create)

--file(path where we want to create the cloned machine)

machine2.img(to give extension to the cloned image) 

#virt-clone --original diskcentos1 --name distcentos2 --file /var/lib/xen/diskcentos2.img