anaconda-ks.cfg is created based on the selections you make during a manual installation.
You need to give more information about your setup. Are you installing RHEL, or a rebrand (i.e. Fedora, CentOS or Scientific Linux)? Are you installing on physical hardware (describe it) or in a VM (describe that). Do you have a physical DVD, or an ISO image?
Here's an example anaconda-ks.cfg file that was created during a basic desktop installation (I have modified the partition information):
In particular you may need to modify the url, network, partition information and repo settings, and anything else to suit your needs.
To use the kickstart file during an installation, press TAB after starting the machine, during the GRUB loader, and edit the boot options (press e) and add the location of the kickstart file (ks=...) (reference here)
I would suggest that you first install manually from the DVD, then play around with the configurator.
I am trying to create a custom ks.cfg file with redhat AS 3.0. I have a certain package list I would like to install so we have just the packages we need. The issue is in the file it show groups so I have removed them and added my list of packages as I would when useing this in AS 2.1 but for some... (2 Replies)
Hi,
I have few questions to make this kickstart file to be more efficient:
1) I would like to reboot the server once the installation (included installed all the optional rpm) is done.
2) Is there a nicer way to install rpm packages? (Here I included the commands in my kickstart file)
#... (1 Reply)
Hi,
I was able to set up a kickstart to install Red Hat Enterprise thought a network.
I'm trying to enable a NTP time server in the post section of the kickstart file and also enable/disable a few services using chkconfig.
I can't seam to get it to work, can anyone help ? I don't beleive i... (2 Replies)
Hi,
I would like to create a script so that it will ask me the following:
1) What is the ip address?
2) What is the gateway address?
3) What is the hostname?
and then put the answer to the below kickstart file (kickstart.cfg)
Here I included the kickstart.cfg:
# Kickstart file... (9 Replies)
Hi,
I am trying to install RHEL5.3 using kickstart method. Copied the rhel.iso file from DVD to http location. ks.cfg and rhel.iso files are available on a WINDOWS2008 Server (via HTTP). In ks.cfg file, provided the media path as url --url=http://xx.xx.xx.xx/RHEL53. System understanding the... (3 Replies)
Hey all,
I'm not sure if this possible but I had tested it out manually during the installation (placed a sleep in the pre-installation) and it worked. I'm trying to have a pexpect script to log into the mysql and input a new row for the pre-installation, which will end up displaying on a web... (1 Reply)
Hi,
I heard a command that can collect all RHEL 5 log in a single compress file before I forget.
Does any body know...What the command is ?
Thanks. (4 Replies)
Hi guys
I have CentOS installed on my server. I have also installed TFTP server, DHCP server. I am able to install CentOS on remote machines using PXE boot and kickstart cfg file.
I would like to install OpenSUSE using CentOS kickstart file. How do I do it ? I am also fine with any other... (2 Replies)
I would like to write a script that would remove and/or create shortcuts in Gnome desktop in RHEL 6.3...
I googled all over the place could never find what I needed...
Any help would be greatly appreciated!
Thank you! (0 Replies)
Hi everyone,
I have a custom kickstart file from a software vendor and I'm trying to package that with a RHEL 6.5 and then attach it to a VM and install RHEL with the settings in the kickstarter file. I'm doing this from a windows PC using an app called InfraRecorder.
I've extracted the... (0 Replies)
Discussion started by: 911Eric
0 Replies
LEARN ABOUT CENTOS
ksvalidator
KSVALIDATOR(1) General Commands Manual KSVALIDATOR(1)NAME
ksvalidator -- verify the syntax of a kickstart file
SYNOPSIS
ksvalidator [-e | --firsterror] [-i | --followincludes] [-l | --listversions] [-v | --version VERSION] INFILE
DESCRIPTION
ksvalidator is a program that takes an input kickstart file and attempts to verify that it is syntactically correct. This includes check-
ing basics like proper quoting and making sure required options have values, and more advanced checks like verifying the file does not
include deprecated or removed kickstart commands. Mutually exclusive options can also be caught, as can certain classes of partitioning
errors (like using the same device name multiple times).
ksvalidator does have its limitations. It cannot run validate the syntax of %pre and %post scripts, nor does it attempt to run them. It
cannot check that the %packages section is valid. Most importantly, it cannot guarantee that an input kickstart file will install prop-
erly, because it does not understand the complexities of partitioning and what potentially already exists on disk.
EXIT STATUS
ksvalidator returns 0 on success, and 1 if INFILE does not exist or there is an error parsing the kickstart file.
OPTIONS -e, --firsterror
Stop on the first warning or error. By default, ksvalidator will attempt to process the entire file, potentially raising multi-
ple errors.
-i, --followincludes
Process included files in the input file when they are seen, like anaconda would. If the included file does not exist (this can
happen for a variety of reasons, but the most common being a %pre script that generates an included file) and this option is
given, an error will be generated and processing halted.
-l, --listversions
List all versions of kickstart syntax supported by ksvalidator. This is useful for determining what values can be fed back in on
a second run.
-v, --version VERSION
Use this version of kickstart syntax when processing the file, or the latest if no version is given.
SEE ALSO
ksflatten (1), ksverdiff (1)
KSVALIDATOR(1)