Symlinks within shared folders in VirtualBox: Operation not permitted and Read Only Filesystem

This blog post was published 10 years ago and may or may not have aged well. While reading please keep in mind that it may no longer be accurate or even 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 think you found a mistake in this blog post, or would like to suggest an improvement to this blog post, you can write me an e-mail to the address public dot michael at franzl dot name; as subject please use the prefix "Comment to blog post" and append the post title.
 
Copyright © 2023 Michael Franzl