Vagrant、VirtualBox - 适配器未找到?

4
在输入“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"

请问有谁能解释一下我需要做什么才能解决这个问题吗?很遗憾,谷歌搜索没有帮到我,而我项目中的其他用户似乎只是自动解决了这个问题!

感谢任何帮助!

3个回答

4

我曾遇到过VirtualBox 4.2.0的同样问题。经过一段时间的研究,我将VirtualBox升级至版本4.2.10,这解决了我的问题。


0

我曾经遇到同样的问题,但在升级虚拟机之后问题得到了解决!


-1

嗯,你想做的是转发端口,如果你想自动完成,你需要打开NAT服务让其他软件转发端口,但是为了这样做,你需要获取root和ssh访问你的bt hh2,你可以使用这个网站PsiDOC.com。但是如果你不想做所有这些事情,你可以在你的路由器上进行端口转发并在VirtualBox上使用桥接适配器,但请记住,HH2总是为虚拟机创建单独的IP地址。如果你在端口转发方面遇到任何问题,你可以使用DMZ功能http://scr.hu/165/l26k8


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接