VirtualBox

Opened 10 years ago

Closed 10 years ago

#13486 closed defect (invalid)

cannot follow symlinks in shared folder

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

Description

I'm running an xubuntu guest on a windows 7 host. VirtualBox 4.3.16 I have setup a shared-folders and it work fine.

I need to access from Host machine to /var/www folder on Guest machine.

So i have make a symlink in xubuntu: ln -s /var/www /media/sf_SHARED

it work fine on Guest but from Host machine (Win7) i cannot follow this link

the error msg is: Filename, directory name, or volume label syntax is incorrect

Change History (4)

comment:1 by Frank Mehnert, 10 years ago

Resolution: invalid
Status: newclosed

Symlinks are disabled on shared folders by default. If you enabled it by tweaking the extradata, then it will IMO still not work because the symbolic link will link to the file in the guest which is not accessible from the outside. You cannot access a guest file by using a symbolic link which points to any file outside that shared folder.

comment:2 by jamme, 10 years ago

Resolution: invalid
Status: closedreopened

Sorry, I forgot to mention that i have already enabled symlinks

VBoxManage setextradata MYVMNAME VBoxInternal2/SharedFoldersEnableSymlinksCreate/MYSHAREFOLDERNAME 1

I have already grant permissions on Host machine (Windows 7)

fsutil behavior set SymlinkEvaluation L2L:1 R2R:1 L2R:1 R2L:1

and with secpol.msc grant permission on "Create symbolic links"

comment:3 by jamme, 10 years ago

So it's simply impossible to do this or is there an alternative way?

comment:4 by Klaus Espenlaub, 10 years ago

Resolution: invalid
Status: reopenedclosed

It's impossible. A shared folder is provided by the host, and if a guest (with symlink support enabled) creates a symlink to "its" /var/www, it doesn't magically become a shared folder provider for the host. The host will interpret the symlink locally, and as it is most likely not making sense, you're getting the error message.

Last edited 10 years ago by Klaus Espenlaub (previous) (diff)
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use