openSUSE 10.2, host interfaces, and bridging don't work

Discussions related to using VirtualBox on Linux hosts.
Post Reply
thod
Posts: 1
Joined: 9. Jun 2007, 12:22

openSUSE 10.2, host interfaces, and bridging don't work

Post by thod »

Firstly, sorry for my bad english.

I have problems with bridging on openSUSE 10.2 and VB 1.4.0_21864.

Host:

Code: Select all

Linux test 2.6.18.8-0.3-default #1 SMP Tue Apr 17 08:42:35 UTC 2007 i686 athlon i386 GNU/Linux
Guest:All OS.

Creating the bridge works, eth0 is set to 0.0.0.0 and the network on host works fine.
ifcfg-br0:

Code: Select all

BOOTPROTO='static'
IPADDR='192.168.0.200'
NETMASK='255.255.255.0'
STARTMODE='auto'
USERCONTROL='no'
BRIDGE='yes'
BRIDGE_PORTS='eth0'
I create the TAP devices with VBoxADDIF, VBoxTunctl(http://www.virtualbox.org/download/UserManual.pdf) and tunctl,brctl (http://forgeftp.novell.com/lfl/.html/virtualbox.html). The TAP devices are setup with all tools successfully

Code: Select all

br0     Protokoll:Ethernet  Hardware Adresse xx:xx:xx:xx:xx:xx
          inet Adresse:192.168.0.200  Bcast:192.168.0.255  Maske:255.255.255.0
          inet6 Adresse: xxxx:xxxx:xxxx:xxxx:xxxx/xx Gültigkeitsbereich:Verbindung          
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5935 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3050 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 Sendewarteschlangenlänge:0
          RX bytes:5211316 (4.9 Mb)  TX bytes:331073 (323.3 Kb)

eth0   Protokoll:Ethernet  Hardware Adresse xx:xx:xx:xx:xx:xx
          inet6 Adresse: xxxx::xxxx:xxxx:xxx:xxxx/xx Gültigkeitsbereich:Verbindung          
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7993 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3053 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 Sendewarteschlangenlänge:1000
          RX bytes:5416824 (5.1 Mb)  TX bytes:331199 (323.4 Kb)
          Interrupt:225 Basisadresse:0x2000

lo       Protokoll:Lokale Schleife
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:40 errors:0 dropped:0 overruns:0 frame:0
          TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 Sendewarteschlangenlänge:0
          RX bytes:2608 (2.5 Kb)  TX bytes:2608 (2.5 Kb)

tap0      Protokoll:Ethernet  Hardware Adresse xx:xx:xx:xx:xx:xx
          inet6 Adresse: xxxx::xxx:xxxx:xxxx:xxxx/xx Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:74 errors:0 dropped:0 overruns:0 frame:0
          TX packets:85 errors:0 dropped:468 overruns:0 carrier:0
          collisions:0 Sendewarteschlangenlänge:500
          RX bytes:7700 (7.5 Kb)  TX bytes:5100 (4.9 Kb)
The VM's boot with this devices and I can configure them, but can't get access to the network through them.

If I reboot the host, /dev/net/tun changes from "666 root.root" always back to "600 root.root".

Can anyone tell me, why the guest can't access to the network and why changes /dev/net/tun after reboot permissions.
bodhi.zazen
Volunteer
Posts: 180
Joined: 17. May 2007, 16:02

Post by bodhi.zazen »

I am not fluent with SUSE, but on other systems I added a chmod to the local boot script, /etc/rc.local

add something like

chmod 666 /dev/net/tun

Or add the chmod to you network script.
If is a virtual machine, is it still broken ?
Post Reply