VirtualBox

10 年 前 建立

10 年 前 結束

#13486 closed defect (invalid)

cannot follow symlinks in shared folder

回報者: jamme 負責人:
元件: shared folders 版本: VirtualBox 4.3.16
關鍵字: 副本:
Guest type: Linux Host type: Windows

描述

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

更動歷史 (4)

comment:1 10 年 前Frank Mehnert 編輯

狀態: newclosed
處理結果: invalid

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 10 年 前jamme 編輯

狀態: closedreopened
處理結果: invalid

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 10 年 前jamme 編輯

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

comment:4 10 年 前Klaus Espenlaub 編輯

狀態: reopenedclosed
處理結果: invalid

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.

最後由 Klaus Espenlaub 編輯於 10 年 前 (上一筆) (差異)
注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette