Recently, I learned from the RHCE certification course that kickstart can automatically install LINUX, so I couldn't help but find some articles on the Internet about DHCP + PXE + FTP + kickstart automatic network installation of rhel6. Then I tried to do it several times, and there were a lot of problems, but I finally solved it with the help of my colleagues! So I posted my installation steps to facilitate future queries. I also hope that other students will be interested in this practical course. I also hope you can give me some advice! -------- I recently learned in the RHCE certification course that kickstart can automatically install LINUX, so I can't help but find some articles on the Internet that I have installed rhel6 through DHCP + PXE + FTP + kickstart. Then I tried to do it several times, and there were a lot of problems, but I finally solved it with the help of my colleagues! So I posted my installation steps to facilitate future queries. I also hope that other students will be interested in this practical course. I also hope you can give me some advice!
-------------------------------I may be a gorgeous splitting line-----------------------
Virtual Machine:VMware Workstation 7.14 for linux
All operations are completed under the virtual machine, and the virtual machine Nic settings are bridging,AVirtual Machine InstalledRhel6,BThe virtual machine does not have an operating system.
ConsideringDHCPThis experiment may affect the normal network order. This experiment must be conducted without affecting the school or the company's network environment. Remember! Of course, when the VM Nic is setHost-onlyOr.
The command to be executed is in blue and the configuration file is in red.
------------------------------------------------------------------
Use all of the following experimentsRootUnder the account
First, make sure thatRhel6CD
Then we execute
Mount/dev/cd0/mnt
Attach the first disc/MntUpper
-------------------------------------------------------------------
The entire experiment requires us to useYumTo install the program, so you need to configureYum.
We execute
Vi/etc/yum. repos. d/service. repo
(YumConfiguration file does not matter the file name, as long as the end is. RepoYou can. Www.linuxidc.com may be used in subsequent experiments.YumTo install the program, as long as/Etc/yum. repos. d/Delete the automatically generated file under the file.)
Copy the following contentService. repoMedium
-----------------------------------I am a split line. Do not copy me in.----------------------------------
[Base]
Name = base
Baseurl = file: // mnt/Server
Enabled = 1
Gpgcheck = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-RedHat-release
-----------------------------------I am a split line. Do not copy me in.----------------------------------
BaseurlIs the software source, note that the localFile :///NetworkFtp ://
Gpgcheck 0Indicates no public key check,1Indicates Public Key Check
GpgkeyIs the Public Key address
------------------------------------------------------
Then execute
Yum clean all
---------------------------------------------------------
In execution
Yum makecache
---------------------------------------------------------------------
You can useYumTo install the services we need.
---------------------------------------------------------------------
ExploitationYumInstallVsfpt
Yum-y install vsftpd
----------------------------------------------------
EnableVsftp
Service vsftpd restart
---------------------------------------------------
ExploitationYumInstallTftpAndTftp-server
Yum-y install tftp
Yum-y install tftp-server
ConfigurationTftpSet
Vi/etc/xinetd. d/tftp
Copy the following contentTftpReplace original content in configuration
-----------------------------------I am a split line, do not copy me--------------------
# Default: off
# Description: The tftp server serves files using the trivial file transfer/
# Protocol. The tftp protocol is often used to boot diskless/
# Workstations, download configuration files to network-aware printers ,/
# And to start the installation process for some operating systems.
Service tftp
{
Socket_type = dgram
Protocol = udp
Wait = yes
User = root
Server =/usr/sbin/in. tftpd
Server_args =-s/tftpboot
Disable = no
Per_source = 11
CPIs = 100 2
Flags = IPv4
}
----------------------------------I am a split line, do not copy me------------------------
Automatic StartTftp
Chkconfig tftp on
RestartXinetd
Service xinetd restart
Bytes ------------------------------------------------------------------------------------
InstallDHCPBefore, cainiaoIPAddress Configuration:192.168.4.1
The preparation method is as follows:
Run
Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Copy the following contentIfcfg-eth0Medium
-----------------------------------------I'm a split line. Do not copy me.-------------------------
DEVICE = eth0
NM_CONTROLLED = yes
ONBOOT = yes
HWADDR = 00: 0c: 29: 2d: 4c: f4
TYPE = Ethernet
BOOTPROTO = none
DEFROUTE = yes
PEERROUTES = yes
20174_failure_fatal = yes
IPV6INIT = no
NAME = "System eth0"
UUID = 5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
IPADDR = 192.168.4.1
NETMASK = 255.255.255.0
GATEWAY = 192.168.4.1
USERCTL = no
-----------------------------------------I'm a split line. Do not copy me.-------------------------