Skip to content
Home » How to Share a Folder Between a Windows Host and a Windows Guest in VirtualBox?

How to Share a Folder Between a Windows Host and a Windows Guest in VirtualBox?

VirtualBox has a feature where you can access the files on a folder in your host from your virtual machine. For example, your host is Windows and you want to send some files to your Windows virtual machine. 

 

Problem

How to share a folder between a Windows host and a Windows guest in VirtualBox?

 

Solution

You can view or change the files from your host system from within the guest system using Oracle VM VirtualBox’s shared folders capability. Shared folders physically reside on the host and are then shared with the guest, which uses a special file system driver in the Guest Additions to talk to the host. For Windows guests, shared folders are implemented as a pseudo-network redirector and the Guest Additions provide a virtual file system For Linux and Oracle Solaris guests. I use VirtualBox version 7.1.4 in this article and below are the steps so that you can share a folder between a Windows host and a Windows guest in VirtualBox:

A. In the Host

Create a folder on your host and I create a VirtualBox folder on drive D like in the image below:

The shared folder

 

B. In the Guest (VirtualBox)

To connect the folder, you need the driver to connect them and the driver has been provided by VirtualBox that is available in an ISO file. Go to this page to install the driver. After you install the driver, configure the shared folder in VirtualBox. Go to SettingsShared Folders and click the icon like in the image below:

share a folder between a Windows host and a Windows guest in VirtualBox
Click the icon in the Shared Folders section

 

Fill the columns like in the image below:

share a folder between a Windows host and a Windows guest in VirtualBox
Settings the shared folders

 

Click the OK button and the shared folder will appear like in the image below:

share a folder between a Windows host and a Windows guest in VirtualBox
The shared folder appears

 

Click the OK button. After that, turn on your virtual machine by clicking the Start button like in the image below:

share a folder between a Windows host and a Windows guest in VirtualBox
Turn on the VM

 

Go to This PC page and you will see the view in the image below:

This PC image

 

Double-click the VirtualBox (Z:) and you should be able to access the folder like in the image below:

Access the shared folder

 

Now, you can access the shared folder and you should add the file like in the image below:

Add the file to the shared folder

 

Note

You can configure the shared folder or mount the iso after you turn on the virtual machine like in the image below:

Configure the shared folder after turning on the VM

 

References

virtualbox.org
youtube.com
docs.oracle.com
blogs.oracle.com

image_pdfimage_print
Visited 34 times, 1 visit(s) today

Leave a Reply

Your email address will not be published. Required fields are marked *