(OK) virtualbox networking problems in bridge mode

来源:互联网 发布:如何卸载网络打印机 编辑:程序博客网 时间:2024/06/04 19:48


https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775266


Package: virtualboxVersion: 4.3.20-dfsg-1Severity: importantWhen using virtualbox VMs in Bridge Network mode, there are seriousproblems.ON the host, I have a custom bridge configured.4: lxcbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default link/ether fe:f6:f2:03:7e:33 brd ff:ff:ff:ff:ff:ffinet 172.16.10.1/16 brd 172.16.255.255 scope global lxcbr0valid_lft forever preferred_lft foreverinet6 fe80::a0ef:b5ff:fe4a:215c/64 scope link valid_lft forever preferred_lft forever# This bridge will is used to NAT LXC containers' trafficauto lxcbr0iface lxcbr0 inet static    bridge_fd 0    bridge_maxwait 0    address 172.16.10.1    netmask 255.255.0.0    pre-up brctl addbr lxcbr0    post-down brctl delbr lxcbr0    post-down echo 0 > /proc/sys/net/ipv4/ip_forward    post-down echo 0 > /proc/sys/net/ipv6/conf/all/forwarding    post-up echo 1 > /proc/sys/net/ipv4/ip_forward    post-up echo 1 > /proc/sys/net/ipv6/conf/all/forwarding    post-up iptables -A FORWARD -i lxcbr0 -s 172.16.10.1/16 -j ACCEPT    post-up iptables -A POSTROUTING -t nat -s 172.16.10.1/16 -j MASQUERADE    # add checksum so that dhclient does not complain.    # udp packets staying on the same host never have a checksum filled else    post-up iptables -A POSTROUTING -t mangle -p udp --dport bootpc -s 172.16.10.1/16 -j CHECKSUM --checksum-fill    pre-down iptables -D FORWARD -i lxcbr0 -s 172.16.10.1/16 -j ACCEPT    pre-down iptables -D POSTROUTING -t nat -s 172.16.10.1/16 -j MASQUERADE    # add checksum so that dhclient does not complain.    # udp packets staying on the same host never have a checksum filled else    pre-down iptables -D POSTROUTING -t mangle -p udp --dport bootpc -s 172.16.10.1/16 -j CHECKSUM --checksum-fillThe LXC containers, attached to the bridge, work perfect. The VBox VMs, attached to the same brdige, ping in the beginning, but_eventually_ cannot do any network. THe netwrok start to time out. TheVMs to have their link status.Looking into the Host's dmesg shows:[  756.958798] nspr-3[6988]: segfault at 8 ip 00007f0cbcbf285c sp 00007f0ca80b7670 error 4 in VBoxXPCOM.so[7f0cbcb9b000+fe000]My intent is to have a custom bridge interface, which I hand control.THen, to it I'd like to attach everythign: KVM, VBox, LXC etc, and letthem all talk to each other.-- System Information:Debian Release: 8.0  APT prefers testing  APT policy: (990, 'testing'), (500, 'unstable'), (101, 'experimental')Architecture: amd64 (x86_64)Foreign Architectures: i386Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)Shell: /bin/sh linked to /bin/dashInit: sysvinit (via /sbin/init)Versions of packages virtualbox depends on:ii  adduser          3.113+nmu3ii  dpkg             1.17.23ii  libc6            2.19-13ii  libcurl3-gnutls  7.38.0-4ii  libgcc1          1:4.9.1-19ii  libgsoap5        2.8.17-1ii  libpng12-0       1.2.50-2+b2ii  libpython2.7     2.7.8-11ii  libsdl1.2debian  1.2.15-10+b1ii  libssl1.0.0      1.0.1j-1ii  libstdc++6       4.9.1-19ii  libvncserver0    0.9.9+dfsg-6.1ii  libvpx1          1.3.0-3ii  libx11-6         2:1.6.2-3ii  libxcursor1      1:1.1.14-1+b1ii  libxext6         2:1.3.3-1ii  libxml2          2.9.1+dfsg1-4ii  libxmu6          2:1.1.2-1ii  libxt6           1:1.1.4-1+b1ii  python           2.7.8-2ii  python2.7        2.7.8-11ii  zlib1g           1:1.2.8.dfsg-2+b1Versions of packages virtualbox recommends:ii  libgl1-mesa-glx [libgl1]  10.3.2-1ii  libqt4-opengl             4:4.8.6+git64-g5dc8b2b+dfsg-2+b1ii  libqtcore4                4:4.8.6+git64-g5dc8b2b+dfsg-2+b1ii  libqtgui4                 4:4.8.6+git64-g5dc8b2b+dfsg-2+b1ii  virtualbox-dkms           4.3.20-dfsg-1ii  virtualbox-qt             4.3.20-dfsg-1Versions of packages virtualbox suggests:ii  vde2                            2.3.2+r586-1ii  virtualbox-guest-additions-iso  4.3.20-1-- no debconf information

