Ks. cfg file, parameter description

Source: Internet
Author: User
Tags nameserver

Main projects and parameters in the Kickstart file:

Each project is identified by a keyword. A keyword can be followed by one or more parameters. If an option is followed by an equal sign (=), it must be followed by a value.

Install (optional)
Specify that the system will be re-installed next time; it is the default item;

Cdrom (optional)
Install the system with a local CD-ROM as the source;

Harddrive (optional)
Install the new system using the image contained in the hard disk partition as the source (installation tree). When the system is installed in this way, the partition where the source is located will not be erased even if clearpart -- all is specified;
-- Partition = Specify the partition
-- Dir = specifies the directory containing the image
Example:
Harddrive -- partition =/dev/sdb2 -- dir =/data/iso

Nfs (optional)
Specifies to obtain the installation tree from the NFS server;
-- Server = specifies the NFS server, host name, or IP address
-- Dir = directory containing the installation tree
-- Opts = specifies the mount option when NFS directory is mounted.
Example:
Nfs -- server = 192.168.1.254 -- dir =/data/iso

Url (optional)
Specifies to obtain the installation tree from the network through FTP or HTTP;
-- Url specifies the resource location
Example:
Url -- url ftp: // <username >:< password> @ install.example.com/iso
Url -- url http://install.example.com/iso

Bootloader (required)
Set the boot loader installation options;
-- Append = kernel parameters can be specified
-- Driveorder = set the startup sequence of the boot device in the BIOS.
-- Location = set the position of the boot Record; mbr: default value; partition: Install the boot loader in a partition containing the kernel, and none: do not install the boot loder.
Example:
Bootloader -- location = mbr -- append = "rhgb quiet" -- driveorder = sda, sdb

Clearpart (optional)
Clear the original Partition Table on the system before creating a new partition. partitions are not deleted by default;
-- All erased all original partitions on the system;
-- Drives: delete partitions on a specified drive
-- Initlabel: Initialize the disk volume as the default volume label of the system architecture.
-- In linux, all linux partitions are erased.
-- None (default) does not remove any partitions
Example:
Clearpart -- drives = hda, hdb -- all -- initlabel

Zerombr (optional)
Clear the mbr information. The system uses the original partition table.

Drivedisk (optional)
If you use a special storage method, you need to specify the location of the driver disk to load the storage driver;
1. Copy the drive disk to the root directory of a partition on the local hard disk:
Drivedisk <partition> [-- type = <fstype>]
2. You can also specify a network location to load the driver disk.
Drivedisk -- source = ftp: // path/to/drive. img
Drivedisk -- source = http: // path/to/drive. img
Drivedisk -- source = nfs: host: // path/to/drive. img

Firewall (optional)
Configure system firewall options;
Firewall-enable | -- disable [-- trust] <device> [-- port =]
-- Enable rejects any external active connections;
-- Disable does not configure any iptables defense rules;
-- Trust indicates that the network card device is fully trusted;
-- Port uses the port: protocol format to specify services that can pass the firewall;
Example:
Firewall -- enable -- trust eth0 -- trust eth1 -- port = 80: tcp

Selinux (optional)
Sets the system selinux status. The default value is enable and in enforcing mode;
Selinux [-- disabled |-enforcing | -- premissive]

Reboot (optional)
After the system is successfully installed, the system is automatically restarted by default (when the kickstart method is used). After receiving the prompt that you dare to install the system, you will be prompted to press any key to restart;
If other methods are not explicitly specified in this document, the reboot mode is used by default;
Using the reboot option may lead to an endless installation cycle, depending on the installation media and methods. Special attention;

Halt (optional)
Shut down after the system is successfully installed. The default value is reboot;
Other options include shutdown and poweroff. For more information, see the official documentation.

Graphical (optional)
Default Value: Install kickstart in graphic mode;

Text (optional)
Kickstart installation in text mode; graphical interface by default

