Follow Us on Twitter

Cloning a Virtual Disk in Oracle VM Virtualbox

by Jos van den Oord on June 2, 2010 · 1 comment

Cloning a disk is an Unix-y type way of creating a duplicate disk. We need to invoke the CloneHd command of the VBoxManage tool, supplying the disk to clone and the name of the new ‘cloned’ disk. In its simplest form, you would do something like this at the command-line:

VBoxManage clonehd "DiskToClone.vdi" "ClonedDisk.vdi"

The VBoxManage tool will clone the disk for you, and creating a new UUID in the process.

Start a cmd box and go to the directory “C:\Program Files\Oracle\VirtualBox”
Then execute [VBoxManage clonehd “F:\vmware\RAC1\node_rac1.vdi” “F:\vmware\RAC2\node_rac1.vdi”]

C:\Program Files\Oracle\VirtualBox>VBoxManage clonehd "F:\vmware\RAC1\node_rac1.vdi" "F:\vmware\RAC2\node_rac1.vdi"
C:\Program Files\Oracle\VirtualBox>VBoxManage clonehd "F:\vmware\RAC1\node_rac1.vdi" "F:\vmware\RAC2\node_rac2.vdi"
Oracle VM VirtualBox Command Line Management Interface Version 3.2.0(C) 2005-2010 Oracle Corporation All rights reserved.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID: 738b60bc-98e0-4380-b179-d3d8b3abd7e4
C:\Program Files\Oracle\VirtualBox>

The cloned disk can now be used on a new VM

References

Cloning a Virtual Disk in Oracle VM Virtualbox, 5.0 out of 5 based on 1 rating
Ratings:
VN:F [1.9.22_1171]
Rating: 5.0/5 (1 vote cast)

{ 0 comments… add one now }

Leave a Comment

 

{ 1 trackback }

Previous post:

Next post:

About Whitehorses
Company profile
Services
Technology

Whitehorses website

Home page
Whitebooks
Jobs

Follow us
Blog post RSS
Comment RSS
Twitter