Cybersecuritylinux1 min read
Configure a shared folder between Windows and a VirtualBox VM
MB
Massioudath Bankole
15 May 2026 · 327 views
A shared folder allows you to easily exchange files between your Windows host machine and your VM without using the network or a USB key. Here's how to configure it.
Prerequisites: VirtualBox installed, Guest Additions installed in the VM.
Step 1: Configure shared folder in VirtualBox
- Turn off the VM
- In the VirtualBox manager, select your VM
- Click on Configuration -> Shared Folders
- Click on the + icon on the right to add a folder
- In Folder path, select the folder of your host machine
- In Folder name, give a name to the share (ex:
Reverse_Engineering) - Checkmark Automount
- Click on OK
You see the folder appear in the list with Automount: Yes.
- Click on OK to close the configuration
Step 2: Access the shared folder in the VM
Starts the VM. The shared folder is automatically mounted and accessible.
Under Linux, it is available in /media/sf_<FolderName>:
ls /media/sf_Reverse_Engineering
If you don't have access to the folder, add your user to the vboxsf group:
sudo usermod -aG vboxsf your_user
sudo reboot
On Windows it appears as a network drive in File Explorer.
What I learned
- Automatic mounting avoids having to mount the folder manually each time you start it
- On Linux, the user must be in the
vboxsfgroup to access the shared folder - The folder name in VirtualBox must be simple, without spaces or special characters
linux
Share this article