PDA

View Full Version : [SOLVED] How do I best Place VirtualBox VM's outside of /home Sub-Directories/Partitions?



mikodo
February 5th, 2010, 02:15 AM
I have just installed VirtualBox PURL and find that it uses my /home partition for installation of virtual machines and fills my /home with VM's quickly. I only backup my /home partition and use it for clean installs. When I do a fresh install of Lucid 64 bit (from my present Karmic 32 bit OS), can I have a partition that holds VirtualBox machines outside of my /home partition? I am not interested in backing up any VM's. I know the path for VirtualBox is /usr/bin/VirtualBox. So, could I create a /usr Partition and have VirtualBox install in that Partition? If so, would that install the Virtual Machines on that Partition and not in /home; so my /home partition remains manageable for backups.

Or, is this accomplished a better way?

Thanks.

drzoo2
February 5th, 2010, 02:17 AM
I have just installed VirtualBox PURL and find that it uses my /home partition for installation of virtual machines and fills my /home with VM's quickly. I only backup my /home partition and use it for clean installs. When I do a fresh install of Lucid 64 bit (from my present Karmic 32 bit OS), can I have a partition that holds VirtualBox machines outside of my /home partition? I am not interested in backing up any VM's. I know the path for VirtualBox is /usr/bin/VirtualBox. So, could I create a /usr Partition and have VirtualBox install in that Partition? If so, would that install the Virtual Machines on that Partition and not in /home; so my /home partition remains manageable for backups.

Or, is this accomplished a better way?

Thanks.

Virtualbox has a preference setting for moving the default location for harddisks and VMs. I moved my VM to the /opt folder for the very reason your asking. So i'm not backing up gigs of vm images.

howefield
February 5th, 2010, 02:18 AM
can I have a partition that holds VirtualBox machines outside of my /home partition?

You would install Virtualbox in the normal way, but when it comes to creating the virtual disk for your vm, place it where ever you like.

When you reach the attached screen shot, click on the folder icon to the right of the Location filed, and navigate to where you want your virtual disk to be created, which could be on a separate partition or even separate (for best performance) hard disk .

mikodo
February 5th, 2010, 02:30 AM
You would install Virtualbox in the normal way, but when it comes to creating the virtual disk for your vm, place it where ever you like.

When you reach the attached screen shot, click on the folder icon to the right of the Location filed, and navigate to where you want your virtual disk to be created, which could be on a separate partition or even separate (for best performance) hard disk .

Thanks guys, I missed the option where to place the VM's

Mike