需要修改2個地方 server_args = -u nobody -s /tftpboot
- service tftp
- {
- disable = no
- socket_type = dgram
- protocol = udp
- wait = yes
- user = root
- server = /usr/sbin/in.tftpd
- server_args = -u nobody -s /tftpboot
- per_source = 11
- cps = 100 2
- flags
= IPv4 - }
設置timeout 10 /*超時時間為10S */ 3.生成ks.cfg安裝配置文件 #yum install system-config-kickstart #system-config-kickstart 圖片太多,省略,參考下面的配置文件 :) #cp /root/ks.cfg /disk/ #vim /disk/ks.cfg
- default linux
- prompt 1
- timeout 10
- display boot.msg
- F1 boot.msg
- F2 options.msg
- F3 general.msg
- F4 param.msg
- F5 rescue.msg
- label linux
- kernel vmlinuz
- append ks=nfs:10.80.11.206:/disk/ks.cfg initrdinitrd=initrd.img
- label text
- kernel vmlinuz
- append initrdinitrd=initrd.img text
- label ks
- kernel vmlinuz
- append ks initrdinitrd=initrd.img
- label local
- localboot 1
- label memtest86
- kernel memtest
- append –
該文件如果從上面kickstart生成,不需要修改
- #platform=x86
, AMD64, or 英特爾 EM64T - # System authorization information
- auth --useshadow --enablemd5
- #Skip Installation Number
key --skip- # System bootloader configuration
- bootloader --location=mbr
- # Clear the Master Boot Record
- zerombr
- # Partition clearing information
- clearpart --all --initlabel
- # Use text mode install
- text
- # Firewall configuration
- firewall --disabled
- # Run the Setup Agent on first boot
- firstboot --disable
- # System keyboard
- keyboard us
- # System language
- lang en_US
- # Installation logging level
- logging --level=info
- # Use NFS installation media
- nfs --server=10.80.11.206 --dir=/disk
- # Network information
- network --bootproto=dhcp --device=eth0 --onboot=on
- # Reboot after installation
- reboot
- #Root password
- rootpw --iscrypted $1$LnetDcQO$MA84zAEokdi/GCEElcqI20
- # SELinux configuration
- selinux --disabled
- # System timezone
- timezone Asia/Shanghai
- # Install OS instead of upgrade
- install
- # X Window System configuration information
- xconfig --defaultdesktop=GNOME --depth=32 --resolution=1024x768 --startxonboot
- # Disk partitioning information
- part /boot --bytes-per-inode=4096 --fstype="ext3" --size=100
- part swap --bytes-per-inode=4096 --fstype="swap" --size=4000
- part / --bytes-per-inode=4096 --fstype="ext3" --grow --size=1
- %packages
- @dialup
- @base
- @gnome-desktop
- @development-tools
- @chinese-support
- @base-x
- @admin-tools
- @legacy-software-development
- @legacy-software-support
- @editors
- @java
[火星人 ] KickStart DHCP NFS TFTP PXE全自動網路安裝Linux已經有687次圍觀