Message #10 received at 775266@bugs.debian.org (full text, mbox, reply):

From: Ritesh Raj Sarraf <rrs@researchut.com>
To: 775266@bugs.debian.org
Subject: Fwd: Re: [vbox-dev] Custom Bridge Interface
Date: Wed, 14 Jan 2015 00:36:30 +0530
[Message part 1 (text/plain, inline)]
[Re: [vbox-dev] Custom Bridge Interface.eml (message/rfc822, attachment)]
[Re: [vbox-dev] Custom Bridge Interface.eml (message/rfc822, attachment)]
[Re: [vbox-dev] Custom Bridge Interface.eml (message/rfc822, attachment)]
[Re: [vbox-dev] Custom Bridge Interface.eml (message/rfc822, attachment)]
[Re: [vbox-dev] Custom Bridge Interface.eml (message/rfc822, attachment)]
[Re: [vbox-dev] Custom Bridge Interface.eml (message/rfc822, attachment)]
[signature.asc (application/pgp-signature, attachment)]

Message #15 received at 775266@bugs.debian.org (full text, mbox, reply):

From: Ritesh Raj Sarraf <rrs@researchut.com>
Cc: 775266@bugs.debian.org
Subject: Re: Custom Bridge Interface
Date: Wed, 14 Jan 2015 23:57:35 +0530
Adding Debian Bug report in CC.On 01/13/2015 10:56 PM, Klaus Espenlaub wrote:> Ritesh,> > On 13.01.2015 12:54, Ritesh Raj Sarraf wrote:>> Does VBox support attaching to a custom bridge interface in "Bridge>> Networking Mode" ??> > What you're calling a "custom bridge interface" is simply a Linux bridge.> > You can directly bridge in VBox to such a device. I know multiple users > who use this successfully.> Thank you Klaus, for confirming. TAs I had expected, my network config stands correct. But I still need toroot cause what freezes the network at times, when both the VMs and theContainers access the network simultaneously.The odd part is that the issue is very sporadic. I haven't been able toconclude a persistent pattern, to report a bug upstream.> >> [  756.958798] nspr-3[6988]: segfault at 8 ip 00007f0cbcbf285c sp>> 00007f0ca80b7670 error 4 in VBoxXPCOM.so[7f0cbcb9b000+fe000]> > This is a crash in the xpcom middleware VBox uses for its API, and > that's far, far away from the actual network functionality.> > Which VBox build do you use? One from debian? Then install the matching > debug info package(s), make sure that core dumps are enabled (hints see > https://www.virtualbox.org/wiki/Core_dump ), and once you have a core > you can use gdb to find out where things have crashed... postponing a > detailed recipe to avoid wasting time if you know what to do.> Yes. The build is from Debian. Me and Gianfranco currently maintain VBoxfor Debian (and derivatives).I'll get you the required info soon. Something else came up inbetween.>> Please see Debian Bug report for more details:>> http://bugs.debian.org/775266> > Helpful, but still not very detailed... no hint how the VM is configured.> > Klaus> The config is simple. You already must have seen the bridge's (lxcbr0)config details in the debian bug report.I use both Containers, and VBox VMs to connect to the bridge for allnetwork related stuff.My intent is to use Containers and VMs on the same network and make themreachable to each other.For the VMs, I use the network setting "Attached to Bridge Adapter" andthe bridge interface I choose is "lxcbr0".Under "Advanced Settings", I've chosen "Promiscuous Mode" to "Allow All"With the above setting, I boot a VM and it can access the network /internet.BTW, When I start the VM, on the host, I see the following in dmesg.[44838.685860] device lxcbr0 entered promiscuous modeHere's what the syslog says to the guest VM, upon providing the network(dhcp service is provided by dnsmasq on the host).Jan 14 23:43:43 learner kernel: [45356.381385] vboxdrv: Found 8processor cores.Jan 14 23:43:43 learner kernel: [45356.381552] vboxdrv: fAsync=0offMin=0x1b0 offMax=0xebbJan 14 23:43:43 learner kernel: [45356.381636] vboxdrv: TSC mode is'synchronous', kernel timer mode is 'normal'.Jan 14 23:43:43 learner kernel: [45356.381638] vboxdrv: Successfullyloaded version 4.3.20_Debian (interface 0x001a0008).Jan 14 23:43:43 learner virtualbox[15064]: Starting VirtualBox kernelmodules.Jan 14 23:43:43 learner kernel: [45356.391613] vboxpci: IOMMU not found(not registered)Jan 14 23:43:56 learner kernel: [45369.535587] device lxcbr0 enteredpromiscuous modeJan 14 23:44:11 learner dnsmasq[14939]: reading /var/run/dnsmasq/resolv.confJan 14 23:44:11 learner dnsmasq[14939]: using nameserver 8.8.8.8#53Jan 14 23:44:11 learner dnsmasq[14939]: using nameserver 8.8.4.4#53Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 available DHCPrange: 172.16.10.10 -- 172.16.10.200Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 client providesname: debianJan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666DHCPDISCOVER(lxcbr0) 172.16.10.40 08:00:27:d6:62:9aJan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 tags: lxcbr0Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666DHCPOFFER(lxcbr0) 172.16.10.40 08:00:27:d6:62:9aJan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 requestedoptions: 1:netmask, 28:broadcast, 2:time-offset, 3:router,Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 requestedoptions: 15:domain-name, 6:dns-server, 119:domain-search,Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 requestedoptions: 12:hostname, 44:netbios-ns, 47:netbios-scope,Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 requestedoptions: 26:mtu, 121:classless-static-route, 42:ntp-serverJan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 next server:172.16.10.1Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  1option: 53 message-type  2Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  4option: 54 server-identifier  172.16.10.1Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  4option: 51 lease-time  1hJan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  4option: 58 T1  30mJan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  4option: 59 T2  52m30sJan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  4option:  1 netmask  255.255.0.0Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  4option: 28 broadcast  172.16.255.255Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  4option:  3 router  172.16.10.1Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  4option:  6 dns-server  172.16.10.1Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  9option: 15 domain-name  lxc.localJan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 available DHCPrange: 172.16.10.10 -- 172.16.10.200Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 client providesname: debianJan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666DHCPREQUEST(lxcbr0) 172.16.10.40 08:00:27:d6:62:9aJan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 tags: lxcbr0Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 DHCPACK(lxcbr0)172.16.10.40 08:00:27:d6:62:9a debianJan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 requestedoptions: 1:netmask, 28:broadcast, 2:time-offset, 3:router,Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 requestedoptions: 15:domain-name, 6:dns-server, 119:domain-search,Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 requestedoptions: 12:hostname, 44:netbios-ns, 47:netbios-scope,Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 requestedoptions: 26:mtu, 121:classless-static-route, 42:ntp-serverJan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 next server:172.16.10.1Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  1option: 53 message-type  5Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  4option: 54 server-identifier  172.16.10.1Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  4option: 51 lease-time  1hJan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  4option: 58 T1  30mJan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  4option: 59 T2  52m30sJan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  4option:  1 netmask  255.255.0.0Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  4option: 28 broadcast  172.16.255.255Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  4option:  3 router  172.16.10.1Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  4option:  6 dns-server  172.16.10.1Jan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  9option: 15 domain-name  lxc.localJan 14 23:44:11 learner dnsmasq-dhcp[14939]: 3735664666 sent size:  6option: 12 hostname  debianAnd then I fire up an Ubuntu Container. It too acquires the IP.Following is the host logs for the same.Jan 14 23:46:32 learner kernel: [45525.019745] device vethHF250W enteredpromiscuous modeJan 14 23:46:32 learner kernel: [45525.019822] IPv6:ADDRCONF(NETDEV_UP): vethHF250W: link is not readyJan 14 23:46:32 learner avahi-daemon[2448]: Withdrawing workstationservice for vethM3U37T.Jan 14 23:46:32 learner kernel: [45525.095210] IPv6:ADDRCONF(NETDEV_CHANGE): vethHF250W: link becomes readyJan 14 23:46:32 learner kernel: [45525.095253] lxcbr0: port1(vethHF250W) entered forwarding stateJan 14 23:46:32 learner kernel: [45525.095260] lxcbr0: port1(vethHF250W) entered forwarding stateJan 14 23:46:33 learner avahi-daemon[2448]: Joining mDNS multicast groupon interface vethHF250W.IPv6 with address fe80::fc3f:3bff:feaa:4d08.Jan 14 23:46:33 learner avahi-daemon[2448]: New relevant interfacevethHF250W.IPv6 for mDNS.Jan 14 23:46:33 learner avahi-daemon[2448]: Registering new addressrecord for fe80::fc3f:3bff:feaa:4d08 on vethHF250W.*.Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 available DHCPrange: 172.16.10.10 -- 172.16.10.200Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 client providesname: trusty-testJan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720DHCPDISCOVER(lxcbr0) 172.16.10.45 00:16:3e:91:1d:83Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 tags: lxcbr0Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720DHCPOFFER(lxcbr0) 172.16.10.45 00:16:3e:91:1d:83Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 requestedoptions: 1:netmask, 28:broadcast, 2:time-offset, 3:router,Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 requestedoptions: 15:domain-name, 6:dns-server, 119:domain-search,Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 requestedoptions: 12:hostname, 44:netbios-ns, 47:netbios-scope,Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 requestedoptions: 26:mtu, 121:classless-static-route, 42:ntp-serverJan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 next server:172.16.10.1Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  1option: 53 message-type  2Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  4option: 54 server-identifier  172.16.10.1Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  4option: 51 lease-time  1hJan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  4option: 58 T1  30mJan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  4option: 59 T2  52m30sJan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  4option:  1 netmask  255.255.0.0Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  4option: 28 broadcast  172.16.255.255Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  4option:  3 router  172.16.10.1Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  4option:  6 dns-server  172.16.10.1Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  9option: 15 domain-name  lxc.localJan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 available DHCPrange: 172.16.10.10 -- 172.16.10.200Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 client providesname: trusty-testJan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720DHCPREQUEST(lxcbr0) 172.16.10.45 00:16:3e:91:1d:83Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 tags: lxcbr0Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 DHCPACK(lxcbr0)172.16.10.45 00:16:3e:91:1d:83 trusty-testJan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 requestedoptions: 1:netmask, 28:broadcast, 2:time-offset, 3:router,Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 requestedoptions: 15:domain-name, 6:dns-server, 119:domain-search,Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 requestedoptions: 12:hostname, 44:netbios-ns, 47:netbios-scope,Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 requestedoptions: 26:mtu, 121:classless-static-route, 42:ntp-serverJan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 next server:172.16.10.1Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  1option: 53 message-type  5Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  4option: 54 server-identifier  172.16.10.1Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  4option: 51 lease-time  1hJan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  4option: 58 T1  30mJan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  4option: 59 T2  52m30sJan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  4option:  1 netmask  255.255.0.0Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  4option: 28 broadcast  172.16.255.255Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  4option:  3 router  172.16.10.1Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  4option:  6 dns-server  172.16.10.1Jan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size:  9option: 15 domain-name  lxc.localJan 14 23:46:35 learner dnsmasq-dhcp[14939]: 3088368720 sent size: 11option: 12 hostname  trusty-testJan 14 23:46:47 learner kernel: [45540.154482] lxcbr0: port1(vethHF250W) entered forwarding stateAnd at this point, at times, the VBox VM connection is like frozen.rrs@learner:/var/tmp/Debian-Build/temp/stevedore (debian/unstable)$ ping172.16.10.40PING 172.16.10.40 (172.16.10.40) 56(84) bytes of data.From 172.16.10.1 icmp_seq=1 Destination Host UnreachableFrom 172.16.10.1 icmp_seq=2 Destination Host UnreachableFrom 172.16.10.1 icmp_seq=3 Destination Host UnreachableFrom 172.16.10.1 icmp_seq=4 Destination Host Unreachable^C^C--- 172.16.10.40 ping statistics ---7 packets transmitted, 0 received, +4 errors, 100% packet loss, time 6033msEven pinging the VMs gateway, which is the host bridge's IP, fails.At this point, even restarting the VM doesn't help. On next boot, it isunable to acquire the DHCP IP, even though the host logs show that theDHCP server is offering the IP.Jan 14 23:55:00 learner dnsmasq-dhcp[14939]: 3770987320DHCPOFFER(lxcbr0) 172.16.10.40 08:00:27:d6:62:9aJan 14 23:55:00 learner dnsmasq-dhcp[14939]: 3770987320 requestedoptions: 1:netmask, 28:broadcast, 2:time-offset, 3:router,Jan 14 23:55:00 learner dnsmasq-dhcp[14939]: 3770987320 requestedoptions: 15:domain-name, 6:dns-server, 119:domain-search,Jan 14 23:55:00 learner dnsmasq-dhcp[14939]: 3770987320 requestedoptions: 12:hostname, 44:netbios-ns, 47:netbios-scope,Jan 14 23:55:00 learner dnsmasq-dhcp[14939]: 3770987320 requestedoptions: 26:mtu, 121:classless-static-route, 42:ntp-serverJan 14 23:55:00 learner dnsmasq-dhcp[14939]: 3770987320 next server:172.16.10.1Jan 14 23:55:00 learner dnsmasq-dhcp[14939]: 3770987320 sent size:  1option: 53 message-type  2Jan 14 23:55:00 learner dnsmasq-dhcp[14939]: 3770987320 sent size:  4option: 54 server-identifier  172.16.10.1Jan 14 23:55:00 learner dnsmasq-dhcp[14939]: 3770987320 sent size:  4option: 51 lease-time  1hJan 14 23:55:00 learner dnsmasq-dhcp[14939]: 3770987320 sent size:  4option: 58 T1  30mJan 14 23:55:00 learner dnsmasq-dhcp[14939]: 3770987320 sent size:  4option: 59 T2  52m30sJan 14 23:55:00 learner dnsmasq-dhcp[14939]: 3770987320 sent size:  4option:  1 netmask  255.255.0.0Jan 14 23:55:00 learner dnsmasq-dhcp[14939]: 3770987320 sent size:  4option: 28 broadcast  172.16.255.255Jan 14 23:55:00 learner dnsmasq-dhcp[14939]: 3770987320 sent size:  4option:  3 router  172.16.10.1Jan 14 23:55:00 learner dnsmasq-dhcp[14939]: 3770987320 sent size:  4option:  6 dns-server  172.16.10.1Jan 14 23:55:00 learner dnsmasq-dhcp[14939]: 3770987320 sent size:  9option: 15 domain-name  lxc.localInterestingly, this isn't a persistent behavior. At times, the networkfunctions for a couple of minutes, before going lost.But on the Container, the connectivity is perfect. Thus I concluded thisto be a VBox problem and NOT a Bridging problem.Klaus: If you need more information, please do let me know.Thanks,Ritesh-- Given the large number of mailing lists I follow, I request you to CC mein replies for quicker response

