日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

RHEL系统网络安装(kikstart)

發(fā)布時間:2024/4/11 windows 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 RHEL系统网络安装(kikstart) 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

???? 在批量安裝相同配置的LINUX服務器系統(tǒng)時,可以借助GHOST、再生龍、kikstart等工具通過網(wǎng)絡來進行批量安裝。本文主要講配置紅帽5系(包含RHEL5.1-5.5及CentOS5.1-5.5)操作系統(tǒng)kikstart網(wǎng)絡安裝服務器的步驟及配置文件。注:kikstart的服務器只能有一個正常使用的網(wǎng)絡(雙網(wǎng)卡機器請拔出一根不使用的網(wǎng)線),在kikstart的網(wǎng)絡中只能由該服務器提供DHCP

?1、???????????配置可用于網(wǎng)絡啟動的DHCP服務器

安裝包:dhcpd

編譯配置文件:vi /etc/dhcpd.conf

配置范例:

ddns-update-style interim;

ignore client-updates;

allow booting;

allow bootp;

class "pxeclients"{

???????match if substring(optionvendor-class-identifier,0,9) = "PXEClient";

???????filename "pxelinux.0";

???????next-server 192.168.1.170;????????????????????? #TFTP服務器的IP。

}

subnet 192.168.1.0 netmask 255.255.255.0 {

???????option routers 192.168.1.251;?????? ??????????????????? #網(wǎng)關

???????option subnet-mask 255.255.255.0;?????????????? #子網(wǎng)掩碼。

???????option nis-domain "xt.cn";????????????????????? #NIS域。

???????option domain-name "xt.cn";??????????????????? #域。

???????option domain-name-servers 61.139.2.69;????????? #DNS服務器。

???????option time-offset -18000;

???????range dynamic-bootp 192.168.1.128 192.168.1.254;? #DHCP可分配的IP地址池。

???????default-lease-time 21600;

???????max-lease-time 43200;

}

?

?????? 開啟DHCP服務并設為開機自動啟動:

service dhcpd restart

chkconfig dhcpd on

?????? 注:可通過servicedhcpd configtest命令查看DHCP配置是否有錯。

?

2、???????????配置用于文件傳輸?shù)腡FTP服務器

安裝包:tftp

開啟服務并設為開機自動啟動:

chkconfig tftp on

service xinetd restart

?????? 拷貝相關啟動文件:

cp /usr/lib/syslinux/pxelinux.0 /tftpboot/

mkdir /tftpboot/pxelinux.cfg

mount -o loop RHEL5dvd.iso/mnt

cp /mnt/isolinux/isolinux.cfg/tftpboot/pxelinux.cfg/default

cp /mnt/p_w_picpaths/pxeboot/initrd.img/tftpboot/

cp /mnt/p_w_picpaths/pxeboot/vmlinuz /tftpboot/

cp /mnt/isolinux/*.msg /tftpboot

編輯默認啟動文件:vi/tftpboot/pxelinux.cfg/default

default local

prompt 1

timeout 600

display boot.msg

F1 boot.msg

。。。。。。。。。。

label memtest86

kernel memtest

append -

label autorhel

kernel vmlinuz

append ks=nfs:192.168.1.170:/export/ks/autorhel.cfg initrd=initrd.img

?????? 編輯啟動菜單:vi/tftpboot/boot.msg

^L

^Xsplash.lss

- To install or upgrade in graphical mode,press the ^O01<ENTER>^O07key.

- To install or upgrade in text mode, type:^O01linux text <ENTER>^O07.

- To install or upgrade ,type: ^O01autorhel <ENTER>^O07.

- Use the function keys listed below formore information.

^O0f[F1-Main][F2-Options] [F3-General] [F4-Kernel] [F5-Rescue]^O07

?

注:上邊3個綠色的“autorhel”必須統(tǒng)一,并且安裝鏡像(ISO文件)也必須更名為autorhel”。

?

3、???????????配置用于共享安裝腳本的NFS服務器

編輯配置文件:vi /etc/exports

配置范例:/export *(ro,sync)

配置完過后拷貝安裝介質(zhì)(ISO文件)到/export/文件夾內(nèi),并重命名為autorhel。

注:/export/文件夾內(nèi)的所有內(nèi)容推薦開啟777的權限。(chmod 777 *

開啟和設置自啟動:

chkconfig nfs on

service nfs restart

?

4、???????????配置用于確定安裝參數(shù)的kickstart文件

Kikstart配置文件確定了操作系統(tǒng)安裝的各項參數(shù),如軟件包的選擇、安全設置、分區(qū)、密碼等,可以通過system-config-kickstart命令開啟圖形化配置界面,也可以將/root/ anaconda.cfg文件根據(jù)需要修改并重命名為autorhel.cfg并拷貝到/export/ks/文件夾內(nèi),最后直接vi/export/ks/autorhel.cfg并將下文去掉中文注釋拷貝進去然后保存。

配置范例(紅帽5.4 x64無序列號安裝并選擇所有包):

install

nfs --server=192.168.1.170--dir=/export?? #設置NFS服務器IP地址和目錄。

lang en_US.UTF-8

keyboard us

key --skip

network --device eth0 --bootproto dhcp

xconfig --startxonboot

firewall --disabled

rootpw --iscrypted $1$NoTGnoGk$gryS4OSJRY2uWrG4.XZCp1? #設置root密碼為111111,該效驗碼由紅帽生成,并含有部分軟件版本信息。

selinux --disabled

authconfig --enableshadow --enablemd5

timezone Asia/Shanghai

bootloader --location=mbr

clearpart --all

part /boot ?--fstype="ext3" --size=100?? ?#設置boot分區(qū)大小為100M。

part / ?--fstype="ext3" --size=100 --grow? #設置/分區(qū)大小為100M以上,根據(jù)剩余空間分配。

part swap ?--fstype="swap" --size=1024 ??#設置swap1024M。在分區(qū)部分由于涉及到單位換算(1G=1024M)的問題,所以請適當分區(qū)!

reboot

%packages

@admin-tools

@base

@chinese-support

@core

@development-libs

@development-tools

@dialup

@editors

@gnome-desktop

@gnome-software-development

@graphical-internet

@graphics

@legacy-software-support

@office

@printing

@text-internet

@web-server

@x-software-development

@base-x

kexec-tools

fipscheck

device-mapper-multipath

sgpio

imake

emacs

libsane-hpaio

mesa-libGLU-devel

xorg-x11-utils

xorg-x11-server-Xnest

xorg-x11-server-Xvfb

?

5、總結:

Kikstart網(wǎng)絡安裝服務器能快速方便的部署相同配置的多臺服務器。由于是一種通過網(wǎng)絡安裝操作系統(tǒng)的過程,需要重起服務器進入PXE網(wǎng)卡啟動,然后輸入autorhel這個選項并回車,最后還需要確認一下刪除硬盤以前所有的數(shù)據(jù)。Kikstart安裝的更多問題可以直接電話或QQ咨詢本人。同時,有需要的朋友可以直接找我定制相應的kikstart文件。


?

轉(zhuǎn)載于:https://blog.51cto.com/sclijq/1060171

總結

以上是生活随笔為你收集整理的RHEL系统网络安装(kikstart)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。