HI,

Ok, so ive managed to get the client booted using the hosts interface,
they both can see one anothers ip, however the client cannot see any
other ip's on the network which is on the same range. The host can view
all network ips. but the client cannot.

Please help.

I followed the below procedure:

Source: http://forgeftp.novell.com/lfl/.html/virtualbox.html

Thanks,

Grant

//



Intermediate Topic: Networking via Host Bridging

In previous section, I said that simple networking is already
pre-configured. While true, this so-called simple networking allows for
client-side connections only, but disallows me to use complex
configurations for servers and virtual networks. VirtualBox has option
to use Host networking, via TAP interfaces. Both TAP interfaces and
bridging is meant to be provided by the host OS. 



The required components, which your Host OS is required to have, are: 



TAP kernel module: check for /dev/net/tun. (exists in openSUSE,
pre-installed by default) 

        

Userspace app to manage Bridges. bridge-utils. (exists in openSUSE, but
must be installed). Please install it via Yast. 

        

Userspace app to manage TAP interfaces privileges. tunctl. (not in
openSUSE, must be downloaded). 

        
As we said earlier, tunctl is not included on openSUSE DVD, but
officially it is part of the distro, so could be downloaded from
distro-specific repository. Also, It is part of User-Mode Linux, or UML
for short, and can be downloaded from:
http://prdownloads.sourceforge.net/user-mode-linux/uml_utilities_20040406.tar.bz2
 The setup procedure is standard: (make sure you have gcc)

        
        
        # tar xvf uml_utilities_20040406.tar.bz2
        
        # cd tools/
        
        # make
        
        # make install
        
        
        
        Now you have tunctl, which is a necessary utility to manage TAP
        interface privileges. 
        
        

Create TAP interface. Set privileges to user tux.

        
        
        # tunctl -t tap0 -u tux
        
        # ifconfig tap0 0.0.0.0 up
        
        

Create a bridge, and add interfaces to it:

        
        
        # brctl addbr br0
        
        # brctl addif br0 eth0 tap0
        
        

Start a DHCP client on your bridged interface. This will copy the MAC
address from your physical eth0 interface, and will probably receive the
same IP address from DHCP server. This setting is suitable for most Home
Settings.

        
        
        # dhcpcd br0
        
        # ifconfig br0 up
        
        
        
        Alternatively, you can give static IP address to your bridge
        interface. 
        
        

Last, but not least, make sure that all interfaces (eth+tap), that are
members of bridge have their IPs removed. Only the bridge interface must
have an IP address.

        
        
        # ifconfig eth0 0.0.0.0 
        
        

Now, go to VBox GUI, VM -> Settings -> Network -> Attached to: Host
Interface -> Interface name=tap0 -> OK 

        

Congratulations ! You should have ping now, both to external world, your
Host machine and your Guest machine. 

        

//



On Mon, 2009-01-19 at 11:56 +0200, Grant Rolfe wrote:

> Hi all,
> 
> I am in need of assistance.  I'm trying to bridge my nic to be used
> with the virtual box.
> 
> Here is the scenario:
> 
> I am running opensuse 11.1 as the host and i want to bridge my
> wireless nic card. for the virtual box to use.
> Wireless nic: eth0
> 
> Virtual box is running winxp
> 
> 
> When i select the use host interface in the virtualbox preferences  i
> get the following 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 {e3c6d4a1-a935-47ca-b16d-f9e9c496e53e}
> //
> 
> 
> Please help me as i want to keep opensuse 11.1 as my os, but our
> company software requires windows xp.  Please i need to get my
> virtualbox on the network asap.
> 
> Thanks in advance
> 
> Grant
> 
> 
_______________________________________________
vbox-users mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-users

Reply via email to