can not get ip from dhcp server

Discussions related to using VirtualBox on Windows hosts.

can not get ip from dhcp server

Postby gnikhsiq » 24. Dec 2010, 02:53

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:
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

Postby stefan.becker » 24. Dec 2010, 12:19

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

Re: can not get ip from dhcp server

Postby Qetza » 24. Dec 2010, 12:42

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.
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

Postby Snafu » 24. Dec 2010, 16:38

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   Expand viewCollapse view
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
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

Postby Don Gatley » 24. Dec 2010, 16:38

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.
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

Postby Rui Baptista » 24. Dec 2010, 17:48

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
Rui Baptista
 
Posts: 26
Joined: 23. Dec 2010, 05:03
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: too many to list

Re: can not get ip from dhcp server

Postby gnikhsiq » 25. Dec 2010, 03:08

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
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

Postby limaunion » 25. Dec 2010, 15:29

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.
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

Postby john.doe » 27. Dec 2010, 05:29

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)?
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

Postby binoy » 27. Dec 2010, 11:31

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.
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

Postby Rui Baptista » 27. Dec 2010, 22:16

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());
Rui Baptista
 
Posts: 26
Joined: 23. Dec 2010, 05:03
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: too many to list

Re: can not get ip from dhcp server

Postby rager » 30. Dec 2010, 06:49

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.
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

Postby Rui Baptista » 30. Dec 2010, 15:27

You can
- change the src as mentioned and build VBox
- search for vb4dhcp_patch (windows only)
- wait for next version
Rui Baptista
 
Posts: 26
Joined: 23. Dec 2010, 05:03
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: too many to list

Re: can not get ip from dhcp server

Postby rager » 31. Dec 2010, 08:36

Thanks
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

Postby hammer85 » 2. Jan 2011, 14:41

The patch for DHCP VBoxC.dll work like a charm! see http://forums.mydigitallife.info/thread ... server-bug
hammer85
 
Posts: 1
Joined: 2. Jan 2011, 14:11
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Linux, Xpsp3

Next

Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: Google [Bot], Nielas Aran and 49 guests