[root@PXE html]# vi /var/www/html/ks.cfg install url --url http://172.16.3.27/RHEL/ lang en_US.UTF-8 langsupport --default=en_US.UTF-8 en_US.UTF-8 keyboard us xconfig --card "ATI Radeon 7000" --videoram 16384 --hsync 30-80 --vsync 60-75 --resolution 800x600 --depth 16 --startxonboot --defaultdesktop gnome network --device eth0 --bootproto static --ip XXX.XXX.XXX.XXX --netmask 255.255.255.128 --gateway XXX.XXX.XXX.XXX --nameserver XXX.XXX.XXX.XXX,XXX.XXX.XXX.XXX --hostname veritas5 network --device eth1 --bootproto static --ip XXX.XXX.XXX.XXX --netmask 255.255.255.0 --gateway XXX.XXX.XXX.XXX --nameserver XXX.XXX.XXX.XXX,XXX.XXX.XXX.XXX --hostname veritas5 ### Installation Method #url --url ftp://anonymous:anonymous@172.16.3.124/RHEL/ rootpw XXXXXXX firewall --disabled selinux --disabled authconfig --enableshadow --enablemd5 timezone America/New_York bootloader --location=mbr --append="rhgb quiet" ### Partitioning Information clearpart --all autopart # Whether to clear our the Master Boot Record (yes/no) zerombr yes # LILO or GRUB boot loader? #reboot after installation reboot ### Packages %packages @ admin-tools @ text-internet @ gnome-desktop @ dialup @ compat-arch-support @ smb-server @ base-x @ web-server @ printing @ server-cfg grub kernel-smp e2fsprogs lvm2 # Post Installation Instructions %post [root@PXE html]# cat /etc/dhcpd.conf # # DHCP Server Configuration file. # see /usr/share/doc/dhcp*/dhcpd.conf.sample ddns-update-style none; subnet 172.16.3.0 netmask 255.255.255.0 { range 172.16.3.130 172.16.3.136; filename "/linux-install/pxelinux.0"; next-server 172.16.3.27; } [root@PXE ~]# cat /etc/xinetd.d/tftp # default: off # description: The tftp server serves files using the trivial file transfer \ # protocol. The tftp protocol is often used to boot diskless \ # workstations, download configuration files to network-aware printers, \ # and to start the installation process for some operating systems. service tftp { socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /tftpboot disable = no per_source = 11 cps = 100 2 flags = IPv4 } CD-ROMを以下にマウント /var/www/html/RHEL mkdir -P /tftpboot/linux-install/pxelinux.cfg mkdir -P /tftpboot/linux-install/rh4 /tftpboot/linux-install/pxelinux.cfg/default default rh4 label rh4 kernel rh4/vmlinuz append ks=http://172.16.3.27/ks.cfg ksdevice=eth1 load initrd=rh4/initrd.img devfs=nomount cp /var/www/html/RHEL/images/pxeboot/initrd.img /tftpboot/linux-install/rh4/. cp cp /var/www/html/RHEL/images/pxeboot/vmlinuz /tftpboot/linux-install/rh4/. /etc/rc.d/init.d/xinetd start /etc/rc.d/init.d/dhcpd start /etc/rc.d/init.d/httpd start サーバーでPXEを有効して再起動。