Technical Anshu
Tutorials Blog
Shared Folders

VirtualBox Shared Folders Share Files Between Host and Guest Safely

A shared folder is the easiest way to move files between your real PC and a virtual machine - one folder that both sides can open. It takes a minute to set up after Guest Additions. This page covers the setup, the options that matter, and the safety thinking nobody mentions: a shared folder connects the two machines, so what you share deserves a decision.

By Technical AnshuShared FoldersFile SharingSafety
Watch the full video - the complete VirtualBox tutorial, download to first Windows VM, step by step

You have three ways to move a file into a VM: drag and drop it, copy it through a network share, or keep a folder both machines can see all the time. The third way - a VirtualBox shared folder - is the one you set up once and then forget, which is exactly why it needs a moment's thought. Anything inside that folder is reachable from both sides, instantly. Convenient for a trusted lab VM; a genuine hole if the guest ever runs something nasty.

Shared Folders settings - one folder, deliberate and limited
Folder shared with the VMD:\VM-Share
Auto-mount + permanentOn
Appears in the guest asNetwork drive / \\vboxsvr share
✗ Never share the whole C: drive or your real documents folder
✓ Read-only tick available for one-way drops
A shared folder done properly: one purpose-built folder on the host, not your whole drive handed to the guest.
1

Set Up a Shared Folder

  1. First create the folder on your host - a purpose-built one such as D:\VM-Share, not an existing folder full of your real work.
  2. With Guest Additions installed in the guest, open the VM's Settings and then Shared Folders, or use Devices and then Shared Folders while it runs.
  3. Add the host folder, give it a name, and tick Auto-mount and Make Permanent so it is there at every boot.
  4. Inside the Windows guest it appears as a network location under \\vboxsvr, and with auto-mount it also arrives as a drive letter in This PC.

If the folder does not appear, Guest Additions is the first suspect - shared folders are one of its features, and a missing or outdated install means no share. Reinstall or update it inside the guest before hunting anywhere else.

2

The Options That Matter

3

The Safety Truth About Shared Folders

Be honest about what a shared folder is: a two-way bridge between the guest and your real files. A program running inside the VM - including a malicious one - can read, change, encrypt or delete everything inside a read-write shared folder with the same ease as the guest's own desktop. Ransomware tested in a VM cannot jump to your host by itself, but it does not need to jump if you have politely mounted your documents folder inside.

So the rules are simple: share a purpose-built folder, keep nothing in it you cannot afford to lose, prefer read-only when the guest only needs to fetch, and disable shared folders entirely in any VM used for untrusted software. For those VMs, inspect what you must through the video and leave every bridge - folders, clipboard, drag and drop - switched off.

4

When a Shared Folder Is the Wrong Tool

For a one-time transfer, drag and drop (also a Guest Additions feature) is lighter - nothing stays connected afterwards. For large or constant traffic, a normal network share from the host with a bridged or host-only adapter behaves like a real network drive and survives reboots of either side. And for carrying a VM between PCs, neither is right - you want an export, which this series covers in the moving and backup guide. Pick the tool by how long the connection should live.

The shared-folder rule in one line: share a folder you created for the VM, never a folder the VM could hurt you through. One dedicated folder, read-only when it can be, and switched off entirely in any VM that runs untrusted software.

See File Sharing Working in the Video

The full tutorial takes the VM from install to a working, connected machine - the setup shared folders depend on, shown start to finish.

Watch Full Video
Common Questions (FAQ)

Why does my shared folder not appear inside the VM?

Almost always because Guest Additions is missing or outdated in the guest - shared folders are one of its features. Install or update Guest Additions inside the VM, reboot it, and check that Auto-mount and Make Permanent are ticked in the share's settings.

Can a virus inside the VM damage files in a shared folder?

Yes. A read-write shared folder is fully reachable from inside the guest, so anything running there can change or delete its contents. Keep shared folders limited to a purpose-built folder, use read-only where possible, and disable them completely in VMs used for untrusted software.

Where does the shared folder show up in Windows?

As a network location under the \\vboxsvr name, and - with Auto-mount ticked - also as a drive letter in This PC. If it is missing, open the network location manually once; if that fails too, Guest Additions is the first thing to fix.

This guide is based on the Technical Anshu VirtualBox tutorial video - stuck on a step? Ask in the video comments and you will get a reply.