Kickstart + dhcp Installation System

Source: Internet
Author: User
Kickstart + dhcp installation system-general Linux technology-Linux technology and application information. The following is a detailed description. For a beginner in LINUX, installing a LINUX operating system is very simple. You just need to put the CD in, and the next step is the next step, but can this operation show you more professional?
Do you want to install the system through kickstart + dhcp!
Find a server in a LAN (ip Address: 192.168.0.240) and install the following services on the server:
Dhcp tftp nfs

1. First install a DHCP service to enable the client to boot through the network when it is just started.
Add the following content to the dhcp. conf configuration file:
Group {
Filename "/pxelinux.0"
Next-server 192.168.0.240
}
The above is the added content.

2. Install the tftp service. After installation, the/tftpboot directory will be added under /.
Configure PEXlinux. To remotely start a machine, you must have PXElinux, which is derived from syslinux and isolinux and supports PXE bootloader. It can remotely start a machine through PEX. Test/usr/lib/syslinux/pxelinux.0 to the/tftpboot directory, and test/image/pxeboot/initr. img and vmlinux on the installation CD to the/tftpboot directory. Create a pxelinux. cfg directory in/tftpboot to put the syslinux configuration file. The configuration file of Sysconfig is ready-to-use, and there is an isolinux under the installation disc isolinux. cfg file, test it into/tftpboot/default, put isolinux /*. msg:/tftpboot (the Loader of the RedHat installation disc is isolinux, huh, huh ). Modify default (that is, isolinux. cfg). The following is my default file:
Default local
Prompt 1
Timeout 30
Display boot. msg
F1 boot. msg
F2 options. msg
F3 general. msg
F4 param. msg
F5 rescue. msg
F7 snake. msg
Label local
Localboot
Label linux
Kernel vmlinuz
Append initrd = initrd. img devfs = nomount ramdisk_size = 9216
Label text
Kernel vmlinuz
Append initrd = initrd. img text devfs = nomount ramdisk_size = 9216
Label expert
Kernel vmlinuz
Append expert initrd = initrd. img devfs = nomount ramdisk_size = 9216
Label ks
Kernel vmlinuz
Append ks initrd = initrd. img devfs = nomount ramdisk_size = 9216
Label nofb
Kernel vmlinuz
Append initrd = initrd. img devfs = nomount nofb ramdisk_size = 9216
Label lowres
Kernel vmlinuz
Append initrd = initrd. img lowres devfs = nomount ramdisk_size = 9216
Label autoinstall # When the system waits, input autoinstall to perform the following operations. You can also change the top default local to default autoinstall and press enter to execute this operation.
Kernel vmlinuz
Append ks = http: // 192.168.0.240/autoinstall/ks. cfg initrd = initrd. img devfs = nomount ramdisk_size = 9216 nofb # This line specifies the location where KS files are stored. This is shared over http. You can change it to NFS.
You can use the built-in linux tool to generate ks files.

The above is a simple example.
The client and the server first establish communication through the DHCP service to obtain the IP address, and then get the pxelinux.0 file through the TFTP service. With this file, you can start a simple small system and read the default. cfg file, which tells the location of the KS file, and then the KS file tells the client how to install and where the installed file is. This completes step by step!
Related Article

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.