PXE unattended Installation CentOS system

Source: Internet
Author: User
Tags ftp centos root directory

PXE unattended installation CentOS system

PXE unattended installation of Linux system, can be multiple machines at the same time automatic operation management, reduce the workload of administrators, but also make management more scientific and effective. Therefore, PXE unattended installation of Linux is of great significance for administrators. Below, let's introduce a simple PXE process.

To establish a disc mount point

Mkdir/mnt/cdrom

Mount/dev/cdrom/mnt/cdrom

Access the CD server directory and install the VSFTPD service

cd/mnt/cdrom/server/

RPM-IVH vsftpd-2.0.5-16.e15.i386.rpm

Start VSFTPD

Service VSFTPD Start

Set VSFTPD to boot automatically

Chkconfig vsftpd on

Installing the DHCP service

RPM-IVH dhcp-3.0.5-21.e15.i386.rpm

Start the DHCP service

However, there are no configuration scripts currently, so edit the configuration script first

Enter script editing interface

Vi/etc/dhcpd.conf

Enter: Set Nu to display line numbers

R/usr/share/doc/dhcp-3.0.5/dhcp.conf.sample in bottom row mode (read Dhcp.conf.sample file)

After modification

Note: The main modification is subnet to local network segment, the default gateway option Routers,option Subnet-mask,optiondomain-name-servers, other can not be tube.

Now DHCP can start ...

Service DHCPD Start

Set up the DHCP service to boot from

Install the TFTP server below

Check to see if it has been installed before

Rpm-qa |grep TFTP

I've already installed it here, and if it's not installed, perform the following instruction installation

RPM-IVH tftp-server-0.49-2.i386.rpm

View the installation directory

RPM-QL Tftp-server

By/ETC/XINETD.D/TFTP, the TFTP service is under the control of the Super daemon.

So set up the boot from

Edit/etc/xinetd.d/ftp

Vi/etc/xinetd.d/ftp

Just change the Disable =yes to No (wake not wake)

TFTP boot from boot setup complete: Wq Save exit

Reboot the Super daemon, otherwise it will not take effect ...

Service xinetd Restart

Since then, three servers have been built, but the FTP server is more special, you need to place a CD-ROM image files, then I will copy the CD file up ...

Return to the disc root directory,

Cd..

Copy the files on the CD to. var/ftp/pub/

Cp-r (there is a directory in the disc, to use recursive parameters). (. Represents all under the disc root)/var/ftp/pub/

After the copy of the CD file, all the features of FTP are

I got an address on FTP, but how do I know Tftp-server's address?

Edit Dhcp.config File

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.