kickstart 大量无人值守安装

简介:

kickstart 大量无人值守安装
1.从5.0开始,redhat linux就支持kick start的功能。所谓kickstart 就是将安装过程的信息实现记录在文件中,然后利用安装磁盘或光盘进行安装。在redhat上有一个kickstart配置程序在GUI上输入ksconfig即可配置。
一般安装好系统,在/root目录下有一个重命名为ks.cfg直接使用即可。

kickstart 安装方式有
1.cdrom  linux ks=cdrom:/ks.cfg
2. NFS linux ks=nfs:servername:/path/to/ks.cfg
3.HTTP linux ks=http://server/path/ks.cfg
4.FTP linux ks=ftp://server/path/ks.cfg
5.floppy linux ks=floppy

下面是本人的kickstart文件for centos5.5
# Kickstart file automatically generated by anaconda.

install
url --url  http://mirrors.163.com/centos/5.5/os/i386
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto static --ip 192.168.xx.165 --netmask 255.255.255.0 --gateway 192.168.xx.254 --nameserver 202.101.172.35 --hostname centos5
network --device eth1 --bootproto static --ip 192.168.1.1 --netmask 255.255.255.0 --gateway 192.168.10.254 --nameserver 202.101.172.35 --hostname centos5
rootpw --iscrypted $1$q8gSgEoV$9j13h5dDOgRU8Q5oxq7eN/
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone Asia/Shanghai
bootloader --location=mbr --driveorder=hda --md5pass=$1$tKzODmK9$PZ8bNvX.jFnK9FECIgNf.1
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --linux
#part /boot --fstype ext3 --size=100
#part swap --size=512
#part / --fstype ext3 --size=1 --grow

%packages
@base
@core
keyutils
trousers
fipscheck
device-mapper-multipath

以上参数自己可以修改,也可以用ksconfig来配置kickstart文件,也可以装一台机器配置好,在root下有这个文件改名即可。

引导介质引导之后linux ks=即可



本文转自zh888 51CTO博客,原文链接:http://blog.51cto.com/zh888/382130,如需转载请自行联系原作者


相关文章
|
存储 网络协议 Linux
搭建PXE实现Kickstart无人值守安装(一)
1、搭建PXE远程安装服务器 2、实现kicstart无人值守安装
搭建PXE实现Kickstart无人值守安装(一)
|
安全 Linux 网络安全
搭建PXE实现Kickstart无人值守安装(二)
1、搭建PXE远程安装服务器 2、实现kicstart无人值守安装
搭建PXE实现Kickstart无人值守安装(二)
|
Linux 网络安全 开发工具
cobbler 无人值守-安装
环境准备 准备两台主机,如centos6和centos7 centos7当作server服务器 关闭selinux 关闭防火墙 安装 cobbler包光盘里是没有的,要配置epel源,这里就说怎么配置epel源了,在yum.
1185 0
|
Web App开发 Linux
|
数据安全/隐私保护