Can't get a bridged network working

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
Mandu
Posts: 10
Joined: 22. Sep 2012, 19:25

Can't get a bridged network working

Post by Mandu »

Host is OSX running 10.9 Mavericks. Using an Airport that's configured as a DHCP server. Host's IP address is 10.0.1.n, and I want LinuxMint (the guest OS in the VM) to be on the same subnet. I figured a bridged adapter was the way to go: Linux would then communicate directly with my Airport base station and get another address in the 10.0.1.* range. However, when I select Bridged Adapter / en0: Airport(wifi) in the virtualbox Network settings, and try to apply it, I lose my previous network connection (which is NAT). Usually all I have to do is wait five seconds, but I never get a "Connected" notification.

Any suggestions?
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Can't get a bridged network working

Post by noteirak »

Wireless is known to have issue with bridging in general, due to how the wireless protocol works (it is supposed to be P2P protocol!). If there is a cabled connection, I would suggest to try with that first.
But if it works, then there isn't much that can be done, as the limitation is at the hardware's firmware level.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Can't get a bridged network working

Post by socratis »

OK, I have a couple of questions regarding your post. First of all:
Mandu wrote:However, when I select Bridged Adapter / en0: Airport(wifi) in the virtualbox Network settings, and try to apply it
1) It is a little bit weird that en0 is your WiFi. Is this a typo maybe? Or you have wireless at a higher priority compared to wired?
2) How do you exactly "select" the Bridged Adapter? From the drop-down you change the binding while the VM is running?
Mandu wrote:I lose my previous network connection (which is NAT).
Isn't this something that you would normally expect? I mean, you "pull the plug" from one network and you plug in another.
Mandu wrote:Usually all I have to do is wait five seconds, but I never get a "Connected" notification.
Does this mean that after 5 seconds the networking is OK but you don't get a "Connected" notification in Mint?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Djamiyo
Posts: 1
Joined: 14. Nov 2013, 07:55

Re: Can't get a bridged network working

Post by Djamiyo »

I've got the same troubles trying to get the connection of my VMs to host machine via bridged network. And there are some kind of magic. I have 2 VMs with centos 6.4 one cloned from another. They are absolutely identical and have identical VM network settings. They even have the same MAC addresses. BUT the clone gets the IP from DHCP after about a 60 seconds of waiting, and the first one can't. I've run it together and separately - no luck. I can't understand the difference. Anyway the networks works awfully: ping is not stable and ssh connection makes me wait a few seconds sometimes.

Host: OS X 10.9 (wifi internet connection)
VBOX 4.3.2
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Can't get a bridged network working

Post by noteirak »

@Djamiyo : your issue has nothing to do with the OP actually. Your issue is that both your VMs have the same MAC address. They MUST NOT.
MAC addresses must be unique in the same broadcast domain. Make them unique again and your problems will go away, if this is the only issue.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply