recovering host disk space after VM removal

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
rossepeo
Posts: 5
Joined: 25. Feb 2012, 03:37

recovering host disk space after VM removal

Post by rossepeo »

I am running Win 7 as a guest on my Macbook Pro running OSX 10.7. I removed a VM that had a dynamic disk space of 27Gb. With Win 7 OS and installed apps, used disk space was about 20Gb. Yet after I performed VM removal from within VirtualBox, I only recoverd about 6 Gb (according to my Mac's Finder window). How do I get back the rest of the disk space that is no longer being used by the VM?
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: recovering host disk space after VM removal

Post by BillG »

Empty the trash?
Bill
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: recovering host disk space after VM removal

Post by mpack »

I'm not a Mac user, but doesn't OS X also have some sort of rolling backup feature... is it called Time Machine? ... which stores copies of files (I assume as difference information. This obviously can take up a huge chunk of space if the files have been changing a lot.

Either way - the OP is asking for OS X tuition, which is not really the purpose of these forums.
rossepeo
Posts: 5
Joined: 25. Feb 2012, 03:37

Re: recovering host disk space after VM removal

Post by rossepeo »

Since doing a "Remove" of an existing VM resulted in so little disk space recovery, I was thinking maybe there was some additional task that had to be performed from within VirtualBox to "release" the disk space that had been reserved for that VM. From your posted comments, I gather that simply doing a "Remove" for a VM is all that is required for VirtualBox to release that disk space back to the host. If that is indeed the case, then I will delve into the Mac forums to see if others have experienced this low disk space recovery rate. Thanks.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: recovering host disk space after VM removal

Post by loukingjr »

Try turning off time Machine temporarily. If you have Time Machine enabled but it can't connect to the backup drive, it will create a temp backup on the host until such time as it can reach the backup drive. You may have to restart your Mac but I think the space should be released immediately.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: recovering host disk space after VM removal

Post by mpack »

rossepeo wrote:I gather that simply doing a "Remove" for a VM is all that is required for VirtualBox to release that disk space back to the host
VirtualBox does not reserve host disk space. All VirtualBox does to your host is create some files, just like any other host app, and there is nothing unusual about them other than being unusually large. You get rid of them in the normal way.

But no, all that "Remove" does is unregister the media or the the VM. You are then asked if you also want to delete the physical files, the consequence of either answer will be obvious.
Post Reply