I use VMware Workstation 10 & centos 6.4 system
I try to use PXE + TFTP to install centos on new virtual machine with raw hard disk
I stopped firewall (iptables) & selinux
I installed tftp & tftp-server & syslinux
I started httpd & xinetd services
in /etc/dhcp/dhcpd.conf
in subnet options, I added 2 lines:
next-server 192.168.2.1 # IP of DHCP server (centos)
filename "pxelinux.0"
/etc/xinetd.d/tftp contains the following lines
server_args = -svv /var/lib/tftpboot
disable = no
I changed permissions of /var/lib/tftpboot to 775
I copied pxelinux.0 & menu.c32 & initrd.img & vmlinux from centos dvd to /var/lib/tftpboot
/var/lib/tftpboot/pxelinux.cfg/default
------------------------------------------------
PROMPT 0
DEFAULT menu.c32
TIMEOUT 300
ONTIMEOUT localdisk
MENU TITLE .....
LABEL .....
KERNEL vmlinuz
APPEND initrd=initrd.img
ks=http://192.168.2.1/kickstart1.cfg
(I created kickstart1.cfg file in /var/www/html)
/var/www/html/kickstart1.cfg
--------------------------------------
install
url --url=”
http://192.168.2.1/centosdvd/”
(this folder contains installation files and I created local yum repository in it using yum and I tested it with file:///softwares, but it didn't work with http or ftp)
bootloader --location=mbr
zerombr
clearpart --all --initlabel
part / --asprimary --fstype=”ext4” --size=5120
part swap --asprimary --fstype=”swap” --size=1024
reboot
graphical
firstboot --disable
keyboard us
lang en_US
logging --level=info
timezone Egypt
firewall --disabled
selinuxspace--disabled
network --bootproto=dhcp --device=eth0 --onboot=yes --noipv6
in another terminal
grub-crypt --sha-512
enter new root password twice
in current terminal
rootpw --iscrypted .....
authconfig --enableshadow
--passalgo=sha512
--enableldap
--enableldapauth
--ldapserver=ldap://192.168.2.1
--ldapbasedn=”dc=.....,dc=.....”
repo --name=”server netbios name” --baseurl=http://192.168.2.1/centosdvd/
%packages
..........
%endEnter
I changed permissions of kickstart file to 775
in the new virtual machine, when I boot it
it it shows error message that it's unable to download kickstart file