Page 1 of 1

Lubuntu 16.10 Guest can't obtain IP address from host only dhcp

Posted: 21. Jan 2017, 01:37
by Nanocyte
I've got a Windows 10 64 host and a Lubuntu 16.10 64bit guest (1GB Ram).

Code: Select all

NetworkName:    HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
IP:             192.168.91.1
NetworkMask:    255.255.255.0
lowerIPAddress: 192.168.91.150
upperIPAddress: 192.168.91.200
Enabled:        Yes
I installed wireshark on the host and the guest and I can see the DHCP requests and offer on the host but the guest doesn't see the offer. I can self assign a fixed IP on the guest and everything works fine.

I can reproduce the issue with 5.1.14 r112924 and 5.0 but 4.3.40 works fine

Re: Lubuntu 16.10 Guest can't obtain IP address from host only dhcp

Posted: 21. Jan 2017, 01:56
by BillG
Why did you change the IP address range for the host only adapter? By default it uses 192.168.56.0/24 . Did you change the DHCP service as well?

Re: Lubuntu 16.10 Guest can't obtain IP address from host only dhcp

Posted: 23. Jan 2017, 23:29
by Nanocyte
BillG wrote:Why did you change the IP address range for the host only adapter? By default it uses 192.168.56.0/24 . Did you change the DHCP service as well?
I deleted my .virtualbox folder to reset the IP settings and there's no change. The guest still can't get an address.

Code: Select all

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
I'm not clear on what you mean by "change the DHCP service". Do you mean change a setting on the guest? DHCP is supposed to be mostly plug and play and if I switch the virtual machine settings to provide a NAT network, the guest picks up that address just fine.

Re: Lubuntu 16.10 Guest can't obtain IP address from host only dhcp

Posted: 24. Jan 2017, 00:16
by BillG
That looks fine. Those are the settings I expect to see. The other one should have worked as well.

Have you tried any other guest? It looks like a guest problem to me.

Re: Lubuntu 16.10 Guest can't obtain IP address from host only dhcp

Posted: 24. Jan 2017, 15:27
by scottgus1
Question, Nanocyte, where is the text in the Code tags coming from? looks like the output of a command. If so, please state which OS it came from, host or guest, and what command.

Since you are experimenting with Linux (free except for download time), I would try downloading a normal Ubuntu to a new guest, or even make a new Lubuntu guest, and set the guest network card to your host-only network, and see what happens.

I did a test with an XP guest and a DSL guest, set to a host-only network with a DHCP server active, and got a DHCP-served IP address on the guest network adapter in both guests. I am only on 5.1.6, though.

I concur with Bill, sounds like a guest misconfiguration, or possibly a DHCP server misconfiguration in Virtualbox.

Here are my settings: (note the unusual third number was set by Virtualbox after I had made and deleted a few Host-Only networks in testing something else once.)
Adapter
IP address: 192.168.162.1
Network Mask: 255.255.255.0
DHCP server enabled
Server Address: 192.168.162.2
Server Mask: 255.255.255.0
Lower bound: 192.168.162.100
Upper bound: 192.168.162.150

Re: Lubuntu 16.10 Guest can't obtain IP address from host only dhcp

Posted: 24. Jan 2017, 21:38
by Nanocyte
This is the command I'm sending:

Code: Select all

VBoxManage.exe list dhcpservers
I'm fairly confident it's not a guest misconfiguration because the Guest DHCP client is able to get an address if I select "NAT" or if I downgrade to 4.3. I'm guessing it's something weird in Windows 10 (the host) that conflicts with something introduced in Vbox 5.

Re: Lubuntu 16.10 Guest can't obtain IP address from host only dhcp

Posted: 24. Jan 2017, 21:40
by scottgus1
Could very well be a new issue. How did the fresh Ubuntu guest work?

Re: Lubuntu 16.10 Guest can't obtain IP address from host only dhcp

Posted: 25. Jan 2017, 02:32
by Nanocyte
scottgus1 wrote:Could very well be a new issue. How did the fresh Ubuntu guest work?
So, I downloaded Ubuntu 16.04 64 bit and got the “this kernel requires an x86-64 CPU, but only detects an i686 CPU, unable to boot” error. So I went into the host bios and enabled virtualization. I also recreated the .vbox file and between those two actions I somehow fixed the DHCP issue.

Re: Lubuntu 16.10 Guest can't obtain IP address from host only dhcp

Posted: 25. Jan 2017, 13:57
by scottgus1
Interesting! I wouldn't think the 64-bit problem would be important to DHCP, maybe it is. I suspect something slightly wrong with the guest that was fixed by re-doing the .vbox file.

Glad you're up and running!