On 06/04/11 12:21, Marc Haber wrote: > Hi, > > it's me again. I am having difficulties with Virtualbox networking > since I upgraded my Linux i386 host to kernel 2.6.39. > > My Laptop runs Debian unstable with a locally built kernel. I am using > the Debian packages of Virtualbox 4.0.8; my kernel build process takes > the lates module sources and builds a virtualbox-modules.deb which get > installed afterwards. > > My virtual machines have their network Adapter 1 in mode "Bridged > Adapter" and interface name br0. br0 is set up using Debian methods on > the host; the host has its own IP address on br0 and is > routing/natting the VMs network traffic to the LAN with stock Linux > kernel methods. A regular ISC DHCP server is used to assign IP > addresses to the VMs. > > With kernel 2.6.39 or 2.6.39.1, this network setup does not work. > br0 remains in NO-CARRIER state; vboxnet0 does not change into the UP > state. When I tcpdump on the host's br0 interface, I can see any > traffic coming in from the VM, but the host does not seem to "see" it. > For example, it doesn't answer to the VMs DHCP requests. > > 4: br0:<NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN > link/ether 72:7a:1d:bd:40:ea brd ff:ff:ff:ff:ff:ff > inet 192.168.18.254/24 brd 192.168.18.255 scope global br0 > 5: vboxnet0:<BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 > link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff > > When I try the exact same thing with an exactly identically configured > kernel 2.6.38.7, everything is fine. 2.6.39's bridges themselves seem > to be OK, a KVM guest can use the very same setup just fine. > > Is there anything I can do to get my networking back in virtualbox > with host kernel 2.6.39? > > Greetings > Marc > Did you check you firewall (/etc/sysconfig/iptables) to allow all traffic to the VM's subnet? I did something like this: -A INPUT -s 0.0.0.0 -d10.0.2.0/24-j ACCEPT -A INPUT -s 10.0.2.0/24 -d0.0.0.0-j ACCEPT -A OUTPUT -s 0.0.0.0 -d10.0.2.0/24-j ACCEPT -A OUTPUT -s 10.0.2.0/24 -d0.0.0.0-j ACCEPT
Perhaps networking/firewall gurus have a more elegant way to set up these rules. ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 _______________________________________________ VBox-users-community mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/vbox-users-community