Key (optional)
Set an installation code (installration number) to obtain the RedHat official support service;
-- Skip skips the key setting and does not set it. If it is not set, it may jump to the interactive mode to allow users to select actions;

Keyboard (required)
Set the keyboard type, which is generally set to us;

Lang (required)
Set the language used during installation and the default language of the system. Some languages (Chinese, Korean...) may not be supported during text installation ...), therefore, it may still be installed in the default English format. The default is en_us. When Chinese is installed, the Chinese support component must be installed in the later part of % packages;
Example:
Lang en_US
 
Timezone (optional)
Set the system time zone;
Timezone [-- utc] <timezone>
Example:
Timezone -- utc Asia/Shanghai

Auth/authconfig (required)
Sets the system authentication method. The default value is encryption but not hidden (shadow );
-- Enablemd5 uses MD5 Encryption
-- Useshadow or-enableshadow use the hidden password;
-- Enablenis = Using NIS Authentication
-- Nisdomain = NIS domain
-- Nisserver = NIS Server
You can also set LDAP, SMB, and Kerberos 5 authentication methods. For details, see the official documentation;
Example:
Authconfig -- useshadow -- enablemd5

Rootpw (required)
Set the password of the system root account;
Rootpw [-- iscrypted] <passwd>
-- Iscrypted indicates that the Set password is an encrypted string;
Example:
Rootpw pa4word
Rootpw -- iscrypted $1 $ RPYyxobb $/LtxMNLJC7euEARg2Vu2s1

