[OS X 10.5] host networking with DHCP

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
chrisw
Posts: 2
Joined: 8. Sep 2008, 22:46

[OS X 10.5] host networking with DHCP

Post by chrisw »

Hello all,

this seems to be a difficult issue, several threads but no real solutions. My problem is I can't use DHCP with host networking from VirtualBox 2. I want to use host networking as I need to run services in the guest os which must be accessible from other computers (testing and development purposes). DHCP is available in the network so why not use it... This is my configuration:

Host Machine: MacBook Pro, OS X 10.5.4
VirtualBox: 2.0
Interface Ethernet (en en0), IP via DHCP
Interface AirPort (on en1), IP via DHCP

Guest OS: Ubuntu Server 8.04
The second interface is enabled (cable connected) and attached to en1.
IP address via DHCP set up in guest OS.

When ubuntu starts I see DHCP requests and offers to the MAC address specified for the virtual machine (in the DHCP server logging), however these are not received in the virtualbox. DHCP is provided by a linux server using dhcpd. Why?
With tcpdump I also see some traffic on the en1 interface but nothing seems to be send to the virtual machine. Do I need to set some OS X configuration to enabled dhcp answer forward?

These configurations do work:
* (cable) NAT
* (cable) host interface with static and DHCP
* (wireless) NAT
* (wireless) host networking with static IP address (also connection available from network)

please help.
Chris
rondonpon
Posts: 1
Joined: 9. Sep 2008, 22:54

Post by rondonpon »

same problem here.
dhcp offers are sent from my router, but not received by guest.

maybe this has something to do with multiple mac addresses on wireless interfaces (en1 on macbook)

Disabled ipv6 in linux guest, no change.


tested with win2008 as guest. works without problems.
Post Reply