安裝環境rhel6u4_x86_64: dhcp + tftp + nfs
詳細:/var/lib/tftp/pxelinux.cfg/default
DEFAULT menu.c32
PROMPT 0
LABEL linux
MENU LABEL ^Linux Installation
KERNEL p_w_picpaths/vmlinuz_rhel6u4_x64
APPEND initrd=p_w_picpaths/initrd_rhel6u4_x64.img install=http://192.168.1.101/iso/redhat/x86_64/rhel6u4/rhel-server-6.4-x86_64-dvd.iso #能過網引導方式,到達啓動處就不能自動讀取鏡像,需要手工輸入.
#APPEND ks initrd=p_w_picpaths/initrd_rhel6u4_x64.img ks=http://paylm-vm-rh6:8080/ks.cfg
LABEL linux
MENU LABEL ^Linux rhel6u4_x64 Install
KERNEL p_w_picpaths/vmlinuz_rhel6u4_x64
APPEND load_ramdisk=8192 initrd=p_w_picpaths/initrd_rhel6u4_x64.img lang=en_US keymap=us ip=dhcp repo=nfs:192.168.1.101:/var/ftp/iso ## 實現在自動化跳過載入"Install device "鏡像的位置 ,要注意最後幾個能數的位置 , iso的位置寫在最後
### redhat6u4 resecue
LABEL linux
MENU LABEL ^Linux rhel6u4_x64 Rescue
KERNEL p_w_picpaths/vmlinuz_rhel6u4_x64 rescue ##進入救援模式
APPEND load_ramdisk=8192 initrd=p_w_picpaths/initrd_rhel6u4_x64.img ks=ftp://192.168.1.101/ks/rhel6u4_x64_ks.cfg #指定ks.cfg的位置 , 讀取配置信息
ks.cfg 的內容:
lang en_US.UTF-8
keyboard us
network --onboot no --device eth0 --bootproto dhcp --noipv6
nfs --server=192.168.1.101 --dir=/var/ftp/iso
如果ISO的位置在http: 則寫成: http --server=192.168.1.101 --dir=/iso/redhat/x86_64/rhel6u4/rhel-server-6.4-x86_64-dvd.iso"
還有注意問題:
redhat 6 在做pxe boot的時候,要把iso鏡像中的p_w_picpaths複製出到與ISO同一個目錄中
這樣在引導的時候才能正引mount 到鏡像文件
redhat5以下不需要