can not get ip from dhcp server

Discussions related to using VirtualBox on Windows hosts.
gnikhsiq
Posts: 2
Joined: 24. Dec 2010, 02:27
Primary OS: MS Windows XP
VBox Version: PUEL
Guest OSses: ubuntu

can not get ip from dhcp server

Post 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:
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: can not get ip from dhcp server

Post 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?
Qetza
Posts: 2
Joined: 24. Dec 2010, 12:33
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows

Re: can not get ip from dhcp server

Post 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.
Snafu
Posts: 1
Joined: 24. Dec 2010, 16:20
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Ubuntu

Re: can not get ip from dhcp server

Post 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
Don Gatley
Posts: 1
Joined: 24. Dec 2010, 16:34
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Debian Linux

Re: can not get ip from dhcp server

Post 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.
Rui Baptista
Posts: 60
Joined: 23. Dec 2010, 05:03
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux, ...

Re: can not get ip from dhcp server

Post 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
gnikhsiq
Posts: 2
Joined: 24. Dec 2010, 02:27
Primary OS: MS Windows XP
VBox Version: PUEL
Guest OSses: ubuntu

Re: can not get ip from dhcp server

Post 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
limaunion
Posts: 5
Joined: 27. Jun 2009, 14:47
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Windows 7

Re: can not get ip from dhcp server

Post 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.
john.doe
Posts: 76
Joined: 10. Feb 2009, 16:39
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: WinXP, Vista, 2003, 2008, various Linux distros and others

Re: can not get ip from dhcp server

Post 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)?
binoy
Posts: 1
Joined: 27. Dec 2010, 11:17
Primary OS: MS Windows Vista
VBox Version: OSE Debian
Guest OSses: Ubuntu,Solaris

Re: can not get ip from dhcp server

Post 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.
Rui Baptista
Posts: 60
Joined: 23. Dec 2010, 05:03
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux, ...

Re: can not get ip from dhcp server

Post 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());
rager
Posts: 3
Joined: 25. Aug 2010, 08:21
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: Windows 7 64

Re: can not get ip from dhcp server

Post 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.
Rui Baptista
Posts: 60
Joined: 23. Dec 2010, 05:03
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux, ...

Re: can not get ip from dhcp server

Post by Rui Baptista »

You can
- change the src as mentioned and build VBox
- search for vb4dhcp_patch (windows only)
- wait for next version
rager
Posts: 3
Joined: 25. Aug 2010, 08:21
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: Windows 7 64

Re: can not get ip from dhcp server

Post by rager »

Thanks
hammer85
Posts: 1
Joined: 2. Jan 2011, 14:11
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Linux, Xpsp3

Re: can not get ip from dhcp server

Post by hammer85 »

The patch for DHCP VBoxC.dll work like a charm! see http://forums.mydigitallife.info/thread ... server-bug
Post Reply