输入“vagrant up”时获取以下日志转储。已尝试在 VirtualBox 上没有任何混乱,并且还手动添加端口转发规则(主机 IP 127.0.0.1,主机端口 2222,访客端口 22)。
"Bringing machine 'polecat' up with 'virtualbox' provider...
[polecat] Setting the name of the VM...
[polecat] Clearing any previously set forwarded ports...
[polecat] Creating shared folders metadata...
[polecat] Clearing any previously set network interfaces...
[polecat] Preparing network interfaces based on configuration...
[polecat] Forwarding ports...
[polecat] -- 22 => 2222 (adapter 1)
The adapter to attach a forwarded port to was not found. Please
verify that the given adapter is setup on the machine as a NAT
interface.
Host port: 2222
Guest port: 22
Adapter: 1"
谁能解释一下我到底该怎么做才能解决这个问题?遗憾的是,谷歌搜索并没有被证明是有用的,而我项目中的其他用户似乎已经自动完成了这项工作!
谢谢你的帮助!
我在 VirtualBox 4.2.0 中也遇到了同样的问题。经过一段时间的研究,我将 VirtualBox 升级到了 4.2.10 版本。这为我解决了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)