Vagrant:如何为Windows主机禁用NFS同步文件夹?
我们需要与
Linux,MacOS和Windows主机共享VM.但是,对于Linux和MacOS,建议使用NFS共享,但对于Windows,不支持NFS共享.
有没有办法检测主机操作系统是Windows并禁用NFS共享? 解决方法
流浪汉1.2.5
实际上已经在Vagrant 1.2.5中进行了处理,参见Option for NFS is not silently ignored on windows hosts和相应的提交b2d1a26 (NFS request is silently ignored on Windows): ? @__synced_folders.each do |id,options| # Ignore NFS on Windows if options[:nfs] && Vagrant::Util::Platform.windows? options[:nfs] = false end end 上一个解决方法 如果你无法升级,你可能想尝试Ryan Seekely的Vagrant and using NFS only on non Windows hosts:
请注意,我实际上没有测试过这个特定的解决方案,但之前我一直在使用概念上类似的方法,尽管使用的是Vagrant :: Util :: Platform.windows?正如官方承诺(现在没有方便…). (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- 跟踪OceanLotus的新下载程序KerrDown
- .net – 如何调试Windows应用商店应用中的内存泄漏?
- Windows命令行相当于Linux中的“时间”?
- 绑定到XAML中的Window.Current.Bounds.Width
- windows – 如果不在域中,IE会发送Kerberos票吗?
- 技术在交流中进步,知识在分享中传播
- windows-7 – 如何在Windows 7上使用Wireshark监控VPN流量?
- Microsoft SQL Server Native Client 10.0登录超时已过期
- 适用于Windows的Cisco VPN客户端
- Windows 7与Windows XP的客观速度比较