How to share internet connection on Mac os x to Virtualbox vm’s using Host-only

Posted by redben on Server Fault See other posts from Server Fault or by redben
Published on 2010-03-23T11:52:43Z Indexed on 2010/03/23 11:53 UTC
Read the original article Hit count: 317

Filed under:
|
|

In one line : is the following possible : Airport <- "osx bridge" -> vbox-Host-only -> vm's

Virtualbox (3.1.4) setup :

  • Host : Mac OS X 10.5
  • Guest : Ubuntu Linux
    • adapter1 - Bridged (en1: Airport) : To give the vm access to internet and communicate when Airport is connected
    • adapter2 - Host-Only (vboxnet0) : To enable host/guest communication when Airport is not connected

I'd like to make it simpler and only keep adapter 2 (host-only) and relying on os x connection sharing/bridging I thought i could just keep the Host only configuration, and on the host go to internet sharing and select "share from airport" to vboxnet0 . Only to find out that vbox's virtual interface doesn't appear in the interfaces list on os x preferences.

I know that on a linux host you could install something called bridge-utils and use that to bridge the two insterfaces. Is there any thing like that for Mac ?

© Server Fault or respective owner

Related posts about macosx

Related posts about virtualbox