Guest bridge issue in 4.0.10

This is for discussing general topics about how to use VirtualBox.
Locked
jake1138
Posts: 7
Joined: 13. Jul 2011, 19:28
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Linux, Windows

Guest bridge issue in 4.0.10

Post by jake1138 »

I am putting together a network setup using four virtual machines. It's basically client--bridge--bridge--client. I was not able to get it to work with 4.0.10. I found some posts where others are having a similar guest bridge issue after upgrading to 4.0.6, 4.0.8, or 4.0.10. Downgrading to 4.0.4 fixed my problem. I want to share my experience with others in case it helps shed light on what seems to be a bug in VirtualBox.

Host Systems: Tested with two separate Windows XP 32-bit and Windows 7 x64 hosts. Both had the same issue.
VM Systems: Four virtual machines running LFS (Linux From Scratch).

I first tried with all four VM's with Internal Networks.

LFS Client A
VM Adapter1: Internal Network - LANA - Intel PRO/1000 MT Desktop (82540EM)
Linux eth0: 10.0.0.1

LFS Client B
VM Adapter1: Internal Network - LANB - Intel PRO/1000 MT Desktop (82540EM)
Linux eth0: 10.0.0.2

LFS Bridge A
VM Adapter1: Internal Network - LANA - Intel PRO/1000 MT Desktop (82540EM)
VM Adapter2: Internal Network - WAN - Intel PRO/1000 MT Desktop (82540EM)
Linux eth0: UP <no ip address>
Linux eth1: UP <no ip address>
Linux br0: UP <no ip address>

LFS Bridge B
VM Adapter1: Internal Network - LANB - Intel PRO/1000 MT Desktop (82540EM)
VM Adapter2: Internal Network - WAN - Intel PRO/1000 MT Desktop (82540EM)
Linux eth0: UP <no ip address>
Linux eth1: UP <no ip address>
Linux br0: UP <no ip address>

I could not ping from 10.0.0.1 to 10.0.0.2 or vice-versa. In fact, the clients were not getting an ARP reply back. I did a packet sniff with tcpdump and saw that the ARP request got to the other client and it replied but the LFS Bridge virtual machines were not forwarding the ARP reply. Then I added static ARP entries in each client. That didn't fix it either. The ICMP packets would arrive on one interface of the bridge but would not be forwarded out the other.

Then I tried with just two VM's (one bridge, one client) and used a Bridged Adapter on the bridge so I could test with my office LAN.

LFS Bridge
VM Adapter1: Bridged Adapter - Intel 82566DM-2 Gigabit Network Connection - Intel PRO/1000 MT Desktop (82540EM)
VM Adapter2: Internal Network - intnet - Intel PRO/1000 MT Desktop (82540EM)
Linux eth0: UP <no ip address>
Linux eth1: UP <no ip address>
Linux br0: UP <no ip address>

LFS Client
VM Adapter1: Internal Network - intnet - Intel PRO/1000 MT Desktop (82540EM)
Linux eth0: 10.0.0.2

Windows Host
Local Area Network: 10.0.0.1

I was not able to ping from 10.0.0.1 to 10.0.0.2 or vice-versa. The LFS Bridge virtual machine was not responding to ARP or accepting any packets for the client on the other side of the bridge. However, I could see the MAC address of the client in the bridge configuration (brctl showmacs br0) so I knew the bridge configuration was correct.

I then tried from another Linux box on my physical 10.0.0.x network and it was not getting an ARP reply for 10.0.0.1. I added a static ARP entry and I saw it sent the ICMP packet but didn't see it arrive on eth0 of LFS Bridge. I did a packet sniff with Wireshark on the Windows host and saw the ICMP packets coming in but apparently the VM was not accepting them.

What is odd is that I could see broadcast traffic being forwarded to the client. Also, I added a VM running CentOS to the internal network and when it booted up it got an IP address from our office DHCP server. So broadcast packets gets forwarded but unicast packets do not.

Both these scenarios work fine with VirtualBox 4.0.4. However, it will break if you change the settings for the Virtual Adapters while the VM is running. This is easy to reproduce in my setup; just change the name of an internal network on one of the bridges, save it, then change it back. It stops working and I have to restart the VM to get it to work again.

I'll also add that routing worked fine with both VirtualBox 4.0.4 and 4.0.10. This is where instead of using two LFS systems as bridges, I use them as routers (client--router--router--client). I can even change Virtual Adapter settings without any problems.
jake1138
Posts: 7
Joined: 13. Jul 2011, 19:28
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Linux, Windows

Re: Guest bridge issue in 4.0.10

Post by jake1138 »

Guest bridging appears to be fixed in 4.1.0. Initially it didn't work then I set all adapters to allow promiscuous mode (something new in 4.1) and that made it work. I still had to restart the VM's anytime I made a change to the network adapters though so that bug is still there.
bryukh
Posts: 5
Joined: 31. May 2011, 08:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Win XP

Re: Guest bridge issue in 4.0.10

Post by bryukh »

I install 4.1.6, but same problem is still there.
bryukh
Posts: 5
Joined: 31. May 2011, 08:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Win XP

Re: Guest bridge issue in 4.0.10

Post by bryukh »

I downgrade to 4.0.4 for Linux host, but same problem. For windows host bridge working.
gopimohan
Posts: 1
Joined: 16. Nov 2011, 19:13
Primary OS: MS Windows Vista
VBox Version: OSE Debian
Guest OSses: Fedora

Re: Guest bridge issue in 4.0.10

Post by gopimohan »

I am having the same problem - broadcast traffic working but unicast traffic not received in promiscuous mode -- arp is received but unicast arp replay is not received

The release I am using is 4.0.8
dontneed
Posts: 1
Joined: 3. Jun 2013, 09:23

Re: Guest bridge issue in 4.0.10

Post by dontneed »

I run 4.2.12 on RHEL6, same problem.
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: Guest bridge issue in 4.0.10

Post by noteirak »

Don't wake up the dead...

Your problem is not the same, since your version is different first of all, and is happening 1 year 1/2 after this one.
Make your own topic where you explain precisly your issue, and make sure you read Minimum information needed for assistance.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Locked