[Solved] VDI file in a different partition

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Paul Abrahams
Posts: 141
Joined: 2. Jun 2008, 17:49

[Solved] VDI file in a different partition

Post by Paul Abrahams »

I have several virtual machines in ~/.VirtualBox/VDI, but now my /home partition is running short of space. I have plenty of space in a different partition, though, so I'd like to set up another virtual machine elsewhere. I tried creating a VirtualBox directory in a partition with lots of space and creating a symlink to it from ~/.VirtualBox/VDI/VirtualBox, and then creating a new VM in ~/.VirtualBox/VDI/VirtualBox. However, I still get the VERR_DISK_FULL message when I try to do that.

So how can I create a vdi file outside of my /home partition?
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

Just release the VDI from the VM and unregister it (Do not delete it. Then move the VDI to your new partition and then use the GUI disk manager to pick up the existing VDI in new location and then add it back to the VM.

If this is the only VDI that you have, then you can use the GUI preferences option to change the home location of the VDI directory.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Paul Abrahams
Posts: 141
Joined: 2. Jun 2008, 17:49

Can't create the VDM

Post by Paul Abrahams »

The problem I have is that I can't create the VDI in the first place, so there's nothing to unregister. If the VDI creator could parse the case where the specified location is in a symlinked folder my problem would be solved, but the test for sufficient disk space seems to be performed on the partition containing the VDI directory in all cases.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

?? Don't use symlinks. Either change the location of your VDI folder in your preferences as I said, or just specify an explicit path in the Virtual Disk Manager -> Create New Virtual Disk -> Virtual Disk Location and Size (The little folder icon with a ^ on it, allows you to browse to the directory that you want to use.)
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Paul Abrahams
Posts: 141
Joined: 2. Jun 2008, 17:49

Got it!

Post by Paul Abrahams »

Thanks - specifying the location explicitly did the trick. I was under the mistaken impression that all vdi's had to be in the same directory.
Post Reply