VirtualBox 2.1.0 Network adapter bridging GSM device / ppp0

Discussions related to using VirtualBox on Linux hosts.
Post Reply
typhoe
Posts: 2
Joined: 29. Dec 2008, 21:08

VirtualBox 2.1.0 Network adapter bridging GSM device / ppp0

Post by typhoe »

Hi,

I'm running virtualbox v2.1.0 under a ubuntu 8.10 64bit host (2.6.27-9-generic x86_64 GNU/Linux).

Thanks to the new host interface networking implementations for Linux hosts, I can easily bridge to eth0 my Windows VM in which I installed my office desktop and mount vpn in the guest.

Now, when I'm traveling, I would like to do the same with my usb GSM dongle.

Using networkmanager in ubuntu, setting a 3G GSM connexion is really easy (well for now ;) ).
ifcong show the new connexion as ppp0

Is there a way to "bridge" the network guest adapter to the host ppp0 ?

Thank you very much,
Typhoe
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

If you can't select the connection from the VM settings, you can always do it the old fashioned way. You have to create a TAP interface manually, as VB no longer supplies this utility, and bridge it to your GSM connection. However, it might not work properly. Check it on the host first if you still have connectivity with the bridge running, then boot the VM and see how that works. You might get a problem due to only one IP address available.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
typhoe
Posts: 2
Joined: 29. Dec 2008, 21:08

Post by typhoe »

Thank you for your answer,

that's the solution I'm actually trying to use now.
And indeed, I encounter a problem as the GSM device only let me get one IP...

I'll post here if I managed to get a positive result.

Best regards,
Typhoe
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

In that case, check how you can share your internet connection on Linux with other machines. Instead of routing it to a physical interface, route it to the TAP interface. You don't need a bridge in that case. Create the TAP interfaces with the uml-utilities package.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply