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

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Nanocyte
Posts: 5
Joined: 21. Jan 2017, 01:09

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

Post 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
BillG
Volunteer
Posts: 5105
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

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

Post 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?
Bill
Nanocyte
Posts: 5
Joined: 21. Jan 2017, 01:09

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

Post 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.
BillG
Volunteer
Posts: 5105
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

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

Post 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.
Bill
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

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

Post 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
Nanocyte
Posts: 5
Joined: 21. Jan 2017, 01:09

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

Post 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.
Last edited by socratis on 25. Jan 2017, 22:11, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

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

Post by scottgus1 »

Could very well be a new issue. How did the fresh Ubuntu guest work?
Nanocyte
Posts: 5
Joined: 21. Jan 2017, 01:09

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

Post 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.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

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

Post 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!
Post Reply