Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant not showing any available network interfaces

Tags:

vagrant

I have been running vagrant for the last month for a rails application with no problems on a home wirless network. I am running vagrant 1.4.3 and virtualbox on a windows machine..I have switched from the wireless i was using in old house to an new connection using a dongle (prepay plug and play internet USB device as I have moved) and am getting the following error..

 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?

The problem is, when it is asking me "what interface should the network bridge to?", I am not being given any options as in the above.. Is there a particular file that can be edited to resolve this?

like image 340
user3238447 Avatar asked Jan 26 '14 21:01

user3238447


1 Answers

Haven't tested this because my work computer refuses to run Vagrant properly, but it may be of some help to you.

Open up a command window in Windows and run "ipconfig /ALL", this will show all the network adapters on your computer and the output will probably look something like this (removed any identifying info):

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

See if you can find the name of your USB dongle in the list. Found it? If yes then try adding it to your Vagrantfile.

If I wanted to use my wireless adapter for networking, then according to the docs (http://docs.vagrantup.com/v2/networking/public_network.html) I would have to add this line to my Vagrantfile:

config.vm.network "public_network", :bridge => 'Wireless Network Connection'
like image 138
Kbrnsr Avatar answered Oct 20 '22 12:10

Kbrnsr