VirtualBox-2.2 - bridged networking on Slackware-12.2
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
VirtualBox-2.2 - bridged networking on Slackware-12.2
As most of the documentation on the subject relates to older versions of VirtualBox and other distributions of GNU/Linux, I am having a hell of a time getting this to work.
NAT networking works just fine, however I want the VM to have a different IP than the host, and have it appear to be a separate machine connected to the network.
I have created br0 (brctl addbr br0)
Bridged br0 to eth0 (brctl addif br0 eth0)
But when I start VirtualBox (running XP) with bridged networkign attached to eth0 I get the:
Code:
"Failed to open/create the internal network 'HostInterfaceNetworking-eth0' (VERR_SUPDRV_INTERFACE_NOT_SUPPORTED)."
error
I have also tried creating br0 (brctl addbr br0)
Creating a tap interface (tunctl -t tap1 -u void) -- [void is my username]
Bridging the two (ifconfig tap1 up && brctl addif br0 tap1)
Putting current interface in promisc mode (ifconfig wlan0 0.0.0.0 promisc) and configuring it with my current address and interface (brctl addif br0 wlan0 && ifconfig br0 `ifconfig wlan0 | grep 'inet addr' | cut -d: -f2 | cut -d' ' -f1`)
Then adding my current gateway (route add default gw `route -n | grep UG | sed s/' *'/' '/g | cut -d' ' -f2`)
But still regardless of any interface I select in the VirtualBox Networking section (eth0 wlan0 br0 or tap1) I get the same error as above.
I connect to the internet via wlan0 and use dhcp to acquire an IP, if that affects anything.
I do not want to go back to using VMWare (with which setting this up was quite easy) because the latest version of VMWare's interface is horrible, it's not open source, and the kernel modules have trouble with my kernel (2.6.30)
Does anyone have any suggestion as to what I am missing?
I think your problem is the wlan. I do this with eth0 and all I have to do is pick "Bridged Adapter" and "eth0" from the drop down. I would guess the same is true for wlan, but the radio signals may be limited to one connection (I don't know for sure, but wlan is a bit more complex than eth).
In any event, you will need to configure your vm to use your wireless adapter I would think, not an eth one.
I know that all of that brctl and tunctl stuff needed to be done in the past, but I don't think it does any more.
It uses my wireless adapter just fine if I select NAT. If I select bridged and choose wlan0 i get the error from the first post, same if I select eth0 with or without adding bridges and tunnels and such.
Yes, but NAT is making only one link between your system and your WAP. It is translating your VM's IP into your wlan IP and then back for any communications. Using "Bridged Adapter" and wlan would be making TWO links between your system and your WAP. I don't know how successful this would be (though in theory it should work).
About a year ago I switched from using VirtualBox to VMware because networking was a lot easier to set-up on VMware. At the time I was able to create the virtual interface vmnet0 and bridge it to wlan0 allowing the VM to have a separate IP as the host. This was all done with the included scripts. Unfortunately, the new version of VMware is terrible, and the older versions will not compile on the latest kernels. But the point is that it is possible to bridge a virtual network interface to a wireless interface in such a way. It's just apparently not easy to do. I do not want to downgrade kernels and switch back to vmware if I don't have to.
Well, I got it to start after downgrading to 2.1.4_OSE
Though when I use Host interface networking on wlan0, I still get the same IP in the client as I do in the host...
If I create a bridge between wlan0 and, for example, vbox0, and start host networking on vbox0 interface, the client does not have internet access at all.
I guess I hadn't noticed earlier, but even though the internet sees the client and host on the same IP, I can still see the client as a separate host, which is all I wanted to be able to do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.