not able to configure pxe server on centos to install ubuntu
Hi,
How to configure PXE server in centos to install ubuntu.
I have configure PXE server in centos, by following procedure.
and working fine for installing linux(centos).
PXE SERVER ON CENTOS
[root@suresh ~]# yum install dhcp tftp-server syslinux vsftpd system-config-kickstart
CONFIGURE DHCP SERVER :
[root@suresh ~]# vim /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
default-lease-time 600;
max-lease-time 7200;
allow booting;
allow bootp;
authoritative;
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.100 192.168.10.120;
next-server 192.168.10.53;
filename "pxelinux.0";
[root@suresh ~]# service dhcpd restart
CONFIGURE TFTP SERVER :
[root@suresh ~]# vim /etc/xinetd.d/tftp
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
[root@suresh ~]# cp /media/isolinux/* /tftpboot/
[root@suresh ~]# mkdir /tftpboot/pxelinux.cfg
[root@suresh ~]# cp /tftpboot/isolinux.cfg /tftpboot/pxelinux.cfg/default
[root@suresh ~]# cp /usr/lib/syslinux/pxelinux.0 /tftpboot/
[root@suresh ~]# service xinetd restart
CONFIGURE FTP SERVER :
[root@suresh ~]# cp -rv /media/* /var/ftp/pub/
[root@suresh ~]# vim /et/vsftpd/vsftpd.conf
anonymous_enable=yes
DISABLE FIREWALL
DISABLE SELINUX
[root@suresh ~]# service dhcpd restart
[root@suresh ~]# service xinetd restart
[root@suresh ~]# service vsftpd restart
Then Created a KICKSTART FILE using following command
[root@suresh ~]# system-config-kickstart
follow the instructions
COPIED THAT KICKSTART FILE INTO /var/ftp/pub/ks.cfg
[root@suresh ~]# vim /tftpboot/pxelinux.cfg/default
label linux "Install or Upgrade an Existing system"
kernel vmlinuz
append initrd=initrd.img linux ks=ftp://192.168.10.53/pub/ks.cfg
[root@suresh ~]#
Now please help me to how to configure pxe server in centos to install ubuntu.
Thanks
Suresh
Last edited by suresh.k; 12-09-2012 at 11:54 PM.
|