Page 1 of 1

host interface networking doesn't work after update to 2.1.4

Posted: 3. Mar 2009, 14:25
by pierrearinsal
hi
I'm using vb for a year now on gentoo amd64 host (2.6.27-gentoo-r8)
the following result is the same for all my guest systems (freebsd 7.1, ubuntu 8.10, xp sp3, windows 7)
I use this script to set tapx interfaces up :

Code: Select all

#!/bin/bash
# programme de demarrage du bridge pour virtualbox
if [[ $1 == 'up' ]]; then
	echo "switching tapX up";
	sysctl net.ipv4.ip_forward=1
	VBoxTunctl -b -u pierre
	VBoxTunctl -b -u pierre
	VBoxTunctl -b -u pierre
	VBoxTunctl -b -u pierre
	ifconfig tap0 up 192.168.2.1
	ifconfig tap1 up 192.168.3.1
	ifconfig tap2 up 192.168.4.1
	ifconfig tap3 up 192.168.5.1
	route add -net 192.168.2.0 netmask 255.255.255.0 dev tap0
	route add -net 192.168.3.0 netmask 255.255.255.0 dev tap1
	route add -net 192.168.4.0 netmask 255.255.255.0 dev tap2
	route add -net 192.168.5.0 netmask 255.255.255.0 dev tap3
	/usr/sbin/parprouted wlan0 tap0
	/usr/sbin/parprouted wlan0 tap1
	/usr/sbin/parprouted wlan0 tap2
	/usr/sbin/parprouted wlan0 tap3
	echo "up";
else
	echo "switching tapX down";
	ifconfig tap0 down
	ifconfig tap1 down
	ifconfig tap2 down
	ifconfig tap3 down
	VBoxTunctl -d tap0
	VBoxTunctl -d tap1
	VBoxTunctl -d tap2
	VBoxTunctl -d tap3
#	sysctl net.ipv4.ip_forward=0
	pkill parprouted
	echo 'down';
fi
my /etc/group has

Code: Select all

vboxusers:!:1008:pierre
tuntap:!:1009:pierre
tapx are up and answer to ping.
vbox module is mount and gives :

Code: Select all

vboxdrv: Trying to deactivate the NMI watchdog permanently...
vboxdrv: Successfully done.
vboxdrv: Found 2 processor cores.
VBoxDrv: dbg - g_abExecMemory=ffffffffa052aae0
vboxdrv: fAsync=1 offMin=0xdb2d81 offMax=0xdb2d81
vboxdrv: TSC mode is 'asynchronous', kernel timer mode is 'normal'.
vboxdrv: Successfully loaded version 2.1.4 (interface 0x000a0009).


and everything was working so well until I update to 2.1.4.

now it says :

Code: Select all

Failed to open/create the internal network 'HostInterfaceNetworking-tap1' (VERR_SUPDRV_COMPONENT_NOT_FOUND).
Failed to attach the network LUN (VERR_SUPDRV_COMPONENT_NOT_FOUND).
Unknown error creating VM (VERR_SUPDRV_COMPONENT_NOT_FOUND).


Code de résultat : 
NS_ERROR_FAILURE (0x80004005)
Composant :
Console
Interface : 
IConsole {e3c6d4a1-a935-47ca-b16d-f9e9c496e53e}
I try to create a new machine, but none of the host interface networking options is working....

what have I done wrong..?
pierre

Re: host interface networking doesn't work after update to 2.1.4

Posted: 5. Mar 2009, 05:35
by TerryE
Why are you using TAP interfaces? From 2.1 a new Host IF model is used. You don't need to use TAP interfaces anymore.

Re: host interface networking doesn't work after update to 2.1.4

Posted: 5. Mar 2009, 12:06
by pierrearinsal
ok, sorry , ...

this is how I recovered my snapshots :
got to .VirtualBox/Machines/myguest.xml
change "<HostInterface name="tap0"/>" for "<NAT />"
restart vb.

still, my guests are going throw tap ....

thanks anyway.

Re: host interface networking doesn't work after update to 2.1.4

Posted: 5. Mar 2009, 22:22
by Sasquatch
You can use the old method, but you have to use the UML-Utilities version of Tunctl, as VB no longer supplies the command.