Ubuntu guest runs out of disk space

Discussions about using Linux guests in VirtualBox.
Post Reply
TusharDesai
Posts: 6
Joined: 31. May 2012, 20:15
Primary OS: MS Windows other
VBox Version: PUEL
Guest OSses: Ubuntu

Ubuntu guest runs out of disk space

Post by TusharDesai »

I'm running Ubuntu 14.04 (64-bit) guest on a Windows 8.1 host. The VM has been configured to use a dynamically sized disk (of max size 10GB). It has currently allocated about 6.3GB. However, since the latest upgrade to VirtualBox to 4.3.26, the guest machine complains that it does not have enough disk space.

Running df in the Ubuntu guest shows ...

Code: Select all

Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda1        6061632 5536864    193812  97% /
none                   4       0         4   0% /sys/fs/cgroup
udev             2013324       4   2013320   1% /dev
tmpfs             404824     876    403948   1% /run
none                5120       0      5120   0% /run/lock
none             2024116      84   2024032   1% /run/shm
none              102400      44    102356   1% /run/user
/dev/sr0           56758   56758         0 100% /media/xyzxyz/VBOXADDITIONS_4.3.26_98988

Subsequently, the Guest Additions CD did not get loaded and Guest Additions stopped working on the VM. Any idea what could have gone wrong? This is the second VM (with almost same config) that it has happened within 24 hours.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Ubuntu guest runs out of disk space

Post by mpack »

Almost certainly Ubuntu reserved a 2GB swap partition, leaving a main partition (sda1) of about 6GB, which is now 97% full. Hence the warnings. These are guest filesystem defaults and nothing at all to do with VirtualBox.

Why did you make the max size so small? 10GB is nothing these days.

See also Howto: Resize a virtual drive. Or you can use CloneVDI if you prefer a GUI to command line.
Post Reply