Loading…

CVE Watch
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

  1. Turn off the VM
  2. In the VirtualBox manager, select your VM
  3. Click on Configuration -> Shared Folders
  4. Click on the + icon on the right to add a folder
  5. In Folder path, select the folder of your host machine
  6. In Folder name, give a name to the share (ex: Reverse_Engineering)
  7. Checkmark Automount
  8. Click on OK

You see the folder appear in the list with Automount: Yes.

  1. 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 vboxsf group to access the shared folder
  • The folder name in VirtualBox must be simple, without spaces or special characters
linux
Share this article

Comments (0)

Be the first to comment!