Page 1 of 2

can not get ip from dhcp server

Posted: 24. Dec 2010, 02:53
by gnikhsiq
virtualbox version:4.0.0
host os:win xp sp3
guest os:ubuntu 10.10 xp sp3
network:it's using host-only adapter connect,but NAT (guest os use dhcp) or static ip is work well,I has enabled dhcp server in virtualbox
problem:can not get ip from host-only dhcp server


i'm sorry, English is not my native language,so it's not understand easy :cry:

Re: can not get ip from dhcp server

Posted: 24. Dec 2010, 12:19
by stefan.becker
Be more specific.

Dose the Guest use a DHCP Server and get no IP-Adress vom Router?

Or is the Guest an DHCP Server and the Host or other PCs get no IP-Adresse from it?

Re: can not get ip from dhcp server

Posted: 24. Dec 2010, 12:42
by Qetza
Hi,
I've got the same problem. My configuration :

VirtualBox : 4.0.0

Host OS : Windows 7 x64
Host Network : Cabled connection to a router with DHCP server.

Guest OS : Windows 2003 R2 SP2 x32
Guest Network : INTEL PRO/1000MT Desktop (Host-only adapter)
DHCP Server enabled in VirtualBox
Guest Additions v4 installed

My host system is working correctly (internet and local network access) but my guest system can't get an IP from VirtualBox internal DHCP server. I've reverted to v3.2.10 (also for the guest additions) and network is working in guest where i get an ip.

Re: can not get ip from dhcp server

Posted: 24. Dec 2010, 16:38
by Snafu
Same here after upgrading from 3.2.10 to 4.0.0.

DHCP-Server is enabled but the guest doesn't get an IP adress for the host-only adapter.

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe list dhcpservers
NetworkName:    HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
IP:             192.168.56.100
NetworkMask:    255.255.255.0
lowerIPAddress: 192.168.56.101
upperIPAddress: 192.168.56.254
Enabled:        Yes

VirtualBox Version 4.0.0
Host OS: Windows 7 x64
Guest OS: Ubuntu 10.04

Re: can not get ip from dhcp server

Posted: 24. Dec 2010, 16:38
by Don Gatley
Same problem here with VirtualBox 4.0.0, Debian Linux guest on a Windows 7 host.

My host-only network interface doesn't get an IP address from the VBox DHCP server and times out after a while. My other NAT network interface does get an IP.

Re: can not get ip from dhcp server

Posted: 24. Dec 2010, 17:48
by Rui Baptista
with windows host: VBoxNetDHCP.exe is not started when a VM is launched

with previous VBox versions a dhcp server was initiated ( or checked ) when a guest was started

starting VBoxNetDHCP.exe before the VM did not solve the problem

there are some notes and logs here

Re: can not get ip from dhcp server

Posted: 25. Dec 2010, 03:08
by gnikhsiq
stefan.becker wrote:Be more specific.

Dose the Guest use a DHCP Server and get no IP-Adress vom Router?

Or is the Guest an DHCP Server and the Host or other PCs get no IP-Adresse from it?
It's using internal dhcp server by Virtualbox and using host-only networking

Re: can not get ip from dhcp server

Posted: 25. Dec 2010, 15:29
by limaunion
hi all! same problem here, some details:

VBox release: 4.0
Host: Fedora 14
Guest: Windows XP
Network setting: Host only

It's like that randomly when the VM is started it might get an ip address or not,when the latter hapens if I type 'ipconfig renew' from inside the VM I get 'unable to contact your DHCP server. Request has timed out'. Also if the VM gets an IP address and the lease expires it's not able to renew and get a new lease.
Hope this bug is solved ASAP.
TIA.

Re: can not get ip from dhcp server

Posted: 27. Dec 2010, 05:29
by john.doe
Same for me. Virtualbox 4.0.0 on win7 32bit host, guest debian lenny. The VDI is on a USB disk and moves between systems. On the 3.2 debian host, no problem, on the 4.0 windows host, the host only adapter in the guest can't lease an IP. The guest can ping the host on the host-only adapter just fine if I set a static IP, it's the DHCP piece that doesn't work. Following advice above, I'm downgrading to 3.2. Maybe the DHCP server is a feature and I need to drive a dump truck full of gold up to Oracle to use it (or a gold dump truck full of latinum)?

Re: can not get ip from dhcp server

Posted: 27. Dec 2010, 11:31
by binoy
Same for Host : Vista Home Premium 32 bit.
I have tried with ubuntu 10.10 and Solaris 10 guest. both are failing to get IP address.

Re: can not get ip from dhcp server

Posted: 27. Dec 2010, 22:16
by Rui Baptista
in src/VBox/Main/ConsoleImpl2.cpp

line 4095 rc = VERR_INTNET_FLT_IF_NOT_FOUND;

should be a little earlier, before

line 4050 rc = host->FindHostNetworkInterfaceByName(HifName.raw(),
hostInterface.asOutParam());

Re: can not get ip from dhcp server

Posted: 30. Dec 2010, 06:49
by rager
Has anybody found a solution yet? I'm running Windows 7 64 host and Ubuntu, Fedora and Windows 7 guests. Since upgrading to 4.0.0 dhcp on my "VirtualBox Host-Only" adapters is not working.

Re: can not get ip from dhcp server

Posted: 30. Dec 2010, 15:27
by Rui Baptista
You can
- change the src as mentioned and build VBox
- search for vb4dhcp_patch (windows only)
- wait for next version

Re: can not get ip from dhcp server

Posted: 31. Dec 2010, 08:36
by rager
Thanks

Re: can not get ip from dhcp server

Posted: 2. Jan 2011, 14:41
by hammer85
The patch for DHCP VBoxC.dll work like a charm! see http://forums.mydigitallife.info/thread ... server-bug