Two internet connections on a single computer (host to ethernet, virtualbox to dial-up)



After trying what JohnnyVegas suggested, I connected the dongle to the host machine, it wanted to install it's drivers, I cancelled the installation. I removed all network connections from the guest os, I added the usb dongle as a usb device for the guest os. I booted into the guest os, I selected the usb dongle from within the guest os and got the following message from virtualbox:

Failed to attach the USB device ZTE,Incorporated ZTE WCDMA Technologies MSM to the virtual machine Ubuntu 10.04 32.

USB device 'ZTE,Incorporated ZTE WCDMA Technologies MSM' with UUID {a37699df-38f1-4a82-b514-ecb4996aa98b} is busy with a previous request. Please try again later.

Result Code: E_INVALIDARG (0x80070057) Component: HostUSBDevice Interface: IHostUSBDevice {173b4b44-d268-4334-a11d-b6521c9a740a} Callee: IConsole {db7ab4ca-2a3f-4443-9243-c1208da92392}

Any idea why this is happening?


It seems the problem happens when I connect a device which is of type Dial-up. If I connect a device which is of type LAN or High-Speed Internet, that device works fine.

How do I get a Dial-up usb connection as an option in virtualbox?

To prevent people from having to read the whole question. I basically want to use 2 connections on my computer. The host os should use the ethernet connection, and the guest os via virtualbox should use the usb connection which is a 3g usb dongle and comes up in xp as a dial-up connection. For some reason, I can't see this connection in virtualbox.

However, if I connect a different usb connection to the host machine which is of type LAN or High-Speed Internet, that works fine in virtualbox. I basically, need to get the dial-up connection recognised in virtualbox.


Here is a screenshot to show that I can only see the ethernet connection in the virtualbox dropdown. The usb connection cannot be seen. You can see that both the ethernet connection and the usb connection are connected before I start virtualbox in the screenshot in the original question below. But here is the screenshot of the dropdown in virtualbox:

enter image description here


The answer by JohnnyVegas partially works, in that if both connections are connected, the default becomes the ethernet connection. If I then go the the virtualbox OS, it too will use the ethernet connection. If either 1 of the connections is connected alone, virtualbox OS will use whichever connection is connected. However, if both connections are connected, the default is the ethernet connection, so virtualbox OS ends up using the ethernet connection.

I need the host pc to use the ethernet connection and the virtualbox OS to use the usb connection. So the answer by JohnnyVegas solves half of the problem.


I can't seem to get 2 internet connections to work on my computer how I need them to work.

The host computer is Windows XP, which has a ethernet connection and a USB internet connection. Both connections work fine if used one at a time.

If both connections are switched on at the same time, Windows XP wants to make use of the USB connection for some reason. How do I always get the HOST PC to make use of the ethernet connection only, but leave the USB connection enabled so it can be used by a guest OS via VirtualBox? Here is a screenshot:


From the screenshot, you can clearly see that I have 2 connected connections, 3Connect is the USB connection and Local Area Connection is the ethernet connection.

You can also see the Advanced Settings dialog box, which for some reason does not show the USB connection. However, if I go to Google with both connections connected, and type what is my ip, Google shows me the IP address of the USB connection. As soon as I disconnect the USB connection and refresh Google, I get the ethernet connections IP address when I ask Google what is my ip.

So basically, how do I enable both connections at the same time, but get Windows XP to make use of the ethernet connection, leaving the USB connection free for me to use with guest OS's via VirtualBox?

asked on Super User Mar 4, 2013 by oshirowanen • edited Mar 20, 2017 by Community

7 Answers


You need to change the interface metric. This is the order which windows uses the network cards. By default windows XP sets this to 'automatic' with the checkbox (pictured). The interface metric value is in your local area connection properties, TCP/IP, then advanced. Change the TCP/IP metric on the card you wish XP to use (ethernet) to metric value 1, and the USB connection to metric value 2.

Windows will then always use the ethernet connection, if available. Don't bother too much with the bindings screen. I find the above method far better.

interface metric windows xp

As far as Virtualbox goes, it does not see the USB adapter as a network adapter, so if you remove all of the network adapters in virtualbox and configure it's USB to take over that device, it will appear in virtualbox and then install the connection software in the Virtualbox OS. USB devices and Virtualbox is always very buggy. Make sure you have the latest version of VB. Whilst it will have full access to the USB device, the Host system may not.

