VirtualBox: Cloning a VM

My Virtual Machine was named http1 so I cloned the vdi as http2.vdi using the VBoxManage command:

VBoxManage clonevdi http1.vdi ../pathtonewlocation/http2.vdi

The output was:

0%…10%…20%…30%…40%…50%…60%…70%…80%…90%…100%
Clone hard disk created in format ‘VDI’. UUID: 9e65bd30-663e-4bf8-acd2-3120d1f41fec

Then create the new Virtual Machine in the VirtualBox GUI:

Machine > New

On the third step for ‘Virtual Hard Disk’ choose ‘Use existing hard disk’ and select the cloned vdi disk image.

Boot the new VM and change the hostname and IP address by editing the following files:
vi /etc/sysconfig/network
vi /etc/hosts
vi /etc/sysconfig/network-scripts/ifcfg-eth0

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">