VirtualBox:共享文件夹中的符号链接问题

aut*_*tix 17 windows debian virtualbox network-share symlink

前段时间有一个线程解决了同样的问题:Can't create symlinks in virtualbox shared folders。现在它关闭了(为什么?)。所以我开始一个新的,因为我现在遇到了这个问题并且找不到解决方案。

简短的问题描述:通过 attepms 在共享文件夹中创建/放置符号链接发生错误:

root@devmv:/var/www/sandbox/zf1sandbox# ln -s /lib/ZendFramework/ZF1 ZF1
ln: creating symbolic link `ZF1': Protocol error
Run Code Online (Sandbox Code Playgroud)

我已经尝试以不同的方式激活我的共享文件夹“工作区”的符号链接:

C:\Windows\system32>VBoxManage setextradata "Dev VM" VBoxInternal2/SharedFoldersEnableSymlinksCreate/var/www 1
C:\Windows\system32>VBoxManage setextradata "Dev VM" VBoxInternal2/SharedFoldersEnableSymlinksCreate/var/www/ 1
C:\Windows\system32>VBoxManage setextradata "Dev VM" VBoxInternal2/SharedFoldersEnableSymlinksCreate/workspace 1
C:\Windows\system32>VBoxManage setextradata "Dev VM" VBoxInternal2/SharedFoldersEnableSymlinksCreate/workspace/ 1
C:\Windows\system32>VBoxManage setextradata "Dev VM" VBoxInternal2/SharedFoldersEnableSymlinksCreate/M:\workspace 1
C:\Windows\system32>VBoxManage setextradata "Dev VM" VBoxInternal2/SharedFoldersEnableSymlinksCreate/M:\workspace\ 1
Run Code Online (Sandbox Code Playgroud)

我没有收到类似的错误

C:\Windows\system32>VBoxManage setextradata devvm VBoxInternal2/SharedFoldersEnableSymlinksCreate/workspace 1
VBoxManage.exe: error: Failed to create the VirtualBox object!
VBoxManage.exe: error: Code CO_E_SERVER_EXEC_FAILURE (0x80080005) - Server execution failed (extended info not available)
VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or failed to start.
C:\Windows\system32>VBoxManage setextradata "Dev VM" VBoxInternal2/SharedFoldersEnableSymlinksCreate/workspace 1
VBoxManage.exe: error: Failed to create the VirtualBox object!
VBoxManage.exe: error: Code CO_E_SERVER_EXEC_FAILURE (0x80080005) - Server execution failed (extended info not available)
VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or failed to start.
Run Code Online (Sandbox Code Playgroud)

但它仍然无法正常工作。

我还安装了Oracle VM VirtualBox 扩展包(可以在此处下载)。但它根本不想工作。

如果有人可以提供帮助,那就太好了。

谢谢

System parameter:
Host: Winwows 7 64Bit
Guest: Debian 6.0.6 64Bit
VirtualBox: 4.2.6
Run Code Online (Sandbox Code Playgroud)

编辑:

一些附加信息:

C:\Windows\system32>VBoxManage getextradata "Dev VM" enumerate
Key: GUI/LastCloseAction, Value: shutdown
Key: GUI/LastGuestSizeHint, Value: 720,400
Key: GUI/LastNormalWindowPosition, Value: 390,158,1424,819,max
Key: GUI/LastScaleWindowPosition, Value: 640,345,640,480,max
Key: GUI/MiniToolBarAlignment, Value: bottom
Key: GUI/SaveMountedAtRuntime, Value: yes
Key: GUI/ShowMiniToolBar, Value: yes
Key: VBoxInternal2/SharedFoldersEnableSymlinksCreate/M:\workspace, Value: 1
Key: VBoxInternal2/SharedFoldersEnableSymlinksCreate/M:\workspace\, Value: 1
Key: VBoxInternal2/SharedFoldersEnableSymlinksCreate/var/www, Value: 1
Key: VBoxInternal2/SharedFoldersEnableSymlinksCreate/var/www/, Value: 1
Key: VBoxInternal2/SharedFoldersEnableSymlinksCreate/workspace, Value: 1
Key: VBoxInternal2/SharedFoldersEnableSymlinksCreate/workspace/, Value: 1
Run Code Online (Sandbox Code Playgroud)

因此,配置更改已被保存。但它们不起作用。

aut*_*tix 23

有用!

在 Windows 上,默认情况下只有管理员可以创建符号链接。当我以管理员身份启动 VirtualBox 时,我可以毫无问题地创建符号链接。

为了能够在不以管理员身份启动 VB 的情况下创建符号链接,您需要为您的用户/用户组设置此权限。是一个简短的操作方法。

唯一的问题是——我还没有找到允许为管理员用户创建符号链接的方法。我不知道,是否有可能。