我在文档中找不到关于这个错误信息的任何信息:
NFS requires a host-only network to be created.
Please add a host-only network to the machine (with either DHCP or a
static IP) for NFS to work.
这是我的 Vagrant 配置:
Vagrant.configure(2) do |config|
config.vm.box = "localbox"
config.vm.network "public_network", hostonly: "192.168.33.10"
config.vm.synced_folder ".", "/var/www",
:nfs => true,
:mount_options =>['noacl,nolock,vers=3,udp,noatime,nodiratime,rsize=32768,wsize=32768']
当被问及时,我会选择桥接(Wi-Fi (AirPort))的机场连接。
在Vagrant文档中,我找不到hostonly的任何用法。
使用Vagrant 1.7.4版本。
我的目标很简单,就是能够从我家里的其他计算机(和手机)访问在一台电脑上运行的虚拟机。