OSS 10.2 Bridging network with host interface

Discussions related to using VirtualBox on Linux hosts.
Post Reply
tgodawa
Posts: 9
Joined: 13. Jul 2007, 21:41

OSS 10.2 Bridging network with host interface

Post by tgodawa »

Hi all,

I'm using VirtualBox-1.4.0_21864_openSUSE102-1.i586 on OSS 10.2 with all fixes applied and WinXP as guest OS.

I configured the bridge/host-if as follows:

/etc/sysconfig/network/ifcfg-eth-id-00:0d:60:xx:yy:zz:

Code: Select all

  BOOTPROTO='static'
  BROADCAST=''
  ETHTOOL_OPTIONS=''
  IFPLUGD_PRIORITY='20'
  IPADDR='0.0.0.0'
  MTU=''
  NAME='IBM PRO/1000'
  NETMASK='255.255.255.0'
  NETWORK=''
  REMOTE_IPADDR=''
  STARTMODE='ifplugd'
  UNIQUE='rBUF.tqwo9I3YIvF'
  USERCONTROL='no'
  _nm_name='bus-pci-0000:02:01.0'
/etc/sysconfig/network/ifcfg-vbox0:

Code: Select all

  BOOTPROTO='static'
  IPADDR='0.0.0.0'
  NETMASK='255.255.255.0'
  STARTMODE='auto'
  USERCONTROL='no'
/etc/sysconfig/network/ifcfg-br0:

Code: Select all

  BOOTPROTO='static'
  IPADDR='192.168.111.200'
  NETMASK='255.255.255.0'
  STARTMODE='auto'
  USERCONTROL='no'
  DHCLIENT_TIMEOUT=30
  BRIDGE='yes'
  BRIDGE_PORTS='eth0 vbox0'
To activate the bridge I use: "VBoxAddIF vbox0 vboxuser br0".

And finaly, as VBox-user I apply these changes to the guest:

Code: Select all

> VBoxManage modifyvm "WinXP" -nic1 hostif
> VBoxManage modifyvm "WinXP" -hostifdev1 vbox0
Now I can start my guest and everything works fine, I can access the guest internaly with it's IP and the guest has access to everything - so everything is working like it should until the next reboot.

OSS boots with the following error:

Code: Select all

Setting up network interfaces:
    lo
    lo        IP address: 127.0.0.1/8
    eth0      device: IBM PRO/1000
    eth0      configuration: eth-id-00:0d:60:xx:yy:zz
    eth0      IP address: 0.0.0.0/24
Warning: Could not set up default route via interface
 Command ip route replace to default via 192.168.111.10 returned:
 . RTNETLINK answers: Network is unreachable
 Configuration line: default 192.168.111.10 - -
 This needs NOT to be AN ERROR if you set up multiple interfaces.
 See man 5 routes how to avoid this warning.

    br0
    br0       Ports: [eth0]
    br0       IP address: 192.168.111.200/24
Interface vbox0 is not available
Setting up service network  .  .  .  .  .  .  .  .  .  .  .  .  failed
Starting the guest with "VBoxManage startvm "WinXP" -type vrdp" also fails because of the missing vbox0 until I do again a "VBoxAddIF vbox0 vboxuser br0" !

How should I add the vbox0-Interface permanent to my configuration?

PS: When will the USB-issue with OSS 10.2 will be fixed?

Thanks a lot,

Thorolf
Post Reply