vagrant synced_folders and VBoxInternal2/SharedFoldersEnableSymlinksCreate

Her*_*gol 9 ubuntu virtualbox vagrant

ok here's the deal

我在 Windows 8 上运行 vagrant(ubunttu 12.10) 但每次我尝试从非 nfs 共享文件夹中创建 virtualenv (python) 时,我都会收到“协议错误”,结果是 virtualbox 不允许符号链接默认情况下,但可以使用它来为每个共享启用它

VBoxInternal2/SharedFoldersEnableSymlinksCreate/SHARE_NAME", "1"

问题是最新的流浪者不再接受我的股票的“名称/别名”,我应该如何从该设置中引用它?如果我的份额是 /var/www ?

# # Use VBoxManage to customize the VM. For example to change memory: # vb.customize ["modifyvm", :id, "--memory", "1024"] # end # # View the documentation for the provider you're using for more # information on available options.

vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/SHARE_NAME", "1"]

任何帮助将不胜感激。

小智 13

我在 Stackoverflow 的不同上下文中回答了这个问题:https : //stackoverflow.com/a/21450513/1867779

这是摘要,假设 Vagrant 正在创建/vagrant共享文件夹:

config.vm.provider :virtualbox do |vb|
  vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate//vagrant","1"]
end
Run Code Online (Sandbox Code Playgroud)