0
我已经安装在颠沛流离的Magento 2,在泊坞窗机,该搬运工机具有端口转发的概念,我设置的专用网络,与NAT和仅主机,现在只有访问的Magento 2 hostmachine。流浪汉Multipe网络
我需要访问本地连接的远程机器也是这样,我尝试将私有网络更改为公用网络。
流浪文件:
Vagrant.configure("2") do |config|
config.vm.box = "machine"
config.ssh.username = "vagrant"
config.vm.hostname = "www.myhost.net"
config.ssh.forward_agent = "true"
config.vm.network "public_network", ip: "192.168.56.40"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
end
if Vagrant::Util::Platform.windows?
config.vm.synced_folder ".", "/vagrant", :mount_options => ["dmode=777", "fmode=777"]
else
config.vm.synced_folder ".", "/vagrant", :nfs => { :mount_options => ["dmode=777", "fmode=777"] }
end
end
但是,扔
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.
我需要添加多个网络到无业游民
NAT
主机onloy(用于nfs)
桥(用于访问远程计算机)
建议我如何解决这个问题。