Kickstart & PXE

Source: Internet
Author: User

Server up to 3 services dhcpd TFTP httpd ip=192.168.1.1

First, modify the DHCPD configuration file to indicate the IP and boot code files of the TFTP server

Vim/etc/dhcpd.conf

Next-server 192.168.1.1;

FileName "pxelinux.0";

/ETC/INIT.D/DHCPD restart


Start TFTP

Vim/etc/xinetd.d/tftp

Server_args =-s/tftpboot/linux-install/

Disable = no

/etc/init.d/xinetd restart


Copy the boot file, micro-kernel, micro-image to TFTP share

Mount/dev/cdrom/mnt

Cp/mnt/isolinux/isolinux.cfg/tftpboot/linux-install/pxelinux.cfg/default

about why it was renamed default. The client will first look for the 01-mac file, without descending 1 to find the signature file, and finally find the default file.

cp/mnt/isolinux/vmlinuz/tftpboot/linux-install/

cp/mnt/isolinux/initrd.img/tftpboot/linux-install/


Modify the boot file default to indicate that the Ks.cfg file

Vim/tftpboot/linux-install/pxelinux.cfg/default

Default KS

Timeout 6

Label KS

Kernel Vmlinuz

Append ks=http://192.168.1.1/ks.cfg initrd=initrd.img



Generate KS File

Yum-y Install System-config-kickstart

Under the graphical interface

System-config-kickstart Generating ks.cfg files

File is defective and needs to be modified

Vim Ks.cfg

Key--skip

To add a pre-installed package to a file

Vim/root/anaconda-ks.cfg ks.cfg

N Enter the next file n Enter the previous file


The ks.cfg file needs to indicate what Stage2 needs to share as Http://192.168.1.1/rhel

Finally, the KS file and the image are shared in HTTP

CP ks.cfg/var/www/html/

Mount/dev/cdrom/var/www/html/rhel

Kickstart & PXE

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.