Host installed;
Principles and concepts:
1.1 What is PXE strictly speaking, PXE is not an installation method, but a boot method. A prerequisite for PXE installation is that the computer to be installed contains a network card (NIC) supported by PXE, that is, the network card must have a PXE client. PXE (pre-boot execution environment) Protocol enables the computer to start over the network. The Protocol is divided into client and server. The PXE client is in the ROM of the NIC. When the computer boots, the BIOS transfers the PXE client to the memory for execution, the PXE client downloads the files stored on the remote end to the local computer for running through the network. To run the PXE protocol, you must set the DHCP server and TFTP server. The DHCP server is used to assign an IP address to the PXE client (the host on which the system is to be installed). Because the IP address is assigned to the PXE client, you need to add relevant PXE settings when configuring the DHCP server. In addition, TFTP client already exists in the PXE client Rom. The PXE client uses the TFTP protocol to download the required files to the TFTP server.
1.2 What is kickstart is an unattended installation method. The working principle of KickStart is to record various parameters required for manual intervention during a typical installation process and generate a file named Ks. cfg file. In the subsequent installation process (not limited to the machine that generates the Kickstart Installation File), when parameters are required, the installer first looks for the file generated by KickStart. When a proper parameter is found, the parameter is used. If no proper parameter is found, manual intervention is required by the installer. In this way, if the Kickstart file covers all the parameters that need to be filled in during the installation process, the installer can only tell the installer where to get Ks. cfg file, and then busy with your own affairs. After the installation is complete, the installer restarts the system based on the restart option set in KS. cfg and ends the installation.
1.3 experimental environment: Virtual Machine: all operations on VMWare Workstation 8 for windows are completed under the virtual machine. The virtual machine Nic settings are vmnet2. Virtual Machine A has rhel6 installed, and virtual machine B has no operating system. The devices required for PXE + kickstart installation are as follows:
The DHCP server is used to assign IP addresses to clients;
The TFTP server is used to store PXE related files,
For example: system boot file;
The FTP server is used to store system installation files.
KS. cfg configuration file generated by KickStart;
Host that will be installed with a PXE support Nic;
I. Mount the rhel6 DVD # Mount/dev/CDROM/mnt
2. Install vsftpd and copy all the content (files and folders) of the CD to/var/FTP/pub/
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/30/76/wKioL1On50HDG_voAAAR3HRqeTA173.jpg "style =" float: none; "Title =" 2.jpg" alt = "wkiol1on50hdg_voaaar3hrqeta173.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/30/77/wKiom1On53DRML8OAAASEmGG3ro069.jpg "style =" float: none; "Title =" 3.jpg" alt = "wkiom1on53drml8oaaasemgg3ro069.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/30/76/wKioL1On50KyPfrkAAARyWGcNSM440.jpg "style =" float: none; "Title =" 4.jpg" alt = "wkiol1on50kypfrkaaarywgcnsm440.jpg"/>
3. Install and start the TFTP service
The default Xinetd super service is provided by VFTP-server.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/30/76/wKioL1On50LC_26jAAAmtDBC6Kk290.jpg "style =" float: none; "Title =" 5.jpg" alt = "wkiol1on50lc_26jaaamtdbc6kk290.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/30/77/wKiom1On53Cx0PeRAAAM_9JAZrY564.jpg "style =" float: none; "Title =" 6.jpg" alt = "wkiom1on53cx0peraaam_9jazry564.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/30/77/wKiom1On53CxnJrJAAARw5kqRO8800.jpg "style =" float: none; "Title =" 7.jpg" alt = "wkiom1on53cxnjrjaw.w5kqro8800.jpg"/>
4. Prepare the PXE boot program and boot menu file
Copy the disk vmlinuz initrd. IMG to/var/lib/tftpboot.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/30/76/wKioL1On50WBjZubAAA77etSmbc453.jpg "style =" float: none; "Title =" 8.jpg" alt = "wkiol1on50wbjzubaaa77etsmbc453.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/30/77/wKiom1On53SSDm8wAAB9OUg5KWw525.jpg "style =" float: none; "Title =" 9.jpg" alt = "wkiom1on53ssdm8waab9oug5kww525.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/30/76/wKioL1On50aDuqDhAAB1A6wc9dU811.jpg "style =" float: none; "Title =" 10.jpg" alt = "wkiol1on50aduqdhaab1a6wc9du811.jpg"/>
5. Install and start the DHCP service
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/30/77/wKiom1On562yt_MeAAAkfgSdCes794.jpg "style =" float: none; "Title =" 11.jpg" alt = "wkiom1on562yt_meaaakfgsdces794.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/30/76/wKioL1On54DDe9M_AADHUbwVMx8837.jpg "style =" float: none; "Title =" 12.jpg" alt = "wkiol1on54dde9m_aadhubwvmx8837.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/30/77/wKiom1On567QUf5uAAAS1x9hSCw461.jpg "style =" float: none; "Title =" 13.jpg" alt = "wkiom1on567quf5uaaas1x9hscw461.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/30/77/wKiom1On566SsECXAAAYZNtCyqM397.jpg "style =" float: none; "Title =" 14.jpg" alt = "wkiom1on566ssecxaaayzntcyqm397.jpg"/>
Vi. Configure installation response parameters
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/30/76/wKioL1On54OAEYqBAAC0not5X3w571.jpg "style =" float: none; "Title =" 15.jpg" alt = "wkiol1on54oaeyqbaac0not5x3w571.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/30/76/wKioL1On54SBnhIXAAANovk3EcU851.jpg "style =" float: none; "Title =" 16.jpg" alt = "wkiol1on54sbnhixaaanovk3ecu851.jpg"/>
The root password must be RedHat.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/30/77/wKiom1On57OwiXcQAAGsgQq27nU804.jpg "style =" float: none; "Title =" 17.jpg" alt = "wkiom1on57owixcqaagsgqq27nu804.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/30/77/wKiom1On57PR-cKzAADqwecNrH8587.jpg "style =" float: none; "Title =" 18.jpg" alt = "wKiom1On57PR-cKzAADqwecNrH8587.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/30/76/wKioL1On54bwiossAAFdDqC857c041.jpg "style =" float: none; "Title =" 19.jpg" alt = "wkiol1on54bwiossaafddqc857c041.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/30/77/wKiom1On57XRMIeXAAFz33iRpHI915.jpg "style =" float: none; "Title =" javasjpg" alt = "wkiom1on57xrmiexaafz33irphi915.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/30/77/wKiom1On59Ow-tscAAEZqsdvDQw933.jpg "style =" float: none; "Title =" 21.jpg" alt = "wKiom1On59Ow-tscAAEZqsdvDQw933.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/30/76/wKioL1On56bhg_CjAAEgi6h5RV0886.jpg "style =" float: none; "Title =" 22.jpg" alt = "wkiol1on56bhg_cjaaegi6h5rv0886.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/30/77/wKiom1On59XR0rOEAAGHro56TvE762.jpg "style =" float: none; "Title =" 23.jpg" alt = "wkiom1on59xr0roeaaghro56tve762.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/30/77/wKiom1On59WADXs_AADNtZPR5aM687.jpg "style =" float: none; "Title =" 24.jpg" alt = "wkiom1on59wadxs_aadntzpr5am687.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/30/76/wKioL1On56eCAjIOAAAn8qLHLNM230.jpg "style =" float: none; "Title =" 25.jpg" alt = "wkiol1on56ecajioaaan8qlhlnm230.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/30/77/wKiom1On59ajvW1WAABeNe9Rw2g578.jpg "style =" float: none; "Title =" 26.jpg" alt = "wkiom1on59ajvw1waabene9rw2g578.jpg"/>
This article is from the "I learn how to use" blog, please be sure to keep this source http://593095349.blog.51cto.com/8497121/1429960