我正在尝试使用 Vagrant 设置 El Capitan 虚拟机,但我不断遇到此类错误
“Vagrant 尝试执行“mount_virtualbox_shared_folder”功能 在检测 guest 操作系统“darwin”上,但 guest 没有 支持该能力。您需要此功能 Vagrant 的配置。请将 Vagrant 重新配置为 避免此功能或通过创建此功能来解决问题。”
我真的不知道这是什么类型的错误以及如何修复它。
干杯
最佳答案
来自 example of vagrant mac os box
VirtualBox doesn't have Guest additions for Mac OS X, so you can't have shared folders. Instead you can use normal network shared folders (docs):
# Use NFS for the shared folder config.vm.synced_folder ".", "/vagrant", id: "core", :nfs => true, :mount_options => ['nolock,vers=3,udp,noatime']
只需使用 nfs按照建议输入,因为 mac 本身支持
关于Vagrant 尝试执行能力 'mount_virtualbox_shared_folder' 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37219431/