Resize/Clone a VirtualBox hard disk with the current snapshot
After wasting a ton of time, I’m noting this here to hopefully help myself or someone else in the future.
Making the new virtual hard disk
In VirtualBox open the virtual media manager and create a new disk with the larger size. Note it’s location.
Open a command prompt to c:\program files\oracle\virtualbox and run
VBoxManage showvminfo <Machine Name>
Find the primary master line, and note the UUID.
Clone that using your UUID and the path to the new disk
VBoxManage clonehd 73880a2b-ba46-459e-b71b-816ceadecb5a c:\users\dusty.virtualbox\harddisks\CloneDisk.vdi –existing
Resize
There may be better instructions elsewhere, but this worked for me.
-
Attach a Linux live cd to the cdrom of the machine.
-
Change the hard disk image to your new image file.
-
Boot
-
Start GParted
-
Right click the swap and select swapoff, note the size and delete.
-
Delete the extended partition.
-
Resize the primary partition.
-
Add an extended partition back.
-
Add a swap partition back.
-
Apply the changes.
-
Shutdown, remove the live image from the machine, restart.
Reference:
http://forums.virtualbox.org/viewtopic.php?t=585
http://forums.virtualbox.org/viewtopic.php?f=1&t=791&p=103299#p103299
http://www.attackr.com/resize-an-existing-vdi-virtualbox-image-easily/
Webmentions
These are webmentions via the IndieWeb and webmention.io. Mention this post from your site: