Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Use PXE with kickstart to install Linux automatically     - 30 minutes with your Quick Start MySQL Tutorial (Database)

- GNU / Linux system, how to clean up memory space (Linux)

- Linux RAID Set RAID 10 or 0 + 1 (Linux)

- Design and implementation of environment sniffer running under Linux (Linux)

- Linux (SUSE) mount NTFS mobile hard practice (Linux)

- MySQL stored procedures execute dynamic sql statement (Database)

- Debian 7.7 Installation and Configuration (Linux)

- Embedded Linux to solve the problem in the time zone (Linux)

- Source encountered problems and solutions when installing SaltStack (Server)

- How to monitor Nginx (Database)

- Installation Experience open source car Automotive Grade Linux system (Linux)

- How to install OpenOffice Ubuntu or Linux Mint (Linux)

- VMware11 virtual machine Ubuntu14.10 system partition sda1 disk expansion (Linux)

- The YUM package management under Linux (Linux)

- Elaborate 10-point difference between the new and malloc (Programming)

- Two minutes thoroughly so that you understand Android Activity Lifecycle (Programming)

- Oracle user password problem (Database)

- DRBD + Heartbeat solve NFS single point of failure (Server)

- The hash function under OpenSSL (Linux)

- Fundamentals of the Java virtual machine memory management principles (Programming)

  Use PXE with kickstart to install Linux automatically
  Add Date : 2017-08-31      
  System - CentOS 6.5;
  Tftp and ftp service address:;
Brief description of the principle:
  1. Use the pxe protocol to send requests to dhcp servers in the network to obtain IP addresses and tftp addresses.
  2. Get the boot loader to the tftp server.
  3. The boot loader loads the default file to get the boot menu.
  4. Finally, choose to load the kernel and install the program.


1. Configure /etc/dhcp/dhcp.conf

Subnet netmask {
    Range; # Address ranges that can be obtained dynamically
    Next-server; # tftp The address of the server
    Filename = "pxelinux.0" # network boot program, this file in the syslinux package

2. Configure tftp
Chkconfig tftp on # Enable the tftp service

3. Copy the boot and boot program to the tftp server's home directory / var / lib / tftpboot

Cp /usr/share/syslinux/pxelinux.0 / var / lib / tftpboot
Cp /media/isolinux/{boot.msg,splash.jpg,vesamenu.c32} / var / lib / tftpboot # boot.msg: is used to display "[ENTER]" start prompt information; splash.jpg: is the background Pictures; vesamenu.c32 is used to display the graphical menu.
Cp /media/images/{vmlinuz,initrd.img} / var / lib / tftpboot
Mkdir /var/lib/tftpboot/pxelinux.cfg # Network boot program pexelinux.0 boot is to enter the directory to load the configuration file.
Cp /media/isolinux/isolinux.cfg/var/lib/tftpboot/pxelinux.cfg/default #default even if the bootstrap configuration file.

4. Use ftp, nfs, http or cdrom, etc. to export the installation file, use ftp here, the file directory is:


5. Use system-config-kickstart to create an automated installation configuration file.
You can use anaconda-ks.cfg in the / root directory as a template to configure. And save the resulting file to /var/ftp/pub/kickstart/ks.cfg

6. Append the path to ks.cfg to /var/lib/tftpboot/pxelinux.cfg/default append, as follows:
Label linux
Menu label ^ Install or upgrade an existing system # Graphic menu shows the string
Menu default # This menu item is the default to be installed
Kernel vmlinuz
Append initrd = initrd.img ks = ftp: //
- Shell Script: create a function and specify a directory for download (Programming)
- Oracle 11g to create a second instance on Linux (Database)
- Linux directory configuration (Linux)
- 64-bit Oracle Linux recompiled Hadoop-2.2.0 (Server)
- Get and Post requests Comments (Linux)
- CentOS 6 adds disk quota limit (Linux)
- To add the Oracle JDBC driver in Maven repository (Linux)
- ARP spoofing prevent Linux environment LAN (Linux)
- Linux / Unix: chroot command examples to explain (Linux)
- Eclipse configuration GTK (Linux)
- To_explore Linux system boot process (Linux)
- Run Windows in FreeBSD bhyve (Linux)
- Oracle Database Performance Optimization of memory disk (Database)
- SecureCRT use the configuration detailed tutorial (Linux)
- Use eCryptFS encrypt files and directories on Linux (Linux)
- Linux system boot process detail (Linux)
- Ubuntu 12.04 installation DHCP Server (Server)
- stat - Get more information than ls (Linux)
- configuration ssh without password under Linux (Linux)
- Ubucompilator-Ubuntu, Debian, Linux Mint created deb package of graphical tools (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.