Thursday, March 3, 2011

Howto: Clone and increase HD of virtualbox VDI files

Step 1:
-------

Open VirtualBox Go to File->Virtual Media Manager
Should list the VDI lets say its "HDA.vdi", right click on this and press "release" accept it.

Step 2:
-------

Go to the folder where HDA.vdi exists, in my case its H:\VM\HDA.vdi

H:\VM> "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" clonevdi HDA.vdi backup.vdi
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID: b3e241ab-d783-42f7-893e-52fc9bf43c3e

Step 3:
-------

Increase the HD size.

H:\VM> "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyhd ubuntu.vdi --resize 50000 <--- this is 50GB
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

No comments:

Post a Comment