VirtualBox 5.2.6: Can't mount shared folder on Linux guest if shared folder is a symlink
|symlink, shared folder, mount error
We have provisioning scripts for the VM:s on an NFS share, and create symlinks to folders on this share that we use as shared folders.
This used to work before upgrading VirtualBox from the very stable version 5.0.32. After upgrading to VirtualBox 5.2.x, mounting stopped working on Linux guests but still work great on Windows guests.
We tried Guest Additions 5.0.40, 5.1.30 and all 5.2.x versions with the same result:
$ sudo mkdir -p /mnt/shared
$ sudo mount.vboxsf shared /mnt/shared
mount.vboxsf: mounting failed with the error: Invalid argument
When instead creating a local folder, the same commands execute without error.