Message #20 received at 775266@bugs.debian.org (full text, mbox, reply):

From: Ritesh Raj Sarraf <rrs@researchut.com>
To: 775266@bugs.debian.org
Subject: Re: Bug#775266: virtualbox networking problems in bridge mode
Date: Wed, 04 Nov 2015 13:31:08 +0530
[Message part 1 (text/plain, inline)]
On Tue, 2015-01-13 at 17:00 +0530, Ritesh Raj Sarraf wrote:> > My intent is to have a custom bridge interface, which I hand control.> THen, to it I'd like to attach everythign: KVM, VBox, LXC etc, and> let> them all talk to each other.The issue can now be confirmed to be a problem specific to VBox.I just switched the hypervisor to KVM and everything, in the same usecase, works perfect.For vbox, I get the following. In that, the interesting line is:[37967.268511] vboxnetflt: 1693 out of 1820 packets were not sent(directed to host)[36771.944022] mce: [Hardware Error]: Machine check events logged[37117.156962] vboxdrv: ffffffffa0dae020 VMMR0.r0[37117.307043] vboxdrv: ffffffffa0ea8020 VBoxDDR0.r0[37117.310100] vboxdrv: ffffffffa0005020 VBoxDD2R0.r0[37117.322672] VBoxNetFlt: attached to 'lxcbr0' / 96:07:08:fd:b1:af[37118.406945] device lxcbr0 entered promiscuous mode[37122.599766] device lxcbr0 left promiscuous mode[37126.331558] vboxnetflt: 0 out of 0 packets were not sent (directedto host)[37165.472580] vboxdrv: ffffffffa0dae020 VMMR0.r0[37165.634561] vboxdrv: ffffffffa0ea8020 VBoxDDR0.r0[37165.637089] vboxdrv: ffffffffa0005020 VBoxDD2R0.r0[37165.648193] VBoxNetFlt: attached to 'lxcbr0' / 96:07:08:fd:b1:af[37166.776050] device lxcbr0 entered promiscuous mode[37369.560784] ip6_tables: (C) 2000-2006 Netfilter Core Team[37679.891682] IPv6: ADDRCONF(NETDEV_UP): vb-fedoraTempl: link is notready[37679.891809] device vb-fedoraTempl entered promiscuous mode[37679.891872] lxcbr0: port 2(vb-fedoraTempl) entered forwarding state[37679.891913] lxcbr0: port 2(vb-fedoraTempl) entered forwarding state[37679.894684] lxcbr0: port 2(vb-fedoraTempl) entered disabled state[37681.192591] IPv6: ADDRCONF(NETDEV_CHANGE): vb-fedoraTempl: linkbecomes ready[37681.192867] lxcbr0: port 2(vb-fedoraTempl) entered forwarding state[37681.192920] lxcbr0: port 2(vb-fedoraTempl) entered forwarding state[37696.204504] lxcbr0: port 2(vb-fedoraTempl) entered forwarding state[37964.188986] device lxcbr0 left promiscuous mode[37967.268511] vboxnetflt: 1693 out of 1820 packets were not sent(directed to host)[38054.862510] Ebtables v2.0 registered[38397.343581] tun: Universal TUN/TAP device driver, 1.6[38397.343587] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>[38397.395139] device vnet0 entered promiscuous mode[38397.427568] lxcbr0: port 3(vnet0) entered forwarding state[38397.427614] lxcbr0: port 3(vnet0) entered forwarding state[38398.370910] kvm: zapping shadow pages for mmio generation wraparound[38398.378587] kvm: zapping shadow pages for mmio generation wraparound[38412.488240] lxcbr0: port 3(vnet0) entered forwarding state[38951.067857] VBoxPciLinuxLinuxUnload2015-11-04 / 13:25:52 ♒♒♒  ☺    -- Ritesh Raj SarrafRESEARCHUT - http://www.researchut.com"Necessity is the mother of invention."

0 0
原创粉丝点击