I get the following pieces of information at the startup, takes about 3 to 5 minutes, while normally about 1 minute:
Waiting network configuration Booting system without full network configuration
I found after googling that I should change /etc/networks/interface. I commented out everything there but the problem remains:
# auto lo
# iface lo inet loopback
# auto eth0
# iface eth0 inet dhcp
# address 192.168.0.2
# netmask 255.255.255.0
# gateway 192.168.0.1
# broadcast 192.168.0.255
How can you make the startup of Ubuntu 11.10 faster?
First off, this is a new behavior, documented in the 11.10 release notes, that I actually developed together with Scott Moser as an effort to make server boot more reliable.
Commenting out
lo
will mean you have no local network capability, which will break some programs when they try to use the network. It will also cause your system to never boot because it is so critical. So leave these two lines:The bits about
eth0
meant that your machine was configured to wait for a dynamic address to be assigned to it before the network is considered UP. Inpre-upstart
versions of Ubuntu (8.10 and earlier), the system would have waited up to 60 seconds for this before continuing the boot. Whenupstart
was added, this condition wasn't waited for anymore, because network interfaces that were not always expected to be plugged in are better managed by something likenetwork-manager
.So, if you have a server, you probably want to wait for a dynamic address, otherwise the system will boot without all of its networks available (which it does if it takes more than 2 minutes to get an address). If you have a laptop that you don't always expect to be plugged in to
eth0
, then configureeth0
in network manager, and remove only those lines from/etc/network/interfaces
, which should get rid of your boot delay.Keep in mind, there's a known bug with
VMware
anddbus
that also causes this message.If you moved your OS from one machine to another it might be a good guess that udev created a configuration containing the mac address of your old network device which is different from the mac address of the network device from your new system.
Try removing the following file then reboot your system and see if this solves the problem:
You're mixing 2 incompatible ways of assigning an address to a network interface.
says "send out a DHCPDISCOVER packet to the physical local network, wait for a DHCPOFFER packet from a physically local DHCP server, and get the IP address from it (see http://www.rfc-editor.org/rfc/rfc1531.txt), while the rest of the lines assign values to the interface "manually". It's important that one gets the IP address assignment method right. If there is a DHCP server on your local network, you should use it. To do so, delete the "address", "netmask", "gateway", and "broadcast" lines.
If you're not connected to an "administered" local area network (and don't have a DHCP server), and want to assign the IP address parameters manually, change the first line to:
and keep the "address", "netmask", "gateway", and "broadcast" lines. See http://www.rfc-editor.org/rfc/rfc5735.txt for details about which IP addresses are available for use. The parameters you have look OK to me.
Read
simply commenting everything out is not the best path to happiness.
Seems like for me, the best solution for this problem was found at this linux site
Basically, still calling /etc/init/failsafe.conf , but commenting out the two sleep calls that caused the delay. I don't really see why they were added, since my network is configured fine without the need for a delay.
I use
I don't see the point of waiting when there is no link (the cable is missing) There is no way dhcp can get the address if there is no media. This is a bug
I recently just had this same problem. I tried to go in and comment out the sleep time in
/etc/init/failsafe.conf
file and ended up with the system just continuously trying to boot. I fixed this error by booting into safe mode and droping into a root shell and doing the following so that I had rw privleges:I then issued the following command which brought up the file so that I could edit it back to it's orginal state:
Save and exit, then reboot the system.
Use
allow-hotplug
instead ofauto
in the/etc/network/interfaces
file, e.g.,allow-hotplug enp0s25
theniface enp0s25 inet dhcp
. This tells the server to not wait for the interface to light up with a dhcp answer. - - Dr. Zim's comment.