Ticket #16065 (new defect)

Opened 3 years ago

Last modified 3 years ago

Cannot create symlink inside shared folder on Windows host

Reported by: g_tirloni Owned by:
Component: shared folders Version: VirtualBox 5.1.6
Keywords: Cc:
Guest type: Linux Host type: Windows


Symlinks do not work inside a VirtualBox Shared Folder when running on Windows 10 host with a Linux guest (Fedora 24)

$ mount  | grep vboxsf
home_vagrant_sync on /home/vagrant/sync type vboxsf (rw,nodev,relatime)
home_vagrant_sync on /home/vagrant/sync type vboxsf (rw,nodev,relatime)

$ pwd
$ mkdir a
$ ln -s a b
ln: failed to create symbolic link 'b': Protocol error

Outside shared folder:

$ cd ..
$ pwd
$ mkdir c
$ ln -s c d
$ ls -ld d
lrwxrwxrwx 1 vagrant vagrant 1 Oct 12 20:51 d -> c


$ uname -a
Linux guest 4.5.7-300.fc24.x86_64 #1 SMP Wed Jun 8 18:12:45 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ VBoxClient --version

>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" --version


VBox.log Download (76.5 KB) - added by g_tirloni 3 years ago.

Change History

Changed 3 years ago by g_tirloni

comment:1 Changed 3 years ago by socratis

Unless you filed that as an enhancement, it is not a bug. It states so, clearly, in the User Manual, Chapter 4.3 Shared folders. I'll quote an excerpt from the relevant section. Please read the rest of it:

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).

comment:2 Changed 3 years ago by g_tirloni

I considered it a bug since Windows supports  symlinks, but according to the documentation I should have filed it as an enhacement, sorry about that.

If one would delve into the VirtualBox source code to try and implement this, any high-level advice on how to properly do it?

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use