LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-26-2010, 12:03 PM   #1
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Rep: Reputation: 17
DHCP works for PXE boot but not for Anaconda


I've finally got my auto-setup environment mostly working. The hosts will boot via PXE and they get their IP addresses from DHCP without issue and proceed to the Anaconda boot portion.

However, once Anaconda boots and attempts to get the same IP via the same DHCP server, it fails. I also don't see any requests in the boot.log on the DHCP server after the initial PXE requests, so it's like it's not even making the requests.

Anyone have any clue why Anaconda can't get an IP? Or perhaps a way to tell Anaconda what the IP is that it already has via the PXE boot?
 
Old 04-27-2010, 10:21 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
What does your 'network' line look like in the kickstart ?
 
Old 04-27-2010, 11:32 AM   #3
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by fantasygoat View Post
I've finally got my auto-setup environment mostly working. The hosts will boot via PXE and they get their IP addresses from DHCP without issue and proceed to the Anaconda boot portion.

However, once Anaconda boots and attempts to get the same IP via the same DHCP server, it fails. I also don't see any requests in the boot.log on the DHCP server after the initial PXE requests, so it's like it's not even making the requests.

Anyone have any clue why Anaconda can't get an IP? Or perhaps a way to tell Anaconda what the IP is that it already has via the PXE boot?
Do you use kickstart with PXE and which distro u r using to install via PXE ?
 
Old 04-27-2010, 12:26 PM   #4
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Original Poster
Rep: Reputation: 17
After doing some extensive research, I determined that the DHCP call from within Anaconda was resetting the interface on the switch itself, which required a minimum of 30 seconds to come back up.

Adding the following to the "append" section of the PXE boot file added a delay which allows the interface to fully reset and the DHCP requests to get through:

Quote:
dhcptimeout=180 nicdelay=50 linksleep=50
The first sets a 3 minute timeout on DHCP, and the later set a 50 second delay on bringing the interface up.

Those settings aren't always needed, it depends on how your switches are configured or set up.

After I added that, DHCP started working correctly.
 
Old 04-27-2010, 06:57 PM   #5
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Sounds like a delay due to spanning tree, if it's a cisco switch try modifying the interface config with:

'switchport mode access'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PXE boot DHCP too slow. xtothat Linux - Networking 2 12-19-2010 12:16 AM
DHCP not handing IP to KVM in PXE boot drschloss Linux - Networking 2 09-03-2010 05:31 PM
DHCP, OSCAR cluster installation, VMware server and PXE-boot problem. Azazwa Linux - Newbie 3 03-31-2009 10:52 AM
DHCP server / PXE boot freeindy Linux - Networking 2 03-04-2008 02:31 AM
DHCP only works after previous boot in Windows amosml Linux - Networking 4 12-31-2004 05:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration