Automation Installation Process of RHEL via Kickstart File

文/一觉亮天

Acronym and Abbr

OS - Operation System

RHEL - Red Hat Enterprise Linux

HTTP - Hyper Text Transfer Protocol

FTP - File Transfer Protocol

ISO - International Standard Organization, also sometimes stands for a kind of disk image format.

NFS - Net File System

 

What is kickstart file?

Normally, we choose specific options and press next button once and again during installing OS. In RHEL, we can automate the process using kickstart file.

 

In kickstart file, we can customize options and pre-installed packages. Once we have a kickstart file, we can install OS with the same config and tailored packages easily.

 

How to generate kickstart file?

Kickstart file will be generated automatically when you install the OS manually. You can tailor your OS manually so as to get a kickstart file. You can also edit the kickstart file through a plain text editor. The grammar is simple.

 

How to use kickstart file?

Take RHEL 5.5 as an example. Insert RHEL5.5 ISO to cdrom and config cdrom as the first boot device and restart the system. When I made the image of RHEL5.5, I put kickstart file in the root directory using UltraISO. You can put kickstart file in a HTTP or FTP or NFS server.  A boot prompt will show and waiting your instructions, such as kernel parameters. If you input nothing, the manual installation process will start in a moment.

 

Here, you can specify the kickstart file. Kickstart file can locate in HTTP Server, FTP server, NFS, cdrom, etc.  Please refer to 3 ways to locate kickstart file followed, including cdrom, NFS and HTTP.

 

boot: linux ks=cdrom:/ks-file.cfg

ks=nfs:server.example.com:/mydir/ks.cfg.

ks=http://<server>/<path>

 

By these means, the installation process will proceed complying with the kickstart file.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值