How to share VirtualBox VM across different operating systems

While creating a Virtual Machine in Virtualbox is a fairly simple task, sharing a Virtual Machine with many different operating systems is quite complicated.

While creating a virtual machine in VirtualBox is an easy task, sharing that virtual machine on another operating system is not. If you are dual-booting your computer and have created a virtual machine on one of the operating system partitions, due to file structure differences between different operating systems, you will not be able to access and open VM files in another partition. The following guide will show you how you can share with your VirtualBox virtual machine no matter what operating system you are using.

Create storage devices for virtual machines

The first step in sharing your virtual machine across different systems is to create an external storage device with an ExFAT file system. This allows you to load hard drive files for your virtual machine regardless of its parent operating system.

To do this in Windows, open the system's file manager, then plug in the external hard drive.

Find your drive on the left sidebar of the file manager, right-click and select Format…

Picture 1 of How to share VirtualBox VM across different operating systems

 Click the drop-down list below the File system label, then select ExFAT.

Picture 2 of How to share VirtualBox VM across different operating systems

Accept the default values, then click Start.

Create an ExFAT drive in macOS

Press Command + Space to open Spotlight Search on your machine, then type 'Disk Utility'.

Click the entry for your physical drive on the left sidebar of the window.

Picture 3 of How to share VirtualBox VM across different operating systems

Note: By default, sometimes the Disk Utility application will not display physical devices. To fix this, go to the View menu item, then click Show All Devices.

Click the Erase button on the window's top bar, then select ExFAT on the Format drop-down box.

 

Picture 4 of How to share VirtualBox VM across different operating systems

Click Erase to format your drive to ExFAT.

Create ExFAT drive in Linux

Open a new Terminal, then enter the following command to install the ExFAT file system on your computer:

sudo apt install exfatprogs exfat-fuse

Open the system's disk utility program. In Ubuntu you can do this by pressing Win then typing 'disks'.

Select your physical drive, then click the 3-dot menu in the upper right corner of the window.

Picture 5 of How to share VirtualBox VM across different operating systems

Click Format Disk…, then select Format. This will delete all existing partitions in your storage device.

Click the + button below the storage device's Volumes diagram.

Picture 6 of How to share VirtualBox VM across different operating systems

Click Next to accept the default partition size, then click the Other radio button, then click Next.

Picture 7 of How to share VirtualBox VM across different operating systems

Select ExFAT on the file system selection, then press Create to install it on your device.

Picture 8 of How to share VirtualBox VM across different operating systems

Share VDI files between Windows and Mac/Linux

Boot into your Windows system, open VirtualBox, then click the New button on the top bar of the window.

 Provide the virtual machine name, then select your ISO file.

Picture 9 of How to share VirtualBox VM across different operating systems

Click the Hard Disk drop-down tab, then click the Browse button in the Hard Disk File Location and Size category.

Picture 10 of How to share VirtualBox VM across different operating systems

Find your external hard drive, then select it as the location of the VDI drive.

Picture 11 of How to share VirtualBox VM across different operating systems

Go through the virtual machine operating system installation wizard, then shut down the virtual machine.

Boot into MacOS or Linux, then open your copy of VirtualBox in the system.

At the top of the window, click New to create a new virtual machine.

Picture 12 of How to share VirtualBox VM across different operating systems

 Provide your VM name and type, then click Next.

Picture 13 of How to share VirtualBox VM across different operating systems

Make sure that the VM on your second operating system has the same amount of memory and processor allocated to it.

Picture 14 of How to share VirtualBox VM across different operating systems

Click the Use an Existing Virtual Hard Disk File radio button, then click the Browse button on the right side of the window.

Picture 15 of How to share VirtualBox VM across different operating systems

Click Add, then search for the virtual machine's VDI file on the external drive.

Now, you will see an entry in the window. Highlight the entry and click Choose.

Picture 16 of How to share VirtualBox VM across different operating systems

On the next window, click Next > Finish. It will return you to the main window.

Picture 17 of How to share VirtualBox VM across different operating systems

Highlight the new VM entry on the main window and click Start. You should now see the same virtual machine you created in Windows running on your Mac.

Share VDI files between Mac and Linux

Boot into Linux, then open VirtualBox using the launcher app on your system.

 Create a new virtual machine, then click Expert Mode at the bottom of the creation wizard.

Picture 18 of How to share VirtualBox VM across different operating systems

Provide a name and type for your new virtual machine, then click the Hard Disk drop-down tab.

Picture 19 of How to share VirtualBox VM across different operating systems

Click the icon next to the Hard Disk Location and Size field and select any folder in the external drive.

Picture 20 of How to share VirtualBox VM across different operating systems

Proceed with the standard installation of the guest operating system.

Once you're done creating the virtual machine, reboot into macOS and create a new VM using your existing VDI file.

Picture 21 of How to share VirtualBox VM across different operating systems

Update 20 March 2024
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile