Ubuntu – How to install a virtual machine on a different physical hard drive using VirtualBox

virtualboxvirtualization

As the title states, I'm looking to install a Virtual Machine on a different physical Hard Drive using VirtualBox..

I don't know how to do it though. I can't find any place in the installation process that lets me pick a different hard drive.

Thanks in advance.

Best Answer

Change default storage path

From the VirtualBox Manager we can define the default location of Virtual Machines by choosing a location path, which can also be on a different drive if this drive was mounted with r/w permissions:

enter image description here

Create a VDI on a different path

If that drive is not for general use we can also create a virtual drive we had stored on a different path (click on enter image description here):

enter image description here

Load a VDI to an existing VM

Any VDI located on a different drive can also be attached to a virtual machine on the machine's storage settings. Click on enter image description here then choose a virtual hard disk file on any path of mounted drives.

Caveats

To avoid an error when starting a virtual machine we have to take care to Always mount the drive holding our VDIs before we start Virtual Box.

Related Question