You are not logged in.

#1 2008-10-13 17:43:30

amadlopes
Member
Registered: 2007-06-28
Posts: 35

virtualbox network

I would like to configure "network host interface" on virtualbox. I already configure everything like it's explained on the wiki "Using host interface networking (the Arch way)" but it's not working.
My host is archlinux and my guest is archlinux.
On virtualbox - setting - network
Attached to: Host interface
Interface Name: vbox0



This is my /etc/conf.d/bridges

#
# Settings for layer-2 bridges
#
# For each bridge interface declared in INTERFACES (in rc.conf), declare
# a bridge_${IF} variable that contains the real ethernet interfaces that
# should be bridged togeether.
#
# Then list the bridge interface name in the BRIDGE_INTERFACES array.
#

# example:
#
# in /etc/rc.conf:
#    eth0="eth0 up"
#    eth1="eth1 up"
#    br0="br0 192.168.0.2 netmask 255.255.255.0 up"
#    INTERFACES=(lo eth0 eth1 br0)
#
# in /etc/conf.d/bridges
#    bridge_br0="eth0 eth1"
#    BRIDGE_INTERFACES=(br0)
#


bridge_br0="eth0"
BRIDGE_INTERFACES=(br0)

This is my /etc/rc.conf

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="pt_PT@euro"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Europe/Lisbon"
KEYMAP="pt-latin1"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(e100 eepro100 mii r8169 slhc ac97_bus snd-mixer-oss snd-pcm-oss snd-page-alloc vboxdrv snd-pcm snd-timer snd snd-ac97-codec snd-intel8x0 soundcore bridge tun)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="arch2"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
lo="lo 127.0.0.1"
eth0="eth0 up"
br0="dhcp"
eth1="eth1 192.168.3.25 netmask 255.255.255.0 broadcast 192.168.3.255"
INTERFACES=(lo eth0 eth1 br0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.3.2"
ROUTES=(gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network portmap nfslock netfs hal fam @vboxnet @crond @alsa)

Adn this is my /etc/vbox/interfaces

# This file is for registering VirtualBox permanent host networking interfaces
# and optionally adding them to network bridges on the host.
# Each line should be of the format <interface name> <user name> [<bridge>].

vbox0 amadlopes br0

When i do ifconfig -a on the host

bash-3.2# ifconfig -a                                                                                                                        
br0       Link encap:Ethernet  HWaddr 00:11:2F:44:E0:55                                                                                      
          inet addr:192.168.2.102  Bcast:192.168.2.255  Mask:255.255.255.0                                                                   
          inet6 addr: fe80::211:2fff:fe44:e055/64 Scope:Link                                                                                 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                                                                                 
          RX packets:39944 errors:0 dropped:0 overruns:0 frame:0                                                                             
          TX packets:21864 errors:0 dropped:0 overruns:0 carrier:0                                                                           
          collisions:0 txqueuelen:0                                                                                                          
          RX bytes:17009365 (16.2 Mb)  TX bytes:9119425 (8.6 Mb)                                                                             

eth0      Link encap:Ethernet  HWaddr 00:11:2F:44:E0:55  
          inet6 addr: fe80::211:2fff:fe44:e055/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:39946 errors:0 dropped:0 overruns:0 frame:0    
          TX packets:21865 errors:0 dropped:0 overruns:0 carrier:0  
          collisions:0 txqueuelen:1000                              
          RX bytes:17579627 (16.7 Mb)  TX bytes:9118183 (8.6 Mb)    

eth1      Link encap:Ethernet  HWaddr 00:06:4F:56:68:D1  
          inet addr:192.168.3.25  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::206:4fff:fe56:68d1/64 Scope:Link             
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1             
          RX packets:911494 errors:0 dropped:0 overruns:0 frame:0        
          TX packets:613554 errors:0 dropped:0 overruns:0 carrier:0      
          collisions:0 txqueuelen:1000                                   
          RX bytes:1208478584 (1152.4 Mb)  TX bytes:273773449 (261.0 Mb) 
          Interrupt:17 Base address:0x8c00                               

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:92 errors:0 dropped:0 overruns:0 frame:0
          TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5992 (5.8 Kb)  TX bytes:5992 (5.8 Kb)

tap0      Link encap:Ethernet  HWaddr 00:FF:6D:2B:CB:E0
          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:500
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vbox0     Link encap:Ethernet  HWaddr 00:FF:51:05:49:78
          inet6 addr: fe80::2ff:51ff:fe05:4978/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1644 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:6 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:393640 (384.4 Kb)  TX bytes:0 (0.0 b)

When i boot the vm (archlinux):

err, eth0: timed out
warn, eth0: using IPV4LL address 169.254.237.41

I alreaddy read the user manual of virtualbox and i tryed them way of doing it but it didn't work too.

I already google but i really confused...

Thank you for your help

Last edited by amadlopes (2008-10-13 17:49:03)

Offline

Board footer

Powered by FluxBB