

The shared folder will be visible, even on reboot. Assuming that guest additions have already been installed, and that the somename directory exists, then that's all there is to it. Note that "somename" should be an empty directory:įor a desktop, I also ticked the "Auto-mount" option above. On the dialog box, I entered the Windows source path in "Folder Path", an arbitrary name for the shared folder under "Folder Name", and the "Mount Point" which is a valid path of my choosing, on the guest. The first step is common, and is done via the VirtualBox UI (I have 6.1.26 at the time of posting), by selecting the target VM and going to Settings > Shared Folders and clicking the "Add shared folder" button:

Let me share what has worked for me in two different setups, an Ubuntu 20.04 LTS Desktop and an Ubuntu 20.04.3 LTS Server on a Windows 10 host. If the above works fine, add a corresponding entry in /etc/fstab to make it permanent. Sudo mount -t vboxsf FolderNameInVBoxSettings /mnt/sharedfolder Does anyone has any idea of what's going on here?Īlso must mention that on the same VirtualBox I have another VM installed (Ubuntu 18.04) on which the auto-mounting is working as a charm.On Ubuntu Server, without guest additions, manually mount the shared folder on the guest, e.g.: mkdir /mnt/sharedfolder However I couldn't find any relevant information of how to solve it. Maybe the last error that I got in terminal is a hint for the root of the problem. sbin/mount.vboxsf: mounting failed with the error: Invalid argument Sudo mount -t vboxsf -o uid=$USER,gid=vboxsf shared /home/myuser/shared The share does not work, cannot see the files under the shared folder from the host machine. However the same behavior as for Auto-mounting happens. In Settings -> Shared Folders dialog I unchecked Auto-mount checkbox and added a valid value in Mount point (eg. I left Mount point empty.Īfter the above setup I boot the Ubuntu 20 VM and I was expecting to see the mount under /media/sf_shared and I did see it however it was empty even though on the host machine there are several files. I created an entry under VirtualBox Ubuntu 20.04 VM Settings -> Shared Folders and completed the Folder Path to a valid Windows(host) location, the Folder Name (called shared) and checked Auto-mount and Make Permanent. I followed (among other related threads) in order to mount a shared folder in my Ubuntu 20.04 VM.
