Directly go to the topic. There are too many servers to be installed this time, and the time requirement is tight. At the same time, the DVD disc is limited. Therefore, you should consider using network-based installation. I have already installed it, so now I want to recall my thoughts and look at the configuration file. I also know that some of my predecessors have done some tutorials. I will share my experience with you. First, let's talk about this installation requirement: all servers have the same configuration and the same hard disk configuration, both of which are 2*300 GB, and RAID1 is configured using the RAID card. Therefore, the final result is that each server uses GB of space, so I am on a virtual machine
Directly go to the topic. There are too many servers to be installed this time, and the time requirement is tight. At the same time, the DVD disc is limited. Therefore, you should consider using network-based installation.
I have already installed it, so now I want to recall my thoughts and look at the configuration file. I also know that some of my predecessors have done some tutorials. I will share my experience with you. First, let's talk about this installation requirement: all servers have the same configuration and the same hard disk configuration, both of which are 2*300 GB, and RAID 1 is configured with RAID card. The final result is that each server uses GB of space, therefore, I divide the hard disk size in the virtual machine into 300 GB. Then partition according to the following situation:/20 Gswap 32G/u01 all remaining due to fear of future expansion, so/u01 is divided into LVM. All packages are installed at the same time. In this case, RedHat 5 or later versions are under pressure, which takes about 10 minutes. After the configuration is complete, the virtual machine is installed. After installing this virtual machine, you must first go to the/root directory after installation. Find a file anaconda-ks.cfg will certainly have, this file is to record all the installation information, you can use the WordPad or some text software to open a look inside the specific content, you can also use the cat anaconda-ks.cfg directly in the system to view it. When viewing it, we recommend that you back up this file because you need to change it later. Step 1: configure the DHCP server, because the installation of the server is all-inclusive, you can directly configure the configuration file of the dhcp server. [Root @ localhost vsftpd] # cat/etc/dhcpd. conf
Ddns-update-style interim;
Ignore client-updates; subnet 192.168.0.0 netmask 255.255.255.0 {# --- default gateway
Option routers 192.168.0.1; // gateway Configuration
Option subnet-mask limit 255.0; // set the subnet mask.
Filename "pxelinux.0"; // The Name Of The Startup file, which can be used here. It is not recommended to write an absolute path.
Next-server 192.168.0.128; // specify the location of the tftp server
# Option nis-domain "domain.org ";
# Option domain-name "domain.org ";
Option domain-name-servers 192.168.0.128;
# Option ntp-servers 192.168.1.1;
# Option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- You understand Netbios very well
# Option netbios-node-type 2; range dynamic-bootp 192.168.0.131 192.168.0.254; // set the IP address segment allocated by DHCP
Default-lease-time 21600;
Max-lease-time 43200;
# We want the nameserver to appear at a fixed address
# Host ns {
# Next-server marvin.redhat.com;
# Hardware ethernet 12: 34: 56: 78: AB: CD;
# Fixed-address 207.175.42.254;
#}} As shown in the code above: the yellow annotation must be modified according to the actual situation.
As shown above, the tftp server needs to be configured as needed. First, create the directory/tftpboot [root @ localhost vsftpd] # create/tftpboot/pxelinux next to mkdir/tftpboot. cfg directory [root @ localhost tftpboot] # mkdir pxelinux. after cfg is set up, the following situation occurs: [root @ localhost/] # ls/tftpboot/-al
Total 9844
Drwxr-xr-x 4 root 4096 Dec 20 13:45.
Drwxr-xr-x 28 root 4096 Dec 21 ..
Drwxr-xr-x 2 root 4096 Dec 21 12:20 pxelinux. cfg next, copy the/ur/lib/syslinux/pxelinux.0 file to the/tftpboot directory [root @ localhost/] # cp/usr/lib/syslinux/pxelinux.0/tftpboot /. pxelinux.0 configured in the dhcpd configuration file, but how does one find the pxelinux.0 file? The tftp protocol is used here. Since tftp is used, you need to configure tftp