I 'd like to say goodbye to the CD-Rom USB flash drive installation system.

Source: Internet
Author: User
I would like to say goodbye to the CD-Rom USB flash drive installation system and wish you success right away-Linux Enterprise Application-Linux server application information. Here is the details. With the passage of time and the increase of server applications, can we leave the tedious use of CD or USB flash disks to install the system over the network? The answer is yes. Today I will introduce pxe network boot + kicstart to automatically install the system.

Yum install xinetd tftp-server-y
Cd/var/lib/tftpboot copies all files in the isolinux disk to this directory.

Mkdir pxelinux. cfg

Cp isolinux. cfg pxelinux. cfg/default

Vi pxelinux. cfg/default
Default vesamenu. c32
# Prompt 1
Timeout 600
Display boot. msg
Menu background splash.jpg
Menu title Welcome to Red Hat Enterprise Linux 6.0!
Menu color border 0 # ffffffff #00000000
Menu color sel 7 # ffffffff # ff000000
Menu color title 0 # ffffffff #00000000
Menu color tabmsg 0 # ffffffff #00000000
Menu color unsel 0 # ffffffff #00000000
Menu color hotsel 0 # ff000000 # ffffffff
Menu color hotkey 7 # ffffffff # ff000000
Menu color scrollbar 0 # ffffffff #00000000
Label rhel6
Menu label Install rhel6 x86_64 version. wrh
Kernel vmlinuz
Append initrd = initrd. img ksdevice = eth0 load_ramdisk = 1 network ks = http: // 192.168.0.135/ks. cfg
Noipv6
Label rescue
Menu label ^ Rescue installed system
Kernel vmlinuz
Append initrd = initrd. img rescue noipv6

Yum install syslinux-y

Find/-name pxelinux.0

Cp/usr/share/doc/syslinux/pxelinux.0/var/lib/tftpboot

Cd/etc/xinetd. d

Vi tftp Modification
> Disable = no
/Etc/init. d/xinetd restart
Netstat-anptluet | grep xinetd (view)
Yum install dhcp apache-y
Add vi/etc/dhcp/dhcpd. conf
Allow bootp;
Allow booting;
Filename "pxelinux.0 ";
Next-server 192.168.0.135;
/Etc/init. d/dhcpd restart
Make kickstart and place it in the httpd release directory.
/Etc/init. d/httpd start
Test with a virtual machine
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.