Problems Host Networking on OSX Host

Discussions related to using VirtualBox on Mac OS X hosts.

Problems Host Networking on OSX Host

Postby martoro » 5. Sep 2008, 22:17

With Version 2.0 Host Networking should work on OSX Hosts. So tested it but the vm (ubuntu) cannot access the internet.

The network configuration of the vm seems strange:
Host IP: 192.168.178.21
VM IP:169.254.8.23
I expected that both would be in the 192.168.178.xxx subnet where dhcp is managing the ip's.

The host and the vm can see each other but the vm cannot use the rest of the network.

Does anyone have a hint how to fix this?
Regards Martin

Setup:
MacbookPro, Intel
Host: OSX Leopard VM: Ubuntu Hardy
VM-Network: Host Networking, PCnet-fastIII, over Airport
martoro
 
Posts: 2
Joined: 5. Sep 2008, 22:06

Host networking doesn't work with Airport on Macos

Postby Erryck » 7. Sep 2008, 01:06

I have the same problem, on macbook pro (mac os 10.5.3) with VirtualBox 2.0

Airport Card
Type de carte sans fil : AirPort Extreme (0x168C, 0x87)
Paramètres régionaux de la carte sans fil : International
Version du programme interne de la carte sans fil : 1.4.3.1

With the ethernet card, it's ok

If someone have a soluce, i take it
Thanks
Eric

--
Martoro,
The VM ip is not "strange" : it's an APIPA address. An address reserve and auto-allotted when the ethernet card don't had a response off dhcp server. ;-)
Erryck
 
Posts: 2
Joined: 7. Sep 2008, 00:51

Postby aquarius » 7. Sep 2008, 09:33

I had success with host networking over the airport WiFi of my MacBook Pro.
But my XP SP3 guest only got a proper config from DHCP after I deactivated and restarted the airport connection.
aquarius
 
Posts: 69
Joined: 3. Jun 2008, 22:35
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: MS Windows XP

Postby Erryck » 7. Sep 2008, 10:09

Yes, i have no problem with XP guest and host networking with airport.

It's with linux guests that the problem appears, like Ubunutu, Debian.
Erryck
 
Posts: 2
Joined: 7. Sep 2008, 00:51

Postby peejay » 7. Sep 2008, 21:16

I have no problems with Ubuntu (8.04) accessing the internet with VB 2.0. I'm using an iMac with OS 10.5.4, accessing the internet wirelessly via an Airport Express. Also OpenSolaris running as another guest also connects to the internet OK.
peejay
 
Posts: 11
Joined: 5. Sep 2008, 13:40
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Ubuntu 9.10, Windows Pro XP, OpenSolaris, Chrome OS

Postby Son of a Beach » 8. Sep 2008, 05:24

Host interface networking ain't working here either (Windows XP guest). Version 2.0 is turning out to be a serious let down so far, as this was the one feature I really needed.

With a guest (VM) system running with host interface networking, should I be seeing an additional virtual interface on the host (Mac OS X) system using 'ifconfig'? (and in System Preferences -> Network?)

'ifconfig -a' on the host system shows no such additional interface exists.
Son of a Beach
 
Posts: 38
Joined: 12. Jul 2007, 06:22
Location: Tasmania

Postby peejay » 8. Sep 2008, 10:04

I don't think that you can see the guest from the host, even with shared folders enabled, but you can of course see the host from the guest. You should be able to see the Mac via "Windows Network" in the guest OS.
peejay
 
Posts: 11
Joined: 5. Sep 2008, 13:40
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Ubuntu 9.10, Windows Pro XP, OpenSolaris, Chrome OS

Networking works on Cable Network

Postby martoro » 8. Sep 2008, 17:12

On a similar notebook wich is connected via cable the host-interface networking runs like i expected. Im still confused what going wrong with airport.
martoro
 
Posts: 2
Joined: 5. Sep 2008, 22:06

Postby Son of a Beach » 8. Sep 2008, 23:33

