Red Hat Bugzilla – Bug 507919
Disabling NetworkManager results in slow X boot
Last modified: 2010-03-28 08:23:35 EDT
Description of problem:
I typically install "text" mode, and then start X via startx. When I do this, and the NetworkManager service is stopped, it takes upto 15 minutes for X to start.
Version-Release number of selected component (if applicable): latest RHEL5.4 tree (I have not done any binary searching to see if this occurs in earlier versions of RHEL5)
How reproducible: 100%
Steps to Reproduce:
1. Install system in "text" mode, or manually disable NetworkManager.
2. Boot system. Make sure hardwired eth0 come up and dhcp's an address.
3. Disconnect eth0 cable. Do NOT "ifdown eth0".
X takes 15 minutes to start.
Expected results: X should start within 10-15 seconds.
Additional Info: See on corporate T61 laptop.
This probably isn't an NM thing. It's X being stupid with hostnames. You can't resolve hostnames, and thus X can't start because it uses hostnames as part of the libSM session stuff. Your machine probably got a hostname via DHCP when you had the cable plugged in, and thus when you unplug the cable, no DNS server, and since your hostname is only resolvable via the DNS server DHCP gave you...
Make sure that your current machine hostname has an entry pointing back to 127.0.0.1 in /etc/hosts, also see what xauth cookies you have, and gdb the hanging process and you'll see its stuck in the glibc resolver trying to resolve your hostname.
I cannot remember the context, nor do I know if this is reproducible anymore. Closing as INSUFFICIENT_DATA (against myself ;) ).