kickstart 大量無人值守安裝

2021-09-21 21:47:08 字數 1723 閱讀 4436

kickstart 大量無人值守安裝

1.從5.0開始,redhat linux就支援kick start的功能。所謂kickstart 就是將安裝過程的資訊實現記錄在檔案中,然後利用安裝磁碟或光碟進行安裝。在redhat上有乙個kickstart配置程式在gui上輸入ksconfig即可配置。

一般安裝好系統,在/root目錄下有乙個重新命名為ks.cfg直接使用即可。

kickstart 安裝方式有

下面是本人的kickstart檔案for centos5.5

# kickstart file automatically generated by anaconda.

install

url --url  

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

以上引數自己可以修改,也可以用ksconfig來配置kickstart檔案,也可以裝一台機器配置好,在root下有這個檔案改名即可。

引導介質引導之後linux ks=即可

Kickstart 無人值守安裝

安裝後指令碼 儲存自動應答檔案 配置需要安裝的軟體包 編輯引導選單檔案 default,新增 ks 引導引數 驗證無人值守安裝 最後重啟即可 kickstart是乙個定義了linux安裝過程的配置檔案,比如要在系統中使用的時區 如何對驅動器進行分割槽 或者應該安裝哪些軟體包。有了這個檔案可以解放雙手...

搭建Kickstart無人值守(紅帽7)

1.安裝服務 五個服務 2.配置dhcp vim etc dhcp dhcpd.conf 多新增兩行 subnet 192.168.100.0 netmask 255.255.255.0 systemctl restart dhcpd netstat antulp grep dhcp 3.配置tft...

PXE和無人值守kickstart裝機

2.搭建tftp服務 tftp 簡單的檔案傳輸協議 預設埠 69 預設共享資料的路徑 var lib tftpboot root svr7 yum install y tftp server root svr7 systemctl restart tftp 4.部署選單檔案 root svr7 mk...