输入“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 版。那为我解决了。
关于port - Vagrant,VirtualBox - 找不到适配器?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/15857766/