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:

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> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>