+ Post New Thread
Results 1 to 7 of 7
*nix Thread, setting up bridged connection for virtualbox in Technical; Im going to follow this guide to try and get bridged networking going VirtualBox - Gentoo Linux Wiki , but ...
  1. #1

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,512
    Thank Post
    1,320
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199

    setting up bridged connection for virtualbox

    Im going to follow this guide to try and get bridged networking going VirtualBox - Gentoo Linux Wiki, but the thing Im worried about is ive already got a TUN device created for openvpn, I dont want to break that..

    Code:
    eth0      Link encap:Ethernet  HWaddr 00:1e:0b:c6:81:c9  
              inet addr:192.168.2.12  Bcast:192.168.2.255  Mask:255.255.255.0
              inet6 addr: fe80::21e:bff:fec6:81c9/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:78047253 errors:0 dropped:10 overruns:0 frame:8
              TX packets:59585213 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:56586542741 (52.7 GiB)  TX bytes:36909333385 (34.3 GiB)
              Interrupt:19 
    
    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:1201243 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1201243 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:146355649 (139.5 MiB)  TX bytes:146355649 (139.5 MiB)
    
    tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
              inet addr:10.8.0.1  P-t-P:10.8.0.2  Mask:255.255.255.255
              UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
              RX packets:3740678 errors:0 dropped:0 overruns:0 frame:0
              TX packets:6109705 errors:0 dropped:48 overruns:0 carrier:0
              collisions:0 txqueuelen:100 
              RX bytes:290021203 (276.5 MiB)  TX bytes:7594846057 (7.0 GiB)
    Will any of the stuff in the instructions to bridge to virtualbox break anything? I only have remote access to the server and cant afford to screw up the network.

  2. #2

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,512
    Thank Post
    1,320
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    Ok well it would seem that the latest virtualbox doesnt need me to mess with tun and tap. Result.

    However Im still not sure how to get it working. I tried this:

    Code:
    VBoxManage modifyvm "2008Server" -nic1 hostif -hostifdev1 eth0:1
    and a new eth0:1 interface appears on the host, but when I boot the guest windows operating system doenst pick up dhcp and setting it statically doesnt work.

  3. #3

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,512
    Thank Post
    1,320
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    If i just use eth0 instead of 0:1, I get this error:

    Code:
    Error: failed to start machine. Error message: Failed to initialize Host Interface Networking.
    VBox status code: -3100 (VERR_HOSTIF_INIT_FAILED)
    Google is not my friend with this, im stumbling upon the same error from lots of places..

    eg [ubuntu] Virtualbox 2.1.2 headless on Ubuntu 8.10 Server [Archive] - Ubuntu Forums

  4. #4


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,687
    Thank Post
    352
    Thanked 794 Times in 714 Posts
    Rep Power
    346
    Not tried this but the Gentoo Wiki link explains how to get around that error.

    you may find that you you get an error when you try to start your VM. The error, ERR_HOSTIF_INIT_FAILED, will prevent you from stating the VM.

    In order to fix it, you will need to modprobe the new vboxnetflt kernel module. You can find it in: /lib/modules/<kernel>/misc/vboxnetflt.ko. Simply change into that directory and run modprobe on the module, then restart your vm.
    Tried that?

  5. #5

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,512
    Thank Post
    1,320
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    I havent tried that, when I read it I thought it was for only people upgrading from 2.1.. But its worth a shot anyway.

  6. #6

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,512
    Thank Post
    1,320
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    Code:
    oasis ~ # cd /lib/modules/2.6.24-gentoo-r8/misc/
    
    oasis misc # ls
    vboxdrv.ko  vboxnetflt.ko  vmblock.ko  vmmon.ko  vmnet.ko
    
    oasis misc # modprobe vboxnetflt   
    
    oasis ~ # VBoxHeadless -startvm 2003Server
    VirtualBox Headless Interface 2.0.2
    (C) 2008 Sun Microsystems, Inc.
    All rights reserved
    
    Listening on port 3389
    Error: failed to start machine. Error message: Failed to initialize Host Interface Networking.
    VBox status code: -3100 (VERR_HOSTIF_INIT_FAILED)
    Unfortunately not

    Spent about 4 hours googling for this.. im just about to sign up to the vbox forums see if anyone there can help..

  7. #7

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,512
    Thank Post
    1,320
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    upgraded to version 3.0.0 and all problems went away..

SHARE:
+ Post New Thread

Similar Threads

  1. VirtualBox
    By webman in forum Thin Client and Virtual Machines
    Replies: 5
    Last Post: 19th October 2009, 10:28 PM
  2. What is VirtualBox?
    By dolmandj in forum Thin Client and Virtual Machines
    Replies: 22
    Last Post: 27th March 2009, 10:23 AM
  3. Setting default LTSP connection to nomachine nx/FreeNX - anyone done it?
    By pete in forum Thin Client and Virtual Machines
    Replies: 1
    Last Post: 17th January 2009, 10:07 PM
  4. Sun VirtualBox 2.1
    By tmcd35 in forum Thin Client and Virtual Machines
    Replies: 2
    Last Post: 19th December 2008, 12:05 PM
  5. VPN connection with internet connection option
    By FN-GM in forum Wireless Networks
    Replies: 6
    Last Post: 29th December 2007, 07:19 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •