Symlinks within shared folders in VirtualBox: Operation not permitted and Read Only Filesystem
Caveat Lector: This blog post was published 11 years ago. Depending on the content, it may no longer be applicable or relevant.
This is not a bug, it is a security feature of Virtual Box. Nevertheless it is annoying. To enable symlinks:
VBoxManage setextradata <MACHINE_LABEL> VBoxInternal2/SharedFoldersEnableSymlinksCreate/<SHARE_LABEL> 1
For example:
VBoxManage setextradata Debian\ Wheezy VBoxInternal2/SharedFoldersEnableSymlinksCreate/Public 1
To check if your setting has been ‘taken’, run
VBoxManage getextradata MACHINE_LABEL enumerate
Restart the virtual machine and the creation of symlinks should work.
If you found a mistake in this blog post, or would like to suggest an improvement to this blog post,
please get in touch at michael@franzl.name; as subject
please use the prefix "Comment to blog post" and append the post title.