star-cd linux安装,linux 使用PXE方式,kickstar网络安装系统
軟件需求:(可使用yum方式安裝)
0.DHCP服務
1.xinet
2.kickstar包
3.tftp
4.vsftpd
5.啟動文件、系統內核文件、系統鏡像
[root@test ~]# cd /var/lib/tftpboot/ #拷貝相關文件到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 #此文件權限設置為755
在linux圖形界面啟動kickstar,定制應答文件.命令如下
#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系統鏡像iso文件
[root@test pub]# cat /etc/dhcp/dhcpd.conf #dhcpd.conf具體設置
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]#
重啟相關服務
#service vsftpd restart
#service xinetd restart
#service dhcpd restart
總結
以上是生活随笔為你收集整理的star-cd linux安装,linux 使用PXE方式,kickstar网络安装系统的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 快车凌晨四点可以叫的到吗(快车linux
- 下一篇: 游戏审批备案号怎么弄(备案号怎么弄)