Where is VirtualBox shared folders mounted in a virtual guest?

Solution 1:

Ubuntu and other Linux Guests automounts shared folders under the folder /media with the format /media/sf_share-name.

Windows Guests automounts its shared folders as a drive letter in File-Manager

The Virtual Machine guest itself needs to have VirtualBox Guest Additions installed.

To use automounting, ensure that your user has the vboxsf user group which is also called Use VirtualBox virtualisation solution in the latest versions of VirtualBox.

Edit the Settings of the Virtual Machine itself and add the folder that is to be shared with the Virtual Guest as follows: enter image description here

Solution 2:

From the host box you can list shared folders from command line via:

VBoxManage showvminfo {vm name here}

There is a "Shared folders:" section.

Solution 3:

this is covered here and here. they both work...

Copy and paste from the help.ubuntu.com page I referenced:

Linux

If the client is Linux, you have to mount and connect it to a directory.

The following bash commands (in the client) would setup a correct mount (and creates a link from your desktop) Note: you should not use spaces in the share name.

sharename="whatever.you.want.to.call.it"; 
sudo mkdir /mnt/$sharename \
sudo chmod 777 /mnt/$sharename \ 
sudo mount -t vboxsf -o uid=1000,gid=1000 $sharename /mnt/$sharename \
ln -s /mnt/$sharename $HOME/Desktop/$sharename

For the above command if you get error as

mount: unknown filesystem type 'vboxsf'

Then just change the vboxsf to vboxfs

If you want to have it mount automatically upon each boot, put the mount command in /etc/rc.local Debian distros (e.g. Ubuntu 10.04 and later)