Cobbler kickstart parameter description

Source: Internet
Author: User
Tags syslog nameserver

In the process of using cobbler, generating a kickstart script is a key task. To better understand the parameters in the script, I have summarized them based on my actual operation experience.

1. configure a dedicated KS configuration file, such as:/var/lib/cobbler/kickstarts/rhel6u2-x64.cfg

Language:

Lang zh_CN.UTF-8


Set the time zone:

Timezone Asia/Shanghai


Set the installation image: (default: URL -- url = $ tree menu)

URL -- url = http: // 192.168.8.140/cobbler/ks_mirror/rhel6.2-x86_64

Image Location:/var/www/cobbler/ks_mirror/rhel6.2-x86_64

Disk Partition:

Part/boot -- fstype ext3 -- size = 100

Part swap -- size = 2048

Part/-- fstype ext3 -- size = 10000



Disable firewall and SELinux:

Firewall -- disabled

SELinux -- disabled


Set the root password:

Rootpw 123456


Set network parameters and host names:

Echo "Networking = yes">/etc/sysconfig/Network

Echo "networking_ipv6 = No">/etc/sysconfig/Network

Echo "hostname = yuweibo">/etc/sysconfig/Network

Echo "Gateway = 192.168.1.1">/etc/sysconfig/Network


Set DNS:

Echo "nameserver 61.139.2.69">/etc/resolv. conf

Echo "nameserver 192.168.8.2">/etc/resolv. conf


To enable the startup service, only crond, sshd, syslog, and network services are enabled:

For service in 'chkconfig -- list | awk '{print $1}' | egrep-V "^ $" | awk-F ":" '{print $1 }''; do chkconfig $ service off; done

For service in crond sshd syslog network; do chkconfig $ service on; done


Set the bulletin board information:

Echo "this is Linux">/etc/motd


2. Specify the KS file corresponding to the profile (or directly configure it on the Web interface ):

Cobbler profile edit -- name = rhel6.2-x86_64 -- kickstart =/var/lib/cobbler/kickstarts/rhel6u2-x64.cfg


3. Configure the system and bind the MAC address for installation: (or directly configure it on the Web)

Cobbler system add -- name = centos6.3-i386 -- MAC = 00: 0C: 29: A0: 26: 7f -- IP-address = 192.168.1.30 -- subnet = 255.255.255.0 -- gateway = 192.168.1.1 -- interface = eth0 -- Static = 1 -- DNS-name = 202.106.0.20 -- profile = rhel6.2-x86_64


This article is from the "yuweiing technology blog" blog, please be sure to keep this source http://yuweibing.blog.51cto.com/3879355/1875463

Cobbler kickstart parameter description

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.