peejay wrote:I don't think that you can see the guest from the host, even with shared folders enabled, but you can of course see the host from the guest. You should be able to see the Mac via "Windows Network" in the guest OS.


Not a chance in my case. The guest (windows) has a self-assigned IP address, and is therefore in a completely separate private subnet. It is clearly not able to connect to the DHCP server, and is therefore not getting a valid IP address.

Host Interface networking just ain't working (on my system, at least).
Son of a Beach
 
Posts: 38
Joined: 12. Jul 2007, 06:22
Location: Tasmania

Postby chrisw » 9. Sep 2008, 20:57

Is that with wireless or cable connected? In my case it seems to be a wireless issue only, it sends a request to the DHCP server but the answer is not forwarded to the virtual machines. What could be blocking the DHCP answer?
chrisw
 
Posts: 2
Joined: 8. Sep 2008, 22:46

Mac Host Networking in 2.0: some Linux okay, some not

Postby rm53 » 9. Sep 2008, 22:12

my results with Host Networking on Mac as Host vary across the guest distribution type:

- the guest Linux openSUSE 11 cannot get up eth0 neither with DHCP nor with fixed IP address, so no communication possible (but both work fine with NAT networking)

- the guest Linux DamnSmallLinux can do it with fixed IP addressing, but not with DHCP

in both experiments I used only the airport (en1) as the physical networking device on the MacBook.

Mysterious. Is anybody of the VirtualBox team reading this thread?

UPDATE
Finally I succeeded with openSUSE 11 by switching the Mac (!!!) to an environment with fixed IP address. Now I have Internet and ping (in and out) and can use openSUSE as server all at once, nice.
Still I am wondering why openSUSE needs fixed IP addresses on the Mac side (on the host) while DamnSmallLinux does not care about this?
rm53
 
Posts: 39
Joined: 9. Sep 2008, 21:47

No luck here either

Postby d4vo » 29. Sep 2008, 22:44

I am having problems with Host Interface as well.

I am running Fedora 9 on Mac OS X 10.5.5 running on an Intel iMac with static IP using Virtualbox 2.0.2

With the NAT engine of Virtualbox I get full network connection as soon as I change to Host Interface eth0 I get nothing. Have searched all the places I can think of with no luck. I want to run this vm with a static IP.

Any ideas what the problem is?
d4vo
 
Posts: 2
Joined: 29. Sep 2008, 22:25

.....or here

Postby d4vo » 30. Sep 2008, 15:42

I thought I would try going back a version of OS to Fedora 8 to see if it made any difference. I know that F9 is a bit buggy with network settings.

It was not sucessful. I don't know what is wrong. If I try route -nee and ifconfig I can see that the eth0 is up and is sending and receiving packets and is correctly configure to the gateway but still no external access.

The only way to get internet connection is through Virtualbox's NAT setting and guest DHCP which is not what I want. I need the Fedora vm to be on the same primary zone as the host machine with a static IP not on a subnet with a dynamically assigned IP. I can't even use port forwarding because the IP is assigned via DHCP.

If anyone has had any luck please let me now. Thanks
d4vo
 
Posts: 2
Joined: 29. Sep 2008, 22:25

Should virtual interface be visible in Mac OS?

Postby ilikeimac » 5. Oct 2008, 00:54

To those who have this working, do you see any new interfaces in the output of 'ifconfig' or in the Network preference pane?

Son of a Beach asked this question, and I don't see a conclusive answer. The manual says that Linux hosts will see a new interface similar to 'vbox0' in 'ifconfig', so I would have guessed that Mac OS X hosts would see it as well. Host interface networking is not working for me with either Fedora or Ubuntu guests, and I do not see extra interfaces in 'ifconfig' or the Network preference pane.

Thanks!
ilikeimac
 
Posts: 3
Joined: 27. Sep 2008, 23:38

Bump

Postby ilikeimac » 12. Oct 2008, 05:05

Bump
ilikeimac
 
Posts: 3
Joined: 27. Sep 2008, 23:38

Next

Return to VirtualBox on Mac OS X Hosts

Who is online

Users browsing this forum: No registered users and 19 guests