linux安裝配置kickstart-創(chuàng)新互聯(lián)

1、

創(chuàng)新互聯(lián)堅(jiān)持“要么做到,要么別承諾”的工作理念,服務(wù)領(lǐng)域包括:成都網(wǎng)站制作、做網(wǎng)站、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣等服務(wù),滿足客戶于互聯(lián)網(wǎng)時(shí)代的新邵網(wǎng)站設(shè)計(jì)、移動媒體設(shè)計(jì)的需求,幫助企業(yè)找到有效的互聯(lián)網(wǎng)解決方案。努力成為您成熟可靠的網(wǎng)絡(luò)建設(shè)合作伙伴!安裝配置kickstart
要使用kickstrt安裝平臺,包括的完整架構(gòu)為:Kickstart + DHCP+ NFS+TFTP+PXE,從架構(gòu)可以看出
大致需要安裝的服務(wù),例如dbcp、tftp、nfs、kickstart/pxe等
掛在鏡像
mount /dev/cdrom /mnt
df -h
1)DHCP、Tftp安裝
yum install -y dhcp* tftp* syslinux
首先配置tftp服務(wù):
vi /etc/xinetd.d/tftp
disable                 = no
只需要把disable=yes 改成disbale=no即可
2)TFTP +PXE配置
要實(shí)現(xiàn)遠(yuǎn)程安裝系統(tǒng),首先需要在TFTpboot目錄指定相關(guān)PXE內(nèi)核模塊以及相關(guān)參數(shù),
配置步驟如下:
#如果系統(tǒng)是5.X,默認(rèn)tftpboot目錄已經(jīng)自動創(chuàng)建到/根目錄下
#如果系統(tǒng)是6.X,默認(rèn)tftpboot目錄在/var/lib/下,所以linux 6.x需要做軟鏈接/根目錄下。
查看/根下是否有/tftpboot目錄,如果沒有需要做軟鏈接
ln -s /var/lib/tftpboot/ /
cd /tftpboot/
find / -name pxelinux.0
cp /usr/share/syslinux/pxelinux.0 ./
cp /mnt/images/pxeboot/{initrd.img,vmlinuz} ./
將所有內(nèi)容拷貝內(nèi)核到/tftpboot目錄下
mkdir -p /tftpboot/pxelinux.cfg
cd /tftpboot/pxelinux.cfg
cp /mnt/isolinux/isolinux.cfg default
chmod 777 /tftpboot/pxelinux.cfg/default
vi /tftpboot/pxelinux.cfg/default
添加如下:
label Rehel6.5
kernel vmlinuz
append ks=nfs:192.168.56.77:/centosinstall/ks.cfg ksdevice=eth0 initrd=initrd.img
安裝nfs服務(wù)
yum install -y nfs*
用NFs或者h(yuǎn)ttpd把鏡像文件共享出來
mkdir -p /centosinstall
nohup cp -rf /mnt/* /centosinstall &
echo "/centosinstall  *(rw,sync)" >>/etc/exports
cd /centosinstall
vi ks.cfg
[root@localhost ~]# cat ks.cfg
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
key --skip
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
install
# Use NFS installation media
nfs --server=192.168.56.77 --dir=/centosinstall
# Root password
rootpw --iscrypted $1$9g6qXfWW$b3ofuFBbrusMKae5R5d6Z.
# System authorization information
auth  --useshadow  --passalgo=sha512
# Use text mode install
text
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# SELinux configuration
selinux --disabled
# Installation logging level
logging --level=info
# Reboot after installation
reboot
# System timezone
timezone  Asia/Shanghai
# Network information
network  --bootproto=dhcp --device=eth0 --onboot=on
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all
# Disk partitioning information
part swap --fstype="swap" --size=4096
part /boot --fstype="ext4" --size=200
part / --fstype="ext4" --grow --size=1
%packages
@admin-tools
@base
@core
@development-libs
@development-tools
@x11
%end
chmod 777 ks.cfg
或者使用yum install system-config-kickstart.noarch   終端中運(yùn)行system-config-kickstart命令 圖像界面生成ks.cfg文件
啟動nfs、tftp服務(wù)
service nfs restart
service xinetd restart
配置dhcp服務(wù)
yum install -y dbcp*
vi /etc/dhcp/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 192.168.56.0 netmask 255.255.255.0 {
option routers 192.168.56.1;
option subnet-mask 255.255.255.0;
range dynamic-bootp  192.168.56.88 192.168.56.200;
next-server 192.168.56.77;
filename "pxelinux.0";
allow booting;
allow bootp;
}
service dhcpd restart
創(chuàng)建客戶端client
輸入標(biāo)簽
Rehel6.5

分享題目:linux安裝配置kickstart-創(chuàng)新互聯(lián)
鏈接地址:http://bm7419.com/article0/ddjpio.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供電子商務(wù)、網(wǎng)站導(dǎo)航、網(wǎng)站排名云服務(wù)器、搜索引擎優(yōu)化、企業(yè)建站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)公司