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

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > linux >内容正文

linux

star-cd linux安装,linux 使用PXE方式,kickstar网络安装系统

發(fā)布時間:2023/12/2 linux 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 star-cd linux安装,linux 使用PXE方式,kickstar网络安装系统 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

軟件需求:(可使用yum方式安裝)

0.DHCP服務(wù)

1.xinet

2.kickstar包

3.tftp

4.vsftpd

5.啟動文件、系統(tǒng)內(nèi)核文件、系統(tǒng)鏡像

[root@test ~]# cd /var/lib/tftpboot/ #拷貝相關(guān)文件到tftp目錄

[root@test tftpboot]# ll

總用量 34168

-r--r--r-- 1 root root 84 10月 25 14:40 boot.msg

-r--r--r-- 1 root root 29608959 10月 25 14:40 initrd.img

-rw-r--r-- 1 root root 26828 10月 25 11:17 pxelinux.0

drwxr-xr-x 2 root root 4096 10月 25 14:23 pxelinux.cfg

-r--r--r-- 1 root root 1236005 10月 25 14:40 splash.jpg

-r--r--r-- 1 root root 162860 10月 25 14:40 vesamenu.c32

-r-xr-xr-x 1 root root 3938800 10月 25 14:40 vmlinuz

chmod 755 /var/ftp/ks.cfg #此文件權(quán)限設(shè)置為755

在linux圖形界面啟動kickstar,定制應(yīng)答文件.命令如下

#system-config-kickstart

kf.cfg由kickstar定制生成的,存放在ftp目錄下

kf.cfg配置文件

[root@test pub]# cat ks.cfg

key --skip 在此處添加跳過輸入序列號指令

[root@test tftpboot]# cd pxelinux.cfg/

[root@test pxelinux.cfg]# ll

總用量 4

-rwxr-xr-x 1 root root 999 10月 25 14:23 default

[root@test pxelinux.cfg]#

[root@test pxelinux.cfg]# ^C

[root@test pxelinux.cfg]# cat default #啟動加載程序后安裝菜單配置文件

default vesamenu.c32

#prompt 1

timeout 6 選擇菜單時間

display boot.msg

menu background splash.jpg

menu title Welcome to Red Hat Enterprise Linux 6.2!

menu color border 0 #ffffffff #00000000

menu color sel 7 #ffffffff #ff000000

menu color title 0 #ffffffff #00000000

menu color tabmsg 0 #ffffffff #00000000

menu color unsel 0 #ffffffff #00000000

menu color hotsel 0 #ff000000 #ffffffff

menu color hotkey 7 #ffffffff #ff000000

menu color scrollbar 0 #ffffffff #00000000

label linux

menu label ^Install or upgrade an existing system

menu default

kernel vmlinuz

append ks=ftp://10.15.62.186/pub/ks.cfg ksdevice=eth0 initrd=initrd.img #ks.cfg 位置

label vesa

menu label Install system with ^basic video driver

kernel vmlinuz

append initrd=initrd.img xdriver=vesa nomodeset

label rescue

menu label ^Rescue installed system

kernel vmlinuz

append initrd=initrd.img rescue

label local

menu label Boot from ^local drive

localboot 0xffff

label memtest86

menu label ^Memory test

kernel memtest

append -

[root@test pxelinux.cfg]#

cd /var/ftp/pub/ #此FTP目錄,存放linux系統(tǒng)鏡像iso文件

[root@test pub]# cat /etc/dhcp/dhcpd.conf #dhcpd.conf具體設(shè)置

ddns-update-style interim;

ignore client-updates;

allow booting;

allow bootp;

subnet 10.15.62.0 netmask 255.255.255.0 {

range dynamic-bootp 10.15.62.100 10.15.62.250;

}

option subnet-mask 255.255.255.0;

option broadcast-address 10.15.62.255;

default-lease-time 21600;

max-lease-time 43200;

Next-server 10.15.62.186;

Filename "pxelinux.0"; #pxe客戶端獲取ip后,找的啟動加載文件pxelinux.0

[root@test pub]#

重啟相關(guān)服務(wù)

#service vsftpd restart

#service xinetd restart

#service dhcpd restart

總結(jié)

以上是生活随笔為你收集整理的star-cd linux安装,linux 使用PXE方式,kickstar网络安装系统的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

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