How to share Guest's internet with host on Virtualbox?

8,763

There is a great answer at this post to create a host only connection for your Virtualbox that can be seen by Ubuntu to be used for connecting into your VM for network connection sharing.

In VirtualBox, how do I set up host-only virtual machines that can access the Internet?

Before you follow those directions you need to create the virtual connection. Copy and paste the following in a terminal window to create it:

vboxmanage hostonlyif create

Also, follow these instructions here after you have created the host only connection and have it configured to setup Internet Connection Sharing in your Windows VM so that you can share your connection.

http://windows.microsoft.com/en-us/windows/using-internet-connection-sharing#1TC=windows-7

Share:
8,763
user32655
Author by

user32655

Updated on September 18, 2022

Comments

  • user32655
    user32655 over 1 year

    I have a problem that I have been trying to fix over 3 months now, I'm using Ubuntu 12.04 64bit with Windows 7 as a Guest on VirtualBox, I have a USB Modem which doesn't support Linux, the Modem works good on the Guest but I don't know how to let the Host (Ubuntu) use that connection, I have searched around the Internet and most documents and fixes for how to share Host's connection with Guest, not Guest with Host. Beside, I've found some posts with similar problem but I couldn't understand the workarounds, I'm still beginner. So could anyone provide a step-by-step guide how to share Guest's Internet with Host? Thanks a lot!

    • pcworld
      pcworld over 10 years
      A possible solution could be to set up a proxy or VPN server on your guest and connect to it from your host.
    • user32655
      user32655 over 10 years
      How I can do that?
    • PHP Learner
      PHP Learner about 10 years
      @pcworld Please explain how to do this (Step-by-Step). I have same problem and will appreciate any useful answer
    • Thomas Ward
      Thomas Ward over 8 years
      @pcworld that's a lot easier said than done on a Windows 7 guest. Not sure that's still a valid approach given that, nor am I sure that's on topic here
    • Nande
      Nande about 2 years