{"id":7082,"date":"2017-10-11T18:32:59","date_gmt":"2017-10-11T10:32:59","guid":{"rendered":"http:\/\/rmohan.com\/?p=7082"},"modified":"2017-10-11T18:32:59","modified_gmt":"2017-10-11T10:32:59","slug":"pxe-network-installation-with-kick-start","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=7082","title":{"rendered":"PXE Network Installation with Kick start"},"content":{"rendered":"<p>Just configured and tested PXE Network Installation . Its Amazing!!<\/p>\n<p>Please bear with my rough notes on this Topic :<\/p>\n<p>>> Mount your CENTOS DVD to \/media .<\/p>\n<p>>>>yum -y install dhcp tftp-server syslinux vsftpd system-config-kickstart<\/p>\n<p>>>> Configure DHCP Server as below :<\/p>\n<p>#vi \/etc\/dhcpd.conf<\/p>\n<p>ddns-update-style interim;<\/p>\n<p>ignore client-updates;<\/p>\n<p>allow booting;<\/p>\n<p>allow bootp;<\/p>\n<p>authoritative;<\/p>\n<p>subnet 192.168.182.0 netmask 255.255.255.0 {<\/p>\n<p> range dynamic-bootp 192.168.182.138 192.168.182.254;<\/p>\n<p> default-lease-time 21600;<\/p>\n<p> max-lease-time 43200;<\/p>\n<p> next-server 192.168.182.137;<\/p>\n<p> filename &#8220;pxelinux.0&#8221;;<\/p>\n<p>}<\/p>\n<p>>>>> Configure TFTP Server<\/p>\n<p># vi \/etc\/xinetd.d\/tftp<\/p>\n<p>service tftp<\/p>\n<p>{<\/p>\n<p> socket_type = dgram<\/p>\n<p> protocol = udp<\/p>\n<p> wait = yes<\/p>\n<p> user = root<\/p>\n<p> server = \/usr\/sbin\/in.tftpd<\/p>\n<p> server_args = -s \/tftpboot<\/p>\n<p> disable = no<\/p>\n<p> per_source = 11<\/p>\n<p> cps = 100 2<\/p>\n<p> flags = IPv4<\/p>\n<p>}<\/p>\n<p>>>> copy all boot required files to tftp-server&#8217;s home directory<\/p>\n<p>#cp -a \/media\/isolinux\/* \/tftpboot\/<\/p>\n<p>>>> create a new directory at \/tftpboot\/pxelinux.cfg<\/p>\n<p>>>> # cp \/tftpboot\/isolinux.cfg \/tftpboot\/pxelinux.cfg\/default<\/p>\n<p>>>> #cp \/usr\/lib\/syslinux\/pxelinux.0 \/tftpboot\/<\/p>\n<p>>>> # service xinetd start<\/p>\n<p>>>>>> Configure FTP server to provide CD Dump.<\/p>\n<p># cp -vr \/media\/* \/var\/ftp\/pub<\/p>\n<p>>>> Ensure that anonymous_enable=YES at \/etc\/vsftpd\/vsftpd.conf and start the<\/p>\n<p>VSFTPD service<\/p>\n<p>>>> At Client Machine ,go to BIOS setting and change the boot device priority to<\/p>\n<p>keep &#8220;Network boot from xxxx &#8221; at first position<\/p>\n<p>>>> The above Steps will facilitate you with Network Installation in Attended Mode<\/p>\n<p>i.e you have to physically do package selection and other stuff manually .<\/p>\n<p>To configure unattended Network Installation , follow these steps:<\/p>\n<p>1. Go to your PXE Server and check for kickstart file at \/root\/anaconda-<br \/>\nks.cfg, uncomment the following lines for Partitions: (Note: you can also edit this<\/p>\n<p>file with system-config-kickstart utility as per your requirements)<\/p>\n<p>clearpart &#8211;linux<\/p>\n<p>part \/boot &#8211;fstype ext3 &#8211;size=100<\/p>\n<p>part swap &#8211;size=2000<\/p>\n<p>part \/ &#8211;fstype ext3 &#8211;size=100 &#8211;grow<\/p>\n<p>save this file and copy it to \/var\/ftp\/pub.<\/p>\n<p>#cp \/root\/anaconda-ks.cfg \/var\/ftp\/pub (Please ensure required permission is<\/p>\n<p>granted for this kickstart file).<\/p>\n<p>2. Go to your Client Machine ,boot again and at boot option give :<\/p>\n<p>linux ks=ftp:\/\/192.168.182.137\/pub\/anaconda-ks.cfg and there you go , your<\/p>\n<p>Installation will be unattended .<\/p>\n<p>NOTE : You can completely make Installation unattended , meaning you don&#8217;t even<\/p>\n<p>have to specify the boot option (eg: linux ks=ftp:\/\/192.168.182.137\/pub\/<\/p>\n<p>anaconda-ks.cfg) . Even this can be automated to make your Installation completely<\/p>\n<p>INDEPENDENT from you . For this follow this steps:<\/p>\n<p>1. Edit \/tftpboot\/pxelinux.cfg\/default file and add the following lines :<\/p>\n<p>label linux<\/p>\n<p>kernel vmlinuz<\/p>\n<p>append initrd=initrd.img linux ks=ftp:\/\/192.168.182.137\/pub\/anaconda-ks.cfg<\/p>\n<p>2. Save the above file and Start your Client Machine&#8217;s Installation .<\/p>\n<p>ENJOY PXE!!!!!!<\/p>\n<p>Thanks<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just configured and tested PXE Network Installation . Its Amazing!!<\/p>\n<p>Please bear with my rough notes on this Topic :<\/p>\n<p>>> Mount your CENTOS DVD to \/media .<\/p>\n<p>>>>yum -y install dhcp tftp-server syslinux vsftpd system-config-kickstart<\/p>\n<p>>>> Configure DHCP Server as below :<\/p>\n<p>#vi \/etc\/dhcpd.conf<\/p>\n<p>ddns-update-style interim;<\/p>\n<p>ignore client-updates;<\/p>\n<p>allow booting;<\/p>\n<p>allow bootp;<\/p>\n<p>authoritative;<\/p>\n<p>subnet [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7082"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7082"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7082\/revisions"}],"predecessor-version":[{"id":7083,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7082\/revisions\/7083"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7082"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}