Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Use PXE with kickstart to install Linux automatically     - Linux Proc File System Experiment (Linux)

- MacBook Air install Ubuntu dual system (Linux)

- How to fix the Ubuntu Error script returned error exit status 1 (Linux)

- Java in the inverter and covariance (Programming)

- C ++ constant definition (Programming)

- Redhat 7 can only be read after installation Samba service catalog approach could not be written (Server)

- How do I switch from NetworkManager to systemd-network on Linux (Linux)

- Source Analysis: Java object memory allocation (Programming)

- Oracle set the timer task JOB scheduler to execute stored procedures or PL / SQL code block (Database)

- DM9000 bare Driver Design (Programming)

- JavaScript basic types and type conversion (Programming)

- Sshuttle A VPN-based transparent proxy that uses ssh (Server)

- Household use Linux Security (Linux)

- To install Ganglia (Linux)

- Analysis examples: Intrusion Response Linux platform Case (Linux)

- A brief description of Java 8 new features introduced syntax (Programming)

- How to monitor network usage by nload in Linux (Linux)

- Linux security settings Basics (Linux)

- How UTorrent download the ISO image from the command line (Linux)

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

  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: //
- Use IF NOT EXISTS create a data table (Database)
- Using Python multithreaded mistakes summary (Programming)
- Use the dd command to the hard disk I / O performance test (Linux)
- Lazarus IDE Start Basics Tutorial (Linux)
- 17 How to install the Ubuntu 14.04 and Linux Mint Kodi14 (XBMC) (Linux)
- ActionContext and ServletActionContext Summary (Programming)
- Linux virtual memory and physical memory (Linux)
- Linux Shell introduces (Linux)
- Learning how to teach safety system to prevent your own IP leakage (Linux)
- printf PHP string operations () built-in function usage (Programming)
- Ubuntu installation 2.10.x version of Scala (Linux)
- EXP-00091 Error resolved (Database)
- PHP 5.3 New Features Detail (Linux)
- CentOS 6.5 installation configuration DRBD (Server)
- Tune in high resolution to 1280x800 in Fedora 14 (Linux)
- Linux 4.0+ kernel support for hardware switching module (HW Switch Offload) (Linux)
- Install NetBeans IDE 8.0 on Ubuntu, Linux Mint, Elementary OS, and Debian (Linux)
- How to use the on-screen keyboard in Linux (Linux)
- Java source implementation of the observer pattern instance (Programming)
- Linux file system management partition, format, mount - label mount (Linux)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.