Pxe+kickstart for unattended batch installation of Linux

Source: Internet
Author: User

Pxe+kickstart Implementing unattended Batch installation Linux

Lab Preparation: Host Myrhel2 as the server side, create a new virtual host with no operating system installed and the same network segment as the server side

Conditions for installation:

Server-side:

???? Support TFTP : Provides files necessary for boot files and system installation

???? Support DHCP servers: assigning IP Address, location TFTP server location.

Client:

???? Network card support PXE Protocol

???? motherboard support Network boot

    1. Environment preparation
  1. Close Iptables SELinux

    # Service Iptables Stop

    # iptables–f

    # Setenforce 0

  2. Turn on the virtual machine and configure an infrequently used IP address

    #vim/etc/sysconfig/network-scripts/ifcfg-eth0

    ipaddr=192.168.10.2

    netmask=255.255.255.0

  3. Install packages

    #yum –y Install TFTP tftp-server DHCP vsftpd syslinux

  4. Configure VSFTP services

    #mkdir DVD

    #chmod 777 dvd/

    #mount/dev/sr0/var/ Ftp/pub/dvd

    #service vsftpd start

    #chkconfig vsftpd on

  5. Configuring the DHCP service

    #cp/usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample/etc/dhcp/dhcpd.conf

    #vim/etc/dhcp/dhcpd.conf

    #service DHCPD Start

    #chkconfig DHCPD on

  6. Configuring the TFTP service

    #vim/etc/xinetd.d/tftp

    #mkdir/tftpboot

    #cd/tftpboot

    #mkdir pxelinux.cfg

    #cp/usr/share/syslinux/pxelinux.0/tftpboot/

    #cp/var/ftp/pub/dvd/isolinux/isolinux.cfg/tftpboot/pxelinux.cfg/default

    #chmod 644 Pexlinux.cfg/default

    #cp/var/ftp/pub/dvd/isolinux/*/tftpboot/

    #service xinetd Start

    #chkconfig TFTP on

  7. Configure Unattended

    #yum-y Install System-config-kickstart

    # System-config-kickstart

    According to their own situation, fill in the relevant information

    Finally click Save, the following screen appears

    Finally click on the "Save" button

    #cp/root/ks.cfg/var/ftp/pub

    #vim/tftpboot/pxelinux.cfg/default

    In Append initrd=initrd.img ks=ftp://192.168.10.2/pub/ks.cfg

8 , client Settings

powering on F2, Enter BIOS interface that adjusts the boot sequence to boot from the network

Press F10 save exit, System restart

Select the first item, enter, and the following operation will be completed automatically.

Pxe+kickstart for unattended batch installation of Linux

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.