Excessive guest files size

Discussions related to using VirtualBox on Windows hosts.
Post Reply
alejandro zuleta
Posts: 6
Joined: 16. May 2014, 00:52

Excessive guest files size

Post by alejandro zuleta »

Recently, I created a x64 Linux (Mint) virtual machine. After, I installed some dependecies and libraries, but when I try to install Qt, it shows a massage error saying that there isn't enough disk space to store temporary files. I 've checked the file system partition and it shows 140 TB though I created a 10,4 GB har disk for this VM.

Is it an VirtualBox or Mint issue?

reference captures

Thanks in advance
Attachments
reference captures
reference captures
Captura2.GIF (58.72 KiB) Viewed 1312 times
reference captures
reference captures
Captura.GIF (63.43 KiB) Viewed 1312 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Excessive guest files size

Post by Perryg »

From the guests terminal window, type the following and post the results here:

Code: Select all

df -h
alejandro zuleta
Posts: 6
Joined: 16. May 2014, 00:52

Re: Excessive guest files size

Post by alejandro zuleta »

This is the output from guest terminal
Attachments
df -h output
df -h output
salida.GIF (100.5 KiB) Viewed 1307 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Excessive guest files size

Post by Perryg »

Now that you see this do you understand what the message means?

You actually created a disk that was 6.3 GB and you have filled it to 90%.

This link should help you viewtopic.php?f=24&t=50661
alejandro zuleta
Posts: 6
Joined: 16. May 2014, 00:52

Re: Excessive guest files size

Post by alejandro zuleta »

Thanks for your support and the link.
alejandro zuleta
Posts: 6
Joined: 16. May 2014, 00:52

Re: Excessive guest files size

Post by alejandro zuleta »

I am trying to resize the hard diks via gparted live cd, but I can't extend the size of my primary partition ("/").

I think my primary partition can't recognize unllocated space. However, I resized the hard disk via VBoxManage modifyhd <absolute path to file> --resize <size in MB> and it applied the resize but my virtual machine can't yet.

Can you help me even if it's a Mint issue?
Attachments
my virtual hard disk (dvi) is now 20 GB sized but virtual machine keeps being 6,5 GB sized.
my virtual hard disk (dvi) is now 20 GB sized but virtual machine keeps being 6,5 GB sized.
almacenamiento.GIF (77.49 KiB) Viewed 1294 times
/dev/sda1 can't be extended
/dev/sda1 can't be extended
resize.GIF (126.61 KiB) Viewed 1294 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Excessive guest files size

Post by Perryg »

The reason that you can not resize the primary partition is because of the swap partition that is in between the primary and the new unallocated space.

The easiest way to fix this is to delete the swap partition & the extended partition then extend the primary on to use the new unallocated space but stop the extend short so you can build the swap partition at the end.

You need to have a swap area 1 1/2 time the amount of RAM that you have assigned to the guest.

Then you would need to re-enable the swap area in the guest again. This is usually done in the /etc/fstab and you replace the old UUID with the new one and reboot. ( requires sudo )
You can find the UUID by typing blkid in the guests terminal.

I would back everything up so you can try again if you fail. Great learning experience to say the least.

By the way this has nothing to do with VirtualBox, since the resize worked VBox has done its thing.
alejandro zuleta
Posts: 6
Joined: 16. May 2014, 00:52

Re: Excessive guest files size

Post by alejandro zuleta »

I've done, thanks again for your support.
Post Reply