LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-20-2013, 08:55 PM   #1
zulkifal
LQ Newbie
 
Registered: Jul 2012
Posts: 22

Rep: Reputation: Disabled
Smile spacewalk server without the use of dhcp


Hi Experts ! I have been reading about some articles where the writers have used "dnsmasq" instead of dhcp with cobbler as a provisioning server to PXE boot systems.I already have a spacewalk server which comes with a cobbler, xinetd, tftp etc services therefore I dont need to configure a cobbler again but the issue is that I dont have a dhcp , so If I use a dnsmasq , is it possible to configure the cobbler seperately as these writers have done so? or Is there any other way to configure it , if it comes embedded in my spacewalk server ? By the way i dont want to use " Build ISO " method explained in cobbler docs.A little confused here. Your help will highly be appreciated.
Thank you

Last edited by zulkifal; 05-21-2013 at 10:54 AM.
 
Old 05-21-2013, 07:43 PM   #2
gdizzle
Member
 
Registered: Jul 2012
Posts: 234

Rep: Reputation: Disabled
Hi I read this, and was kind of confused so let me know if I am lead a stray. I too use spacewalk in our environment and, however I have no real knowledge on dnsmasq as I use just the standard dhcp with tftp.

From here: http://www.thekelleys.org.uk/dnsmasq/doc.html

Dnsmasq supports static and dynamic DHCP leases and BOOTP/TFTP/PXE for network booting of diskless machines

Here are 2 links I found on dnsmasq as a pxeboot:

http://blogging.dragon.org.uk/index....p-a-pxe-server
http://danielboca.blogspot.com.au/20...g-pxe-and.html

Maybe someone can commnent who has set this up or has experience with dnsmasq.

You claim you don't have dhcp? Is there any reason you have not just installed it?
Code:
yum install dhcp
 
Old 05-22-2013, 08:52 AM   #3
zulkifal
LQ Newbie
 
Registered: Jul 2012
Posts: 22

Original Poster
Rep: Reputation: Disabled
Thanks gdizzle , Actually there is a dhcp in the network but I dont have any control over it to to change its settings. I am open to any suggestions that uses spacewalk server for provisioning new baremetal systems but are not able to use the dhcp to PXE Boot their systems.I saw a couple of threads where they use a bootable cd/dvd to boot their systems but I still am not sure how they point it to spacewalk to pick up the image and kickstart scripts.
 
Old 05-22-2013, 06:31 PM   #4
gdizzle
Member
 
Registered: Jul 2012
Posts: 234

Rep: Reputation: Disabled
Ok so you don't control the dhcp server, that fine however you need to find out the range of IP's you can use or IP address you can use. Ask the admin.

For example, if you are told that you can use the address 172.19.11.158.

As you can see below I have limited the range to only give out that single IP therefore because it's not in use I will not break the network.

Also I have designated the IP to go to the host you see below.

Then do a
Code:
yum install dhcp
Code:
vim /etc/dhcp/dhcpd.conf

subnet 172.19.11.0 netmask 255.255.255.0 {
  range 172.19.11.158 172.19.11.158;
   option routers 172.19.11.88;
   next-server 172.19.11.88;
   filename    "/pxelinux.0";
  default-lease-time 600;
  max-lease-time 7200;

Code:
host testspace01 {
  hardware ethernet 00:59:56:92:1f:68;
  fixed-address 172.19.11.158;
}
I have not seen any Kickstart CD's/DVD situations that call the spacewalk server.
 
Old 05-22-2013, 10:31 PM   #5
zulkifal
LQ Newbie
 
Registered: Jul 2012
Posts: 22

Original Poster
Rep: Reputation: Disabled
Thanks again, So it means that I will have another dhcp server but its setting will be restricted to the block of ip's intended for my cluster. Thats pretty understandable.My google search found a thread which has the following info which I want to share with you and other members.This was taken from RHEL Documentation.

6.4.9.1.3. Building Bootable Kickstart ISOs

While you can schedule a registered system to be kickstarted to a new operating system and package profile, it is also useful to be able to kickstart a system that is not registered with RHN, or does not yet have an operating system installed. One common method of doing this is to create a bootable CD-ROM that is inserted into the target system. When the system is rebooted, it boots from the CD-ROM, loads the kickstart configuration from the RHN Servers or your Satellite, and proceeds to install Red Hat Enterprise Linux according to the kickstart profile you have created.

To do this, copy the contents of /isolinux from the first CD-ROM of the target distribution. Then edit the isolinux.cfg file to default to 'ks'. Change the 'ks' section to the following template:

label ks
kernel vmlinuz
append text ks={url} initrd=initrd.img lang= devfs=nomount ramdisk_size=16438 \
{ksdevice}

IP addressed-based kickstart URLs will look something like this:

http://my.sat.server/kickstart/ks/mode/ip_range

The kickstart distribution selected by the IP range should match the distribution from which you are building, or errors will occur. {ksdevice} is optional, but looks like:

ksdevice=eth0

It is possible to change the distribution for a kickstart profile within a family, such as Red Hat Enterprise Linux AS 4 to Red Hat Enterprise Linux ES 4, by specifying the new distribution label. Note that you cannot move between versions (2.1 to 3) or between updates (U1 to U2).

Next, you may customize isolinux.cfg further for your needs, such as by adding multiple kickstart options, different boot messages, shorter timeout periods, etc.

Next, create the ISO as described in the Making an Installation Boot CD-ROM section of the Red Hat Enterprise Linux 3 Installation Guide. Alternatively, issue the command:

mkisofs -o file.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 \
-boot-info-table -R -J -v -T isolinux/

Note that isolinux/ is the relative path to the directory containing the isolinux files from the distribution CD, while file.iso is the output ISO file, which is placed into the current directory.

You may then burn the ISO to CD-ROM. To use the disc (assuming you left the label for the kickstart boot as 'ks'), boot the system and type "ks" at the prompt. When you press Enter, the kickstart should begin.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Two DHCP ranges in one DHCP server using one NIC on a MPLS network - centos6 6.3 x64 pablobhz Linux - Newbie 7 03-04-2013 05:22 PM
How to build a custom channel in Spacewalk Server(CentOS6) zulkifal Red Hat 0 07-18-2012 03:54 PM
OSAD - osa-dispatcher SSL issue ---spacewalk server shockwavecs Linux - Server 1 06-27-2012 11:35 PM
Problem on acquiring IP addr. on client from dhcp server through dhcp relay server haariseshu Linux - Server 5 08-10-2009 02:20 AM
Instead of Router DHCP Server, Pass DHCP Server control to Slackware orbit Slackware 6 05-11-2009 03:00 AM


All times are GMT -5. The time now is 07:59 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration