centos6.5 Installing PXE

Source: Internet
Author: User

kickstart-server ip:192.168.137.188 shutdown  selinuxsetenforce 0 shutdown Firewall service iptables stop installation  DHCP1. Configuration  dhcp  Server yum install dhcp modify  dhcpd.conf  file vim /etc/dhcp/ Dhcpd.confddns-update-style interim;ignore client-updates;allow booting;allow bootp;subnet  192.168.137.0 netmask 255.255.255.0 {option routers 192.168.137.254;option  subnet-mask 255.255.255.0;option time-offset -18000;range dynamic-bootp  192.168.137.100 192.168.137.120;next-server 192.168.137.210;filename  "pxelinux.0"; #host  ns  {#hardware  ethernet 00:0C:29:C8:12:84; #fixed-address 192.168.137.12;}} Service dhcpd restart Restart  dhcp  Server 2.  Modify  xinetd  config file yum install  httpdyum install tftp-sever tftp*yum install xinetdyum install  Syslinux boot automatically start service Chkconfig httpd onchkconfig xineTd onchkconfig dhcpd on Modify  xinetd  config file vim /etc/xinetd.d/tftpdisable =  no  just modify this  disable  value to  no start each service service xinetd restartservice httpd  Restart Release disc Image mount /dev/cdrom /mntmkdir /var/www/html/isocp -r /mnt/* /var/www/ html/iso/cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/cp /var/www/html/iso/images/ pxeboot/vmlinuz /var/lib/tftpboot/cp /var/www/html/iso/images/pxeboot/initrd.img /var/lib/ Tftpboot/cp /var/www/html/iso/isolinux/boot.msg /var/lib/tftpboot/cp /var/www/html/iso/isolinux /vesamenu.c32 /var/lib/tftpboot/cp /var/www/html/iso/isolinux/splash.jpg /var/lib/tftpboot/ mkdir /var/lib/tftpboot/pxelinux.cfgcp /var/www/html/iso/isolinux/isolinux.cfg /var/lib/ tftpboot/pxelinux.cfg/defaultchmod +w /var/lib/tftpboot/pxelinux.cfg/defaultvim /var/lib/ Tftpboot/pxelinux.cfg/default modifying  default  file default linux#prompt 1timeout 60display boot.msgmenu background  splash.jpgmenu title welcome to centos 6.5!menu color border 0 # ffffffff  #00000000menu  color sel 7  #ffffffff   #ff000000menu  color title  0  #ffffffff   #00000000menu  color tabmsg 0  #ffffffff   #00000000menu  color unsel 0  #ffffffff   #00000000menu  color hotsel 0  #ff000000   #ffffffffmenu  color hotkey 7  #ffffffff   #ff000000menu  color scrollbar  0  #ffffffff   #00000000label  linuxmenu label ^Install or upgrade  an existing systemmenu defaultkernel vmlinuzappend initrd=initrd.img ks=http:// 192.168.137.188/test/ks.cfglabel vesamenu label install system with ^basic  Video driverkernel vmlinuzappend initrd=initrd.img xdriver=vesa nomodesetlabel rescuemenu label ^ rescue installed systemkernel vmlinuzappend initrd=initrd.img rescuelabel  Localmenu label boot from ^local drivelocalboot 0xfffflabel memtest86menu  label ^memory testkernel memtestappend -actually just modify  append  this line   specify  ks   File path. And then change the  default  back into  linuxcp /root/anaconda-ks.cfg /var/www/html/test/ks.cfgchmod 777.  /var/www/html/test/ks.cfgvim /var/www/html/test/ks.cfg# kickstart file automatically  generated by anaconda.installtexturl --url http://192.168.137.188/isolang en_us . utf-8keyboard usnetwork --onboot no --device eth0 --bootproto dhcp -- Noipv6rootpw jf.comfirewall --disabledauthconfig --enableshadow --passalgo=sha512selinux  --disablEdtimezone asia/shanghaibootloader --location=mbr --driveorder=sda --append= "crashkernel= Auto rhgbquiet "Clearpart --all --initlabelzerombr yespart /boot --fstype=ext4  --size=200part / --fstype=ext4 --size=20000part /data --fstype=ext4 --size =20000part swap --size=2000%packages@core@server-policy@workstation-policy%endreboot Note: url -- url http://192.168.137.188/iso  this point is  iso  the following file, not written ks.cfg  path.   (I'm wrong here) don't worry, you can restart the service again. Service xinetd restartservice httpd restartservice httpd restart


This article is from the "Kattall_linux" blog, make sure to keep this source http://kattall.blog.51cto.com/5176161/1678708

centos6.5 Installing PXE

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.