Network (optional)
Configure network information. This parameter must be specified during network installation (NFS/HTTP/FTP;
-- Bootproto = dhcp | bootp | static specifies the ip address acquisition method. The default value is dhcp/bootp;
-- Device = enable the NIC device for system installation during installation. this parameter is only valid when the kickstart file is a local file. If the kickstart configuration file is on the network, the installer first initializes the NIC and then looks for the kickstart file;
-- Ip = ip settings
-- Gateway = gateway
-- Nameserver = DNS settings
-- No DNS is set
-- Netmask = mask
-- Hostname = set the host name after installation
-- Onboot = set whether to activate the NIC at system startup
-- Class = set the class value of DHCP
-- Noipv4: Disable the ipv4 function of the device.
-- Noipv6: Disable the ipv6 function of the device.
If you set the network mode to static mode, you must write the ip address, netmask, dns, gateway, and other information in one line;
Example:
Network-bootproto = static-ip = 1.1.1.1 -- metmask = 255.0.0.0 -- gateway = 1.1.1.254 -- nameserver = 1.1.1.2
Netmask -- bootproto = dhcp -- device = eth0

Skipx (optional)
If this option exists, system X is not set;

Xconfig (optional)
Configure X window. If no option is provided, You need to manually adjust the settings during the installation process. Of course, this option should not be added when X is not installed;
-- Driver: set X driver for the video card
-- Videoram = sets the RAM size of the video card.
-- Defaultdesktop = set GNOME/KDE as the default desktop. Assume that the two desktop environments have been installed in % packages.
-- Startxonboot
-- Resolution = set the resolution of the graphic interface. The available values include 640*480, 800*600, and 1024*768. Ensure that the setting is suitable for the display card and display;
-- Depth = set the display color depth. The available value is 8/16/24/32. Make sure that the set value is suitable for the display device;
Example:
Xconfig -- startxonboot -- resolution = 800*600 -- depth = 16

Services (optional)
Sets the disabled or allowed listed services;
-- Disabled: Set the service to disabled
-- Enabled
Example:
Services -- disabled autid, cups, smartd, and nfslock services are separated by commas (,). spaces are not allowed.

Iscsi (optional)
Specify an additional ISCSI Device;
Issci -- ipaddr = ipaddr [options].
-- Target
-- Port =
-- User =
-- Password =

Part/partition (required in install Mode)
Create a new partition;
Part <mntpoint> | swap | pv. id | rdid. id options
Mntpoint: Specifies the Mount position of the new partition when creating a common partition. The mount point must be in the correct format.
Swap: Create a swap partition;
Raid. id: indicates that the created partition type is raid. The id must be unique;
Pv. id: indicates that the created partition type is LVM. The unique id number must be used for the difference;
-- Size = sets the minimum value of the partition. The default unit is M, but the unit cannot be written;
-- Grow enables the partitions to automatically grow and use available disk space, or increase to the set maxsize value;
-- Maxsize sets the maximum capacity value for automatic partition growth (grow). The Unit is M, but the unit cannot be written;
-- Onpart =/-- usepart = set to use the original partition;
-- The noformat setting does not format the specified partition. When used with-onpart, you can avoid deleting the data on the original partition and retain the data used in the newly installed system;
-- Asprimary enforces that the partition is the primary partition. If the specified partition fails, the partition will fail and the installation will stop;
-- Fstype = specifies the partition type when a common partition is added. It can be ext2, ext3, ext4, swap, vfat, or hfs;
-- Ondisk =/-- ondrive = sets the partition to be created on a specific disk;
-- Start indicates that the partition starts with the track on the disk. It must be used with the -- ondisk parameter;
-- End specifies that the partition ends with the track on the disk. It must be used with the preceding two parameters;
-- Recommended: allows the system to determine the partition size. When creating a swap partition, if RAM is <2G, the partition size is 2 * RAM; If RAM is> = 2G, the partition size is RAM + 2G;
-- Bytes-pre-inode = specifies the inode size when the partition is formatted. The default value is 4096.
-- Fsoptions = specifies the parameter item for mounting the partition when the fstab file is created;
Example:
Part/boot -- fstype = "ext3" -- size = 100
Part swap -- fstype = "swap"-size = 512
Part/-- bytes-pre-inode = 4096 -- fstype = "ext4" -- size = 10000
Part/data -- onpart =/dev/sdb1 -- noformat
Part raid.100 -- size = 2000
Part pv.100 -- size = 1000

Raid (optional)
Configure RAID.
Raid mount point -- level = <level> -- device = <mddevices_name> <raid partitioning>
Mount point: when selecting the root/, try to avoid/boot in RAID, unless it is RAID 1;
-- Level = set the RAID level
-- Device = RAID device name, such as md0, md1...
-- Byte-pre-inode = sets the inode size on the RAID partition. If the partition file system type does not support this parameter, the parameter is silently ignored;
-- Spares = set a RAID hot spare Disk
-- Fstype = set the file system type
-- Fsoptions = set custom parameters when mounting the file system. The parameters are written to the fstab file;
-- Useexisting: use an existing RAID device and reformat the original device.
-- Noformat: Do not format the original RAID device when using an existing RAID device
Example: create a complete RAID1 device example;
Part raid.10 -- size = 1000 -- ondisk =/dev/sdb
Part raid.11 -- size = 1000 -- ondisk =/dev/sdc
Raid/data -- level = 1 -- device = md0 raid.10 raid.11

Volgroup (optional)
Create an LVM volume group VG;
Volgroup vg_name partition [options]
-- Useexiting use the existing VG and format it again
-- Do not format the existing VG when noformat is used.
-- Pesize: Set the PE (physical extents) block size.
Example:
Part pv.11 -- size = 2000
Volgroup myvg pv.11

Logvol (optional)
Create an LVM logical Volume LV;
Logvel mnt_point -- vgname = vg_name -- size = lv_size -- name = lv_name [options]
-- Useexiting use existing LV and format it again
-- Do not format the existing LV when noformat is used.
-- Fstype = specifies the RAID partition type
-- Fsoptions = set custom parameters when mounting the file system. The parameters are written to the fstab file;
-- Byte-pre-inode = sets the inode size on the RAID partition;
-- Precent = set the ratio of LV size to the available space of VG;
Example:
Part pv.20 -- size = 5000
Volgroup mvvg pv.20
Logvol/data -- vgname = myvg -- size = 3000 -- name = mydata

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.