VirtualBox is out of space

what to do when your VirtualBox runs out of disk space when trying to open a new lab.

D

Written by Dakota Martinez Updated over a week ago

If you set up your VirtualBox environment prior to June 8th, 2018, you may at some point hit an error saying you've run out of disk space within your Virtual Machine. At this point you have two main options:

2. If you're in the react section, removing the node_modules folder for a lab when you finish with it will also save a bunch of space if you'd rather not delete the entire lab. The quickest way to do this is to run

rm -rf node_modules

from the lesson directory after you run learn submit.

3. Check how much space you have left on the drive by running:

df -h

this will print out how much space you have available on each partition of your drive.

4. Check how much space each folder is taking up by running:

du -sh ./*/

This will allow you to quickly identify the folders (inside your current working directory) that you can remove to free up the most space. You can use rm -rf name_of_folder to do it all from LXTerminal.