Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I had multiple Ubuntu VM's installations, and the host is also Ubuntu 10.04 LTS. After I deleted the VM's, the space wasn't reallocated to the host.

Do you know any solution?

share|improve this question

2 Answers 2

up vote 6 down vote accepted

Start VirtualBox and from File->Virtual Media Manager remove your virtual disks.

share|improve this answer
    
this works! thanks! –  Mark Apr 26 '11 at 18:25
    
@Xander: so could you accept my answer? :) –  enzotib Apr 26 '11 at 18:45

Deleting virtual hard disks with Virtual Box Manager

From the VirtualBox Manager you can easily manage you virtual hard disk by selecting File -> Virtual Media Manager or by pressing Ctrl + D.

This will display a list of all virtual hard disks known to the Virtual Box Manager:

enter image description here

Virtual hard disk that are attached to a virtual machine or that contain snapshots need to be released first. Mind that after releasing a hard disk you will not longer be able to run this virtual machine. Deleted machines will automatically be released. Only if a hard disk is not attached to a VM you can remove it:

enter image description here

After a security message you will have the option to free the space occupied on you hard disk by deleting the virtual hard disk file or to keep this file for further usage:

enter image description here

Manually delete virtual hard disks

The Virtual Box Media Manager is the preferred method to delete hard disk file as only then all associations to Virtual Box are released securely.

However if you had removed the Virtual Box application you need to manually delete the virtual hard disk *.vdi files that are stored in the location you defined in Preferences -> General -> Default Machine Folder either with your file manager (e.g. Nautilus) or from the command line.

share|improve this answer
    
thank you very much for the detailed examples. –  Mark Apr 26 '11 at 18:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.