In one line : is the following possible : Airport <- "OS X 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 ?

link|improve this question
feedback

2 Answers

Doesn't Virtualbox have a third kind of interface, an automatic NAT interface, like VMware does? if so, replace the two interfaces with a single NAT interface and all should be good...

link|improve this answer
1  
It seems like the NAT mode on interface does not allow communication between the host and the guest...that is what they say in the docs. Or have i misunderstood...? – redben Mar 23 '10 at 13:49
I am not sure what the adapter is named in OSX, but in my Windows Host, I have an adapter named "VirtualBox Host-Only Network". If I try to access the address assigned to it from my NAT'd VM, it works just fine. – Goyuix Mar 23 '10 at 14:20
@redben: Wow. if so, that's a surprise. With VMware's NAT interface the guest can communicate with the host. – Josh Mar 23 '10 at 15:55
@Goyuix On OS X it creates an interface with id vboxnet0, but you don't see it in the Network preferences (like network settings in windows). – redben Mar 23 '10 at 16:53
found an article that might be of interset. @Josh it also explains how Vbox implements NAT akutz.wordpress.com/2009/08/20/… – redben Mar 23 '10 at 16:56
feedback

If you have two system guest attached on Mac os x host and assign them the NAT, the guest systems will have same IP address.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.