{"id":757,"date":"2011-07-21T21:51:55","date_gmt":"2011-07-21T09:51:55","guid":{"rendered":"http:\/\/p-s.co.nz\/wordpress\/?p=757"},"modified":"2014-06-30T11:16:14","modified_gmt":"2014-06-29T23:16:14","slug":"increase-size-of-virtualbox-image-current-state","status":"publish","type":"post","link":"http:\/\/p-s.co.nz\/wordpress\/increase-size-of-virtualbox-image-current-state\/","title":{"rendered":"Increase size of VirtualBox image (current state)"},"content":{"rendered":"<p>I had a Vista image that I foolishly set to 10GB. That was OK until I added the Java Runtime Engine, Eclipse, PyDev, Python, <a href=\"http:\/\/www.sofastatistics.com\">SOFA Statistics<\/a>, another user for testing purposes (with non-English characters in their user name and home directory) etc. And once I ran the space-greedy system updates, I was out of disk space. A working solution was found in these two posts: <a href=\"http:\/\/www.adeepbite.com\/how-to-increaseexpand-the-size-of-virtualbox-windows7-vdi-file-on-mac-2\/\">Increase\/Expand the Size of Windows 7 vdi file on VirtualBox Mac<\/a>, and <a href=\"http:\/\/forums.virtualbox.org\/viewtopic.php?p=106206&#038;sid=f8782010c325a95c3f3ac8258f746a3c#p106206\">Cloning a VM with multiple snapshots?<\/a>. If you want to copy the whole thing up to a particular snapshot (NB the result with be collapsed into one single VDI, unlike the original), get the hexUUID of the snapshot.<\/p>\n<p>Step 1 &#8211; make a new and larger VDI. I did so by making a new virtual machine (testVista) with a new virtual disk image (testVista.vdi). An alternative approach would have been to make the vdi on its own but I couldn&#8217;t find a menu item to allow that. It was no great burden doing it as part of making a new virtual machine though.<\/p>\n<p>Step 2 &#8211; clone the current state version of the old (and small) vdi. You need to find the hexUUID value of the snapshot you want. See <a href=\"http:\/\/forums.virtualbox.org\/viewtopic.php?p=106206&#038;sid=f8782010c325a95c3f3ac8258f746a3c#p106206\">Cloning a VM with multiple snapshots?<\/a> for details. It gives guidance on how to tell which uuid you need.<\/p>\n<p>The command that worked for me was (the path depends on where you are running the command from and your setup of course):<\/p>\n<p><code> VBoxManage clonehd 0db42252-9240-4a0a-9393-a7d79778364d \"..\/testVista\/testVista.vdi\" --existing<\/code><\/p>\n<p>Note &#8211; testVista was the new VDI I was trying to clone into. It should take a few minutes to run.<\/p>\n<p>Step 3 &#8211; disconnect to the old vdi and connect your machine to the larger vdi.<\/p>\n<p>Step 4 &#8211; Boot into your system and resize the partition as per <a href=\"http:\/\/www.adeepbite.com\/how-to-increaseexpand-the-size-of-virtualbox-windows7-vdi-file-on-mac-2\/\">Increase\/Expand the Size of Windows 7 vdi file on VirtualBox Mac<\/a> On XP I needed EaseUS Partition. For a Ubuntu guest I downloaded the Gparted iso, added that to storage as a live CD, and booted in. Resized everything and exited. Then unlinked from GParted iso.<\/p>\n<p>Step 5 &#8211; Success!<\/p>\n<p>[Update &#8211; needed to do this again on another vdi &#8211; thus the clarified instructions here]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had a Vista image that I foolishly set to 10GB. That was OK until I added the Java Runtime Engine, Eclipse, PyDev, Python, SOFA Statistics, another user for testing purposes (with non-English characters in their user name and home &hellip; <a href=\"http:\/\/p-s.co.nz\/wordpress\/increase-size-of-virtualbox-image-current-state\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-757","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/757"}],"collection":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/comments?post=757"}],"version-history":[{"count":6,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/757\/revisions"}],"predecessor-version":[{"id":999,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/757\/revisions\/999"}],"wp:attachment":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/media?parent=757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/categories?post=757"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/tags?post=757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}