answered on Super User Mar 6, 2013 by JohnnyVegas • edited Mar 6, 2013 by JohnnyVegas

Although the host uses the Ethernet adapter, the guest can use another adapter and is not limited to using the default one of the host.

Go to Settings of the guest, Network section, use Bridged networking and specify the USB adapter in the "Attached to" field for the guest.

As a result the guest will use the USB adapter for networking, while the host will continue to use the Ethernet adapter.


As you say that the USB dongle cannot be seen in the VirtualBox list of adapters, a workaround might be to use the Microsoft Loopback Adapter and bridge it to the dongle.

VirtualBox will probably be able to see the loopback adapter, while in effect it will be seeing the dongle.

answered on Super User Mar 6, 2013 by harrymc • edited Mar 8, 2013 by harrymc

connect your dongle to the first PC and complete the driver installation on the same. go to to "My network places" on your Windows XP machine, and "Set up a home or small office network" Follow the Wizard by clicking next, then next again. The wizard will find your dongle network connection and will prompt you if "you want to use the shared connection?" decline by selecting the radial button with a no answer. Click next.

Select a connection method: Select the radial button with the corresponding text as follows; This computer connects directly to the internet. "The other computers on my network connect to the internet through this computer". Click next

Select your internet connection: From the list of available networks shown, select your 3G dongle then click next.

Name your host computer as is appropriate and click next.

Take note of your workgroup name, as all computers in this network shall be given the same workgroup name. Click next.

You can choose to allow or not the file n printer sharing feature. Click next.

Click next to apply network settings.

Select "just finish......." click next

Click finish

Go to the client computers and move into "My Network Places"

select "Set up a home or small office network" Click next

Click next again

Select a connection method: select the radial button with the text; "This computer connects to the internet through a residential gateway or through another computer on my network. Click next

Set this computer's name and description as appropriate.Click next

Ensure you had set this machines' workgroup similar to the host computer.Click next

Select the to either share or not your files and printer. click next.

click next

click finish.

repeat the second configuration for client computers on the network.

answered on Super User Sep 13, 2013 by Rodgerthat
  • Click the Start Button
  • Right Click "Network" and then left Click Properties
  • From the "Network And Sharing Center" window click "Change Adapter Settings"
  • On the "Network Connections" window, press the ALT key on your keyboard to being up the menu bar
  • Click the "Advanced" menu and then "Advanced Settings"

In the "Advanced Settings" window you will see the "Adapters and Bindings" tab and under "Connections" you will see the order they are in, you can use the arrows to the side to move the connection priority up and down.

answered on Super User Mar 6, 2013 by Nidzaaaa

Use Connectify Dispatch to limit USB network to VirtualBox. It can work with all of your needs.

answered on Super User Mar 6, 2013 by Apple II

What you actually need is either:

  • Routing (with windows included GUI, a third party program or the MS route program). This is what you need if you want to access web site A with the ethernet connection and web site B with the USB connection. This is also what you can use to change the default gateway.
  • USB device association to the VM. This is what JohnnyVegas told you to do. This is, IMHO the best way to get what you want:
    • In VB, disable all the network connections: you won't need them. When I say disabling them, I'm talking about VB configuration window.
    • Attach the USB device to the VM. If all went fine, your host won't start to use it: only the guest should now see it.
    • Install whatever you need on the guest to make the dongle work and start using it. If your guest is Windows XP, you just have to install exactly what you installed to make your dongle work on the host. But do it in the guest.
  • Policy routing. In this case, just setup VB to use NAT and add a route that defaults to the USB interface on the host if the source IP matches the one of the VM.

I think JohnnyVegas solution (#2 above) is the easiest one to setup: you don't have to setup any dial-up connection in VB. You need to setup the connection directly in the guest provided you attached your USB dongle to it. Is that clear?

I'm not familiar at all with routing under Windows and I guess it can become very painful.

answered on Super User Mar 8, 2013 by (unknown user)

This is only a direction (or an idea) and not a complete answer as I am not sure how to do this on windows or if it is possible but using iptables as firewall on linux, you could use the host firewall pre-routing table to redirect "output coming from" and "input going to" your guest vm ip to the USB adaptor instead of the LAN one.

answered on Super User Mar 9, 2013 by laurent

User contributions licensed under CC BY-SA 3.0