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

Discussions related to using VirtualBox on Windows hosts.

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

Postby Nanocyte » 21. Jan 2017, 01:37

I've got a Windows 10 64 host and a Lubuntu 16.10 64bit guest (1GB Ram).

Code: Select all   Expand viewCollapse view
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
Nanocyte
 
Posts: 5
Joined: 21. Jan 2017, 01:09

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

Postby BillG » 21. Jan 2017, 01:56

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

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

Postby Nanocyte » 23. Jan 2017, 23:29

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

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

Postby BillG » 24. Jan 2017, 00:16

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

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

Postby scottgus1 » 24. Jan 2017, 15:27

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
scottgus1
Site Moderator
 
Posts: 9843
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

Postby Nanocyte » 24. Jan 2017, 21:38

This is the command I'm sending:
Code: Select all   Expand viewCollapse view
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.
Nanocyte
 
Posts: 5
Joined: 21. Jan 2017, 01:09

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

Postby scottgus1 » 24. Jan 2017, 21:40

Could very well be a new issue. How did the fresh Ubuntu guest work?
scottgus1
Site Moderator
 
Posts: 9843
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

Postby Nanocyte » 25. Jan 2017, 02:32

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

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

Postby scottgus1 » 25. Jan 2017, 13:57

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


Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: No registered users and 39 guests