How do I share my internet connection with VirtualBox?

Posted on 2009-04-22
Last Modified: 2012-06-27

I'm trying to share my internet connection (connected by wifi) in Windows XP SP3 with a Windows XP SP2 virtualized in VirtualBox.

I've got a previous experience with VMWare, for which the network sharing was made automatically, and I'm a bit confused here with VirtualBox.

I tried to select the private host network in the VM setting but I've got limited connectivity (probably due to an IP address conflict). So I created a new private host network connection from the VirtualBox settings, and I then made a bridge with my active local network connection, to use it with the NAT mode, but it still doesn't work.

Could somebody help me please?
Question by:JulienVan
    LVL 3

    Accepted Solution

    Do you want the guest to be able to connect to the host for local networking and to use the host as a gateway for the guest? I guess you should select internal host network in the VM (now called bridged network  as of v2.2).

    Then you could set up internet connection sharing on the host, to route traffic coming from the Virtualbox TAP Adapter, if it's the host that directly connects to the Internet.

    The bridge with the local network is useful for allowing the guest to access other computers at your network. This is the best choice if the NAT is done by a separate router.
    LVL 2

    Author Comment

    I don't know why but I've installed VirtualBox on an other computer, and my internet connection is now shared automatically with my virtualized system...
    LVL 6

    Expert Comment

    New version of virtualbo does it automatically

    Featured Post

    Free camera licenses with purchase of My Cloud NAS

    Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

    Join & Write a Comment

    Suggested Solutions

    VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
    Let’s list some of the technologies that enable smooth teleworking. 
    This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.
    In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now