上个月我一直在为一个家庭无线网络没有问题的铁路应用程序运行流浪汉。我正在Windows机器上运行vagrant 1.4.3和virtualbox ..我已经从老房子里使用的无线切换到使用加密狗的新连接(预付费插件和播放互联网USB设备,因为我已经移动)并且我得到了以下错误..
Bringing virtual machine 'default' up with 'virtual-box' provider..
[default] clearing any previously set forwarded ports...
[default] clearing any previously set network interfaces...
[default] Available bridged network interfaces:
[default] what interface should the network bridge to?
问题是,当它问我“网络应该连接到哪个接口?”时,我没有像上面那样给出任何选项..是否有可以编辑的特定文件来解决此问题?< / p>
答案 0 :(得分:4)
没有测试过这个,因为我的工作电脑拒绝正确运行Vagrant,但它可能对你有所帮助。
在Windows中打开命令窗口并运行“ipconfig / ALL”,这将显示计算机上的所有网络适配器,输出可能看起来像这样(删除任何识别信息):
Host Name . . . . . . . . . . . . : Something
Primary Dns Suffix . . . . . . . : something.something.com
Node Type . . . . . . . . . . . . : Peer-Peer
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : something.something.com
Ethernet adapter Local Area Connection* 12:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : something.com
Description . . . . . . . . . . . : Check Point Virtual Network Adapter For Endpoint VPN Client
Physical Address. . . . . . . . . : AA-AA-AA-AA-AA-AA
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix . : something.something.com
Description . . . . . . . . . . . : Intel(R) Centrino(R) Ultimate-N 6300 AGN
Physical Address. . . . . . . . . : AA-AA-AA-AA-AA-AA
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : aaaa::aaaa:aaaa:aaaa:aaaaaaa(Preferred)
IPv4 Address. . . . . . . . . . . : 1.1.1.1(Preferred)
Subnet Mask . . . . . . . . . . . : 1.1.1.0
Lease Obtained. . . . . . . . . . : 27. januar 2014 10:09:22
Lease Expires . . . . . . . . . . : 28. januar 2014 10:09:21
Default Gateway . . . . . . . . . : 1.1.1.1
DHCP Server . . . . . . . . . . . : 1.1.1.1
DHCPv6 IAID . . . . . . . . . . . : 388265731
DHCPv6 Client DUID. . . . . . . . : aa-aa-aa-aa-aa-aa-aa-aa-aa-aa-aa-aa-aa-aa
DNS Servers . . . . . . . . . . . : 1.1.1.1
1.1.1.1
NetBIOS over Tcpip. . . . . . . . : Disabled
Ethernet adapter Bluetooth Network Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
Physical Address. . . . . . . . . : aa-aa-aa-aa-aa-aa
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
查看是否可以在列表中找到USB加密狗的名称。找到了?如果是,则尝试将其添加到您的Vagrant文件中。
如果我想使用无线适配器进行网络连接,那么根据文档(http://docs.vagrantup.com/v2/networking/public_network.html),我必须将此行添加到我的Vagrantfile中:
config.vm.network "public_network", :bridge => 'Wireless Network Connection'
答案 1 :(得分:0)
我遇到了同样的问题,我发现这是因为,在我的情况下至少,主机本身就是一个托管在AWS上的虚拟机。适配器没有被...用于桥接网络的Vagrant检测到。我默认为&#39; private_network&#39;在Vagrantfile中。
config.vm.network "private_network", ip: "192.168.33.10"
我有它的工作,这个解决方案适合我想要实现的工作。
答案 2 :(得分:0)
我也遇到了这个问题。
没有显示可用的桥接网络接口
今天我解决了它,这是我所做的:
name
的字段中是否显示有效选项。{VirtualBox}\drivers\network\netflt
。答案 3 :(得分:0)
我最近在Windows 10 64位系统上遇到了同样的问题,听说这是由于某些已知的错误或某些原因引起的。
我不断尝试,并按照上面建议的doraJam / Dale进行了操作,并且成功了。
基本上,我删除了旧版本6.0.4,然后重新安装了新发布的版本6.0.6,并确保在向导安装屏幕上选择了桥接网络的驱动程序,然后重新启动计算机,然后在我的情况下,销毁了旧的无用图像“ ubuntu / bionic64”,再次“无用”,最终成功,它能够配置该图像并按预期加载。
我希望这项工作对遇到相同问题的人有用。