host interface networking doesn't work after update to 2.1.4

Discussions related to using VirtualBox on Linux hosts.
Post Reply
pierrearinsal
Posts: 2
Joined: 3. Mar 2009, 14:07

host interface networking doesn't work after update to 2.1.4

Post 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
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

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

Post 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.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
pierrearinsal
Posts: 2
Joined: 3. Mar 2009, 14:07

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

Post 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.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

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

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply