Hundred Xiao Sheng take you to play the Linux system Service Building series----PXE Remote Installation server and unattended installation

Source: Internet
Author: User

Experimental environment
System environment: centos6.5: Process Installation Server
WIN7: Client
One, the PXE Remote installation server construction

  1. Install and open the required service, TFTP,FTP,DHCP.
    1) yum-y Install Tftp-server, installing the TFTP environment package (if the Yum repository is not installed, please refer to http://blog.51cto.com/13842738/2135806)


    2) Edit the TFTP profile vim/etc/xinetd.d/tftp change "Disable = yes" to "Disable = no" and start the XINETD service as shown in.

    3) Install the DHCP package (details reference http://blog.51cto.com/13842738/2140821), edit the DHCP configuration file vim/etc/dhcp/dhcpd.conf as shown in, edit complete

    4) Install the FTP package yum install VSFTPD, mount the Linux image installation file to the FTP shared folder under Pub mount/dev/cdrom/var/ftp/pub

    View FTP shared folder pub, mount image file successfully
  2. Copy network boot required files to the root directory of the TFTP server
    1) yum-y Install syslinux installation boot loader

    2) Copy the installed boot program to the TFTP boot folder cp/usr/share/syslinux/pxelinux.0/var/lib/tftpboot/

    3) mkdir/var/lib/tftpboot/pxelinux.cfg Create a folder under the TFTP Startup folder to hold the files needed for startup
    Cp/mnt/isolinux/isolinux.cfg/var/lib/tftpboot/pxelinux.cfg/default//Installation Menu
    Cp/mnt/images/pxeboot/initrd.img/var/lib/tftpboot//linux Boot Load module//
    cp/mnt/images/pxeboot/vmlinuz/var/lib/tftpboot///Compression core//
    Cp/mnt/isolinux/vesamenu.c32/var/lib/tftpboot//Graphical installation menu
    3. Start all servers, turn off the firewall and prepare for automatic installation
    Service DHCPD Restart
    Service VSFTPD Restart
    Service xinetd Start
    Chkconfig--level xinetd on xinetd service in 3,5 mode boot from
    Chkconfig--level tftp on TFTP service in 3,5 mode boot from boot
    Service iptables stop//Shut down the firewall, do not close the boot program in TFTP cannot be downloaded//
    Setenforce 0

    4. Start the client (WIN7) Select by the options shown





    To this remote installation is complete.
    Two unattended installations
  3. Installing the System-config-kickstart tool in the system, yum-y install System-config-kickstart

  4. Use the Graphical Wizard tool to configure the installation answer file as shown in










  5. Graphical interface configuration is completed, back to the character interface, the answer parameter file is saved by default in/root/ks.cfg, mkdir/var/ftp/rhel6 new folder under the FTP folder rhel6,cp/root/ks.cfg/var/ftp/rhel6/ Copy the configured answer parameter file to Rhel6.
  6. Edit the boot menu file Vim/var/lib/tftpboot/pxelinux.cfg/default as shown in


    5. Reload the service after completion TFTP,FTP,DHCP

    6. To the client authentication unattended installation as shown, the experiment was successful

Hundred Xiao Sheng take you to play the Linux system Service Building series----PXE Remote Installation server and unattended installation

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.