Virtualbox shared folder setup
This is how I set up a shared folder using VirtualBox with a Windows host and a Linux guest system.
- Create folder in Windows environment. In my case, "vmshare".
- In VirtualBox application, go to Devices > Shared Folder and create a shared folder. Choose the folder created earlier.
- Create a folder in Linux. Name it something different from the folder created in Windows. In my case, "winshare". Don't name it share because that conflicts with part of the command to mount the folder.
- Mount the folder in Linux. As root:
mount -t vboxsf -o uid=1000,gid=1000 share winshare
This will mount the folder with the user/group id associated with my regular user account.