VirtualBox

Opened 8 years ago

Closed 8 years ago

#16595 closed defect (obsolete)

VirtualBox built-in DHCP server does not respond for host-only interface

Reported by: Vsevolod Owned by:
Component: network/hostif Version: VirtualBox 4.3.36
Keywords: dhcp hostonly Cc:
Guest type: Linux Host type: Linux

Description

I created virtual machine with 2 interfaces, first is NAT (eth0), second is host-only (eth1). Host-only interface eth1 is configured to use DHCP to obtain it's IP address. When I start the guest, only eth0 gets IP address from dhcp server, eth1 is unable to receive it's IP address. This is an excerpt from guest syslog:

Mar 23 09:29:21 vagrant-ubuntu-trusty-64 kernel: [   17.917469] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
Mar 23 09:29:21 vagrant-ubuntu-trusty-64 kernel: [   17.918347] e1000: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
Mar 23 09:29:21 vagrant-ubuntu-trusty-64 kernel: [   17.918715] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Mar 23 09:29:21 vagrant-ubuntu-trusty-64 dhclient: Listening on LPF/eth1/08:00:27:e1:d3:44
Mar 23 09:29:21 vagrant-ubuntu-trusty-64 dhclient: Sending on   LPF/eth1/08:00:27:e1:d3:44
Mar 23 09:29:21 vagrant-ubuntu-trusty-64 dhclient: Sending on   Socket/fallback
Mar 23 09:29:21 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3 (xid=0xd467f16c)
Mar 23 09:29:24 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6 (xid=0xd467f16c)
Mar 23 09:29:30 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 11 (xid=0xd467f16c)
Mar 23 09:29:41 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 20 (xid=0xd467f16c)
Mar 23 09:30:01 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8 (xid=0xd467f16c)
Mar 23 09:30:09 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 14 (xid=0xd467f16c)
Mar 23 09:30:23 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 19 (xid=0xd467f16c)
Mar 23 09:30:42 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8 (xid=0xd467f16c)
Mar 23 09:30:50 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 15 (xid=0xd467f16c)
Mar 23 09:31:05 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 14 (xid=0xd467f16c)
Mar 23 09:31:19 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12 (xid=0xd467f16c)
Mar 23 09:31:31 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12 (xid=0xd467f16c)
Mar 23 09:31:43 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7 (xid=0xd467f16c)
Mar 23 09:31:50 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7 (xid=0xd467f16c)
Mar 23 09:31:57 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12 (xid=0xd467f16c)
Mar 23 09:32:09 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12 (xid=0xd467f16c)
Mar 23 09:32:21 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 16 (xid=0xd467f16c)
Mar 23 09:32:37 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7 (xid=0xd467f16c)
Mar 23 09:32:45 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7 (xid=0xd467f16c)
Mar 23 09:32:53 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12 (xid=0xd467f16c)
Mar 23 09:33:05 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 16 (xid=0xd467f16c)
Mar 23 09:33:21 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 15 (xid=0xd467f16c)
Mar 23 09:33:36 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 15 (xid=0xd467f16c)
Mar 23 09:33:51 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 18 (xid=0xd467f16c)
Mar 23 09:34:09 vagrant-ubuntu-trusty-64 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13 (xid=0xd467f16c)
Mar 23 09:34:22 vagrant-ubuntu-trusty-64 dhclient: No DHCPOFFERS received.
Mar 23 09:34:22 vagrant-ubuntu-trusty-64 dhclient: No working leases in persistent database - sleeping.

Host OS is Debian 8.7 64 bit, guest OS is ubuntu 14.04 64 bit. I am using vagrant to create and start this guest.

This issue appeared randomly and rarely for same time on two different linux hosts (debian and ubuntu 14.04). Now, I am unable to start the guest at all.

Attachments (16)

