Page 1 of 1

can't create symlink in shared folder

Posted: 21. Nov 2018, 05:49
by walkerxk
i can't create symlink in the shared folder, it said read only, but i can create a normal file. and i can see the symlink i create in the host.
guest.png
guest.png (38.26 KiB) Viewed 1773 times
my host is macos 10.13.6
my guest is Ubuntu Disco Dingo (development branch)
my virtualbox version is 6.0.0_BETA2
and i attached the VBox.log

Re: can't create symlink in shared folder

Posted: 21. Nov 2018, 10:03
by andyp73
In the chapter 4.3 of the VirtualBox 5.2.x documentation we see...
Starting with version 4.0, VirtualBox shared folders also support symbolic links (symlinks), under the following conditions:
  1. The host operating system must support symlinks (i.e. a Mac, Linux or Solaris host is required).
  2. Currently only Linux and Solaris Guest Additions support symlinks.
  3. For security reasons the guest OS is not allowed to create symlinks by default. If you trust the guest OS to not abuse the functionality, you can enable creation of symlinks for "sharename" with:
    VBoxManage setextradata "VM name" VBoxInternal2/SharedFoldersEnableSymlinksCreate/sharename 1
I would be surprised if that functionality had changed. Is this a guest that existed prior to installing the 6.0.0 beta versions? If so, had you run that command on your guest to allow it to create symlinks and had it worked previously?

-Andy.

Re: can't create symlink in shared folder

Posted: 21. Nov 2018, 10:43
by walkerxk
thanks it seems work, but perhaps need a reboot, i will verify that after i reboot.