How to create a shared folder between the host operating system and the guest operating system.
Mac OS X Host
First, create the folder to be shared on the host OS, for example, /Users/dw/virtualbox-share
.
Debian Guest
- Start Debian in VirtualBox
- VirtualBox menu: Devices > Shared Folder Settings…
- Add the folder created on Mac, select Make permanent
- Create a folder on Debian, e.g.
/home/dw/Desktop/host
- Append the following to
/etc/fstab
on Debian (get the values forgid
anduid
from theid
command):debian /home/dw/Desktop/host vboxsf umask=0022,gid=1000,uid=1000
- Restart Debian
Windows Guest
- Start Windows in VirtualBox
- VirtualBox menu: Devices > Shared Folder Settings…
- Add the folder created on Mac, select Auto mount, select Make permanent
- In the Windows Explorer, go to Network > VBOXSVR > \VBOXSVR\windows
- Right-click on \VBOXSVR\windows and select Map network drive…
- Choose a drive letter and add a shortcut on the desktop