vagrant-start-output.txt (301.3 KB ) - added by Vsevolod 8 years ago.
Starting VM using vagrant, with full vagrant log
vbox-vminfo.txt (3.8 KB ) - added by Vsevolod 8 years ago.
Output of VBoxManage showvminfo
vbox-dhcp-servers.txt (1.7 KB ) - added by Vsevolod 8 years ago.
Output of VBoxManage list dhcpservers
guest-ifconfig.txt (1.3 KB ) - added by Vsevolod 8 years ago.
Output of ifconfig on guest
guest-etc-network-interfaces.txt (727 bytes ) - added by Vsevolod 8 years ago.
Contents of /etc/network/interfaces on guest
guest-syslog (58.1 KB ) - added by Vsevolod 8 years ago.
Guest syslog
vbox-hostonlyifs.txt (3.7 KB ) - added by Vsevolod 8 years ago.
Output of VBoxManage list hostonlyifs
vbox-hostinfo.txt (1.4 KB ) - added by Vsevolod 8 years ago.
Output of VBoxManage list hostinfo
VBox.log (82.4 KB ) - added by Vsevolod 8 years ago.
VirtualBox guest log of second start
VBox.log.1 (81.1 KB ) - added by Vsevolod 8 years ago.
VirtualBox guest log of first start
funtest-box-1.vbox (7.6 KB ) - added by Vsevolod 8 years ago.
VirtualBox virtual machine xml config
Vagrantfile (906 bytes ) - added by Vsevolod 8 years ago.
Vagrantfile used to start the guest
nictrace1.pcap (6.7 KB ) - added by Vsevolod 8 years ago.
nictrace1 - network trace of eth0 for second start
nictrace2.pcap (67.7 KB ) - added by Vsevolod 8 years ago.
nictrace2 - network trace of eth1 for second start
host-ifconfig.txt (7.4 KB ) - added by Vsevolod 8 years ago.
Output of ifconfig on host
vbox-systemproperties.txt (1.7 KB ) - added by Vsevolod 8 years ago.
Output of VBoxManage list systemproperties

Download all attachments as: .zip

Change History (20)

by Vsevolod, 8 years ago

Attachment: vagrant-start-output.txt added

Starting VM using vagrant, with full vagrant log

by Vsevolod, 8 years ago

Attachment: vbox-vminfo.txt added

Output of VBoxManage showvminfo

by Vsevolod, 8 years ago

Attachment: vbox-dhcp-servers.txt added

Output of VBoxManage list dhcpservers

by Vsevolod, 8 years ago

Attachment: guest-ifconfig.txt added

Output of ifconfig on guest

by Vsevolod, 8 years ago

Contents of /etc/network/interfaces on guest

by Vsevolod, 8 years ago

Attachment: guest-syslog added

Guest syslog

by Vsevolod, 8 years ago

Attachment: vbox-hostonlyifs.txt added

Output of VBoxManage list hostonlyifs

by Vsevolod, 8 years ago

Attachment: vbox-hostinfo.txt added

Output of VBoxManage list hostinfo

by Vsevolod, 8 years ago

Attachment: VBox.log added

VirtualBox guest log of second start

by Vsevolod, 8 years ago

Attachment: VBox.log.1 added

VirtualBox guest log of first start

by Vsevolod, 8 years ago

Attachment: funtest-box-1.vbox added

VirtualBox virtual machine xml config

by Vsevolod, 8 years ago

Attachment: Vagrantfile added

Vagrantfile used to start the guest

by Vsevolod, 8 years ago

Attachment: nictrace1.pcap added

nictrace1 - network trace of eth0 for second start

by Vsevolod, 8 years ago

Attachment: nictrace2.pcap added

nictrace2 - network trace of eth1 for second start

by Vsevolod, 8 years ago

Attachment: host-ifconfig.txt added

Output of ifconfig on host

by Vsevolod, 8 years ago

Attachment: vbox-systemproperties.txt added

Output of VBoxManage list systemproperties

comment:1 by Vsevolod, 8 years ago

uname -a on host:

Linux spin 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64 GNU/Linux

uname -a on guest:

Linux box-1 3.13.0-112-generic #159-Ubuntu SMP Fri Mar 3 15:26:07 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

comment:2 by Vsevolod, 8 years ago

(Temporary?) fix for the issue is to reload VirtualBox kernel modules:

$ rmmod vboxnetadp vboxnetflt vboxpci vboxdrv
$ modprobe vboxnetadp
$ modprobe vboxnetflt
$ modprobe vboxpci
$ modprobe vboxdrv

comment:3 by Frank Mehnert, 8 years ago

I'm sorry but VBox 4.3.x is no longer supported. Are you able to reproduce this problem with VBox 5.1.18?

comment:4 by Frank Mehnert, 8 years ago

Resolution: obsolete
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette