LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-14-2011, 12:54 PM   #1
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Rep: Reputation: 16
Where to specify anaconda-ks.cfg file when installing?


When I'm doing an installation, I select the installation from CD/DVD option for CentOS, but then I don't know how to specify that it should use an anaconda-ks.cfg file that is either on a USB key (or on a Samba network share).

How could I install using the installation DVD, as well as a kickstart file that would specify which packages to enable and other installation settings?
 
Old 06-14-2011, 07:43 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Not sure that you can use either Samba or USB. There has to be some limit on the drivers included in the boot code. Your choices are floppy, CD/DVD, hard drive with ext filesystem, NFS, or HTTP.
 
Old 06-14-2011, 08:33 PM   #3
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Original Poster
Rep: Reputation: 16
So if I could somehow make my ks.cfg file available over HTTP, how could I go about selecting it in the DVD installation process? (I've installed it a few times recently and haven't come across the place to select the location to the kickstart file.)
 
Old 06-15-2011, 06:16 AM   #4
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Talking

Quote:
Originally Posted by veeruk101 View Post
So if I could somehow make my ks.cfg file available over HTTP, how could I go about selecting it in the DVD installation process? (I've installed it a few times recently and haven't come across the place to select the location to the kickstart file.)
Have a look at this post in my blog here: Shameless plug

Last edited by manyrootsofallevil; 06-15-2011 at 06:20 AM.
 
Old 06-15-2011, 03:35 PM   #5
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Quote:
Originally Posted by veeruk101 View Post
So if I could somehow make my ks.cfg file available over HTTP, how could I go about selecting it in the DVD installation process? (I've installed it a few times recently and haven't come across the place to select the location to the kickstart file.)
If you have an apache server lying around, give it a script named ks.cgi and put it in the cgi-bin directory. ks.cgi must be an executable which prints the ks.cfg lines to stdout. Then on the boot command line it would be something like this:

Code:
linux ks=http://yourservername/cgi-bin/ks.cgi
You will want to have the command cdrom to tell it to install rpms from CD/DVD.

So what's happening is:
1. the linux boot line does an HTTP GET command to the Apache server
2. Apache runs /cgi-bin/ks.cgi
3. ks.cgi prints the kickstart lines to the output
4. Apache takes CGI output and returns it verbatim to the client
5. Linux gets the output and runs it locally
 
Old 06-16-2011, 01:48 AM   #6
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Quote:
Originally Posted by smallpond View Post
If you have an apache server lying around, give it a script named ks.cgi and put it in the cgi-bin directory. ks.cgi must be an executable which prints the ks.cfg lines to stdout. Then on the boot command line it would be something like this:

Code:
linux ks=http://yourservername/cgi-bin/ks.cgi
You will want to have the command cdrom to tell it to install rpms from CD/DVD.

So what's happening is:
1. the linux boot line does an HTTP GET command to the Apache server
2. Apache runs /cgi-bin/ks.cgi
3. ks.cgi prints the kickstart lines to the output
4. Apache takes CGI output and returns it verbatim to the client
5. Linux gets the output and runs it locally
You can simply place the ks.cfg file on the /var/www/html/ directory and then append ks=http://yourservername/ks.cfg on the installer. No need to create a script. (The file will need to be world readable)
 
Old 10-06-2019, 02:54 PM   #7
BryGuy
LQ Newbie
 
Registered: Aug 2015
Location: St. Paul
Distribution: Slackware64-current
Posts: 4

Rep: Reputation: Disabled
Angry This didn't work for me because...

...for one thing I am using a USB stick to install Fedora (Cinnamon). The computer boots up and starts the installation program on the USB stick (are we already in Anaconda?).

My networking system on the target machine is still not alive at this point. I put together enough of a webserver on a different machine to serve up anaconda.ks on demand, but when I used the flash stick to boot up in the first machine, and pressed the [Tab] key for the command line, I put in the suggested "linux ks=http://10.0.0.118/cgi-bin/ks.cgi" nothing worked. I kept getting a kernel panic and some message about not doing this with a live system. Well so much for kickstart!

I knew I was missing something somewhere, and that's that kickstart isn't for individual machines that you sit at to install. It's for big, dead networkis of machines., God knows how they do it.

Yours in shame,

BryGuy
 
  


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
anaconda-ks.cfg anon091 Linux - Newbie 5 09-02-2009 04:56 PM
anaconda-ks.cfg problem on RHEL5 matrol Red Hat 0 12-09-2007 03:02 AM
Accidently deleted anaconda-ks.cfg deepanvenkatesh Linux From Scratch 4 01-23-2007 07:07 AM
how to get back anaconda-ks.cfg jam_newbiew Linux - General 2 02-02-2005 03:11 AM
Cron and anaconda-ks.cfg jjrowan Linux - Software 3 11-17-2004 03:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:29 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
Open Source Consulting | Domain Registration