Virtualbox follow host symlink

You want the symlink resolution to be done on the host and not on the client. To do that you can use a network file system like Samba running on the host. The clients will mount the file system via CIFS.
Some notes:

1) you want to make sure the the target is on the same share OR that wide links are enabled on the share with the symlink.

2) you want to make sure that "unix extensions" are disabled on the server or that the symlink's target is on the same 'share'.

If you need unix extensions AND wide links, you need to set the "allow insecure wide links" option to true.


I've just spent ages trying to figure this out, linux host/guest with 2 shared folders.

1 shared folder contains host created symlinks to the other shared folder, guest is trying to resolve the links but couldn't follow them as the path was incorrect for the guest (ie symlink points to /media/folder/file.aaa (which exists on the host) instead of /media/sf_folder/file.aaa (which is where the folder is mapped to on the guest).

So I was about to go down the samba route but there is a much simpler soluition, if you create a drop in file: /etc/modprobe.d/vboxsf.conf on the guest with this single line in it:

options vboxsf follow_symlinks=1

then reboot the guest, the host will now resolve symlinks so that the guest can follow them!

source: https://www.virtualbox.org/ticket/17491?cversion=0&cnum_hist=7