加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

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

发布时间:2020-12-14 00:39:28 所属栏目:Windows 来源:网络整理
导读:前段时间有一个线程可以解决同样的问题: Can’t create symlinks in virtualbox shared folders.现在它关闭了(为什么?).所以我开始一个新的,因为我现在有这个问题,无法找到解决方案. 简短的问题描述:通过在一个共享文件夹中创建/放置符号链接的注册,会发
前段时间有一个线程可以解决同样的问题: Can’t create symlinks in virtualbox shared folders.现在它关闭了(为什么?).所以我开始一个新的,因为我现在有这个问题,无法找到解决方案.

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

root@devmv:/var/www/sandbox/zf1sandbox# ln -s /lib/ZendFramework/ZF1 ZF1
ln: creating symbolic link `ZF1': Protocol error

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

C:Windowssystem32>VBoxManage setextradata "Dev VM" VBoxInternal2/SharedFoldersEnableSymlinksCreate/var/www 1
C:Windowssystem32>VBoxManage setextradata "Dev VM" VBoxInternal2/SharedFoldersEnableSymlinksCreate/var/www/ 1
C:Windowssystem32>VBoxManage setextradata "Dev VM" VBoxInternal2/SharedFoldersEnableSymlinksCreate/workspace 1
C:Windowssystem32>VBoxManage setextradata "Dev VM" VBoxInternal2/SharedFoldersEnableSymlinksCreate/workspace/ 1
C:Windowssystem32>VBoxManage setextradata "Dev VM" VBoxInternal2/SharedFoldersEnableSymlinksCreate/M:workspace 1
C:Windowssystem32>VBoxManage setextradata "Dev VM" VBoxInternal2/SharedFoldersEnableSymlinksCreate/M:workspace 1

我没有像我这样的错误

C:Windowssystem32>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:Windowssystem32>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.

但它仍然无法正常工作.

我还安装了Oracle VM VirtualBox Extension Pack(可以下载here).但它根本不想工作.

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

谢谢

System parameter:
Host: Winwows 7 64Bit
Guest: Debian 6.0.6 64Bit
VirtualBox: 4.2.6

编辑:

一些其他信息:

C:Windowssystem32>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

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

有用!

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

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

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读