Network Installation Linux

Source: Internet
Author: User

One, install TFTP tftp-server FTP HDCP on another server

Yum install tftp tftp-server vsftpd dhcp-y

Dependencies are automatically checked during installation and the xinetd (Super Daemon) is automatically installed

Second, the configuration xinetd

VIM/ETC/XINETD.D/TFTP Open TFTP configuration file can see disable default is yes to change it to no, there are two ways: directly edit the file or

Exit first, Chkconfig tftp off

Third, Mount ISO image

umount/media/rhel_6.4\ x86_64\ disc\ 1/ The disc image is mounted by default to/media, so uninstall first

cd/var/ftp/pub/

mkdir DVD

Mount/dev/cdrom/var/ftp/pub/dvd

Iv. extracting the subsystems required to install the system from the ISO image

Cd/var/ftp/pub/dvd entering ISO

CD Isolinux into Isolinux

CP initrd.img VESAMENU.C32 vmlinuz isolinux.cfg splash.jpg/var/lib/tftpboot/ Copy these files to/var/lib/tftpboot/.

cd/var/lib/tftpboot/

mkdir pxelinux.cfg

CP Isolinux.cfg Pxelinux.cfg/default

RM-RF isolinux.cfg

Install Syslinux:

Configure the Yum library first:

Vim/etc/yum.repos.d/dvd.repo

File content:

[DVD]
Name=dvd
Baseurl=file:///var/ftp/pub/dvd
Gpgcheck=0

Yum clean all clears the Yum library

Yum Install syslinux - y

cp/usr/share/syslinux/pxelinux.0/var/lib/tftpboot/ The small image CP to the tftpboot directory

The small system to install Linux is ready to complete

V. Configuring DHCP

Vim/etc/dhcp/dhcpd.conf

File contents:

Option Domain-name "example.com";
Default-lease-time 600;
Max-lease-time 7200;

Log-facility Local7;

Subnet 192.16 8.4.0 netmask 255.255.255.0{

Range 192.168.4.30 192.168.4.50;

filename "pxelinux.0"; #要传的文件
Next-server 192.168.4.103; #接下来的服务器, fill in the address of the machine
}

#注意192.168.4.0 This network segment should be in the same network segment as your server (native)

/ETC/INIT.D/DHCPD Restart start the DHCP service

Vi. opening the service to shut down the firewall

Service xinetd Start

Iptable-f

Setenforce 0

Seven, create an empty virtual machine and turn on

Choose Bridging!!

Normally you can see that the installation interface is visible after the DHCP assignment address TFTP transfer file.

Eight, automatic installation through the answer file

Yum install system-config-kickstart.noarch-y installation System-config-kickstart.noarch

System-config-kickstart Open this app

Where special instructions are needed:

Installation method Installlation Source selected FTP configuration address: ftp://192.168.4.103#ftp服务器地址 (native)

Catalog:Pub/dvd

Save to desktop by clicking Save

CD ~

CPdesktop/ks.cfg/var/ftp/pub/

Vim/var/lib/tftpboot/pxelinux.cfg/default

Add after the append initrd=initrd.img in the menu label ^install or upgrade an existing system under this tab:

KS=FTP://192.168.4.103/PUB/KS.CFG

Save exit

Nine, open a new virtual machine Select the first installation phase to start the automatic installation

Network Installation Linux

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.