john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Virtualbox migrate clonehd virtual machine harddisk

virtualbox-migrate-virtual-machine

vboxmanage clonehd \computername\c$\harddisks\harddrive.vdi c:\harddisks\newname.vdi

use Virtualbox Media Manager and add it as a hard disk

or

???VBoxManage createhd -filename "centos5.vdi" -size 10000 -register


In order to move vdi and image file to another location, change the following (highlighted in bold) in VirtualBox.xml to reflect it (no changes in uuid is required)

1) Copied the disk.vdi file 2) Copied the Corresponding directory from the Machines directory 3) In the Virtual Box control application registered the copied disk.vdi 4) Manually added the MachineEntry tag in the MachineRegistry in the VirtualBox.xml. (Made sure I got the right guid for the copied machine.

5) In the Server.xml changed the version attribute on the VirtualBox tag from 1.6-linux to 1.6-windows.

6) Went back to the Virtual Box console and change the interface adapter from eth0 to the actual network adapter on the windows box.


  • « Qemu advanced host devices
  • Virtualbox linux command line scripts »

Published

Feb 6, 2010

Category

virtualization

~140 words

Tags

  • clonehd 1
  • harddisk 1
  • machine 4
  • migrate 6
  • virtual 10
  • virtualbox 36
  • virtualization 87