You are not logged in.

#1 2008-09-18 09:24:55

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Problems with Virtualbox

Hey Guys.

I'm runned into a problem with my Virtualbox installation about the network setup.
Followed the guide http://wiki.archlinux.org/index.php/VirtualBox#Usin

But each time I'm starting my Virtualbox - I'm getting the this error:

Failed to initialize Host Interface Networking.
VBox status code: -3100 (VERR_HOSTIF_INIT_FAILED).


Result Code: 
NS_ERROR_FAILURE (0x80004005)
Component: 
Console
Interface: 
IConsole {d5a1cbda-f5d7-4824-9afe-d640c94c7dcf}

How can I make bridged network to work here - and can someone tell me the error:

/etc/conf.d/bridges:

bridge_br0="eth0 wlan0"
BRIDGE_INTERFACES=(br0)

Lines from rc.conf:

MODULES=(sky2 iwl4965 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore vboxdrv autofs4 bridge)
##########################
eth0="dhcp"
wlan0="dhcp"
br0="dhcp"
ppp0="dhcp"
INTERFACES=(eth0 wlan0 br0 ppp0)

/etc/vbox/interfaces ( needed to make that file manually)

vbox0 pbj br0

I've installed bridge-utils and the obnly error i'm getting is this - each time I set the network settings in the virtualbox guest machine settings to host interface???
What Am I doing wrong. - since I only have these options from the menu
Not connected.
NAT
Host INterface
Internal Interface

From my dmesg:

vboxdrv: Trying to deactivate the NMI watchdog permanently...
vboxdrv: Successfully done.
vboxdrv: Found 2 processor cores.
vboxdrv: fAsync=0 offMin=0x18f offMax=0x979
vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'.
vboxdrv: Successfully loaded version 2.0.0 (interface 0x00090000).
Bridge firewalling registered

firmware: requesting iwlwifi-4965-1.ucode
Registered led device: iwl-phy0:radio
Registered led device: iwl-phy0:assoc
Registered led device: iwl-phy0:RX
Registered led device: iwl-phy0:TX
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
sky2 eth0: enabling interface
sky2 eth0: Link is up at 100 Mbps, full duplex, flow control rx
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
ADDRCONF(NETDEV_UP): wlan0: link is not ready
eth0: no IPv6 routers present
vbox0: no IPv6 routers present

Can someone point me in the rigth direction???


Just getting better .... All the time

Offline

#2 2008-09-18 12:26:10

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: Problems with Virtualbox

Well a little bit further  I guess.
put tun into MODULES

Made this scripts as from alehtos

sudo brctl addbr br0
sudo ifconfig eth0 0.0.0.0 promisc
sudo brctl addif br0 eth0
sudo dhclient br0
sudo chmod 0666 /dev/net/tun
sudo tunctl -t tap0 -u *username*
sudo ifconfig tap0 up
sudo brctl addif br0 tap0

And gives me this:

$ ifconfig
br0       Link encap:Ethernet  HWaddr 00:1D:09:42:99:7F  
          inet addr:172.16.50.200  Bcast:172.16.51.255  Mask:255.255.254.0
          inet6 addr: fe80::21d:9ff:fe42:997f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1888 errors:0 dropped:0 overruns:0 frame:0
          TX packets:752 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:674889 (659.0 Kb)  TX bytes:134636 (131.4 Kb)

eth0      Link encap:Ethernet  HWaddr 00:1D:09:42:99:7F  
          inet6 addr: fe80::21d:9ff:fe42:997f/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:54932 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24515 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:43322296 (41.3 Mb)  TX bytes:2325893 (2.2 Mb)
          Interrupt:16 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:136 errors:0 dropped:0 overruns:0 frame:0
          TX packets:136 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:4108 (4.0 Kb)  TX bytes:4108 (4.0 Kb)

tap0      Link encap:Ethernet  HWaddr 00:FF:B0:92:FE:4A  
          inet6 addr: fe80::2ff:b0ff:fe92:fe4a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:172 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:0 (0.0 b)  TX bytes:60 (60.0 b)

wlan0     Link encap:Ethernet  HWaddr 00:1F:3B:61:C9:27  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wmaster0  Link encap:UNSPEC  HWaddr 00-1F-3B-61-C9-27-00-00-00-00-00-00-00-00-00-00  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

And this works as the following way - Gives the Host machine a IP adress - but not the guest. On the guest - it cannot get an IP address.

Could this error hove something to do with it all:

s# /etc/rc.d/vboxnet restart
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Ingen sådan fil eller filkatalog
:: Shutting down VirtualBox host networking                                                                                                           [DONE] 
:: Starting VirtualBox host networking                                                                                                                [DONE]

Last edited by peque (2008-09-18 13:19:12)


Just getting better .... All the time

Offline

Board footer

Powered by FluxBB