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

Posted by redben on Super User See other posts from Super User or by redben
Published on 2010-03-23T11:36:13Z Indexed on 2010/03/23 20:03 UTC
Read the original article Hit count: 346

Filed under:
|
|
|

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

On a mac os x, i have virtual box with a virtual machine. For now i have configured 2 interfaces for my virtual machine eth0 is normal bridge for my vm to acces the internet (when airport is connected) eth1 is set to host-only so i can access my vm from the host when there is no wifi/aiport is down. So basically it's like Adapter 1 when there is Wifi, Adapter 2 when there is not.

I'd like to have only one configuration to make it simpler. I thought i could just keep the Host only configuration, and on the host (os x) go to internet sharing and select "share from airport" to vboxnet0 (the vb virtual interface). Only to find out that vboxnet0 dosn't show up 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 ?

© Super User or respective owner

Related posts about virtualbox

Related posts about networking