First, people often think that installing the operating system is to install an optical drive on a computer drive, and then press the next step until the computer restarts to complete the installation, or install it through an advanced USB flash drive, however, have you ever thought about purchasing a computer in a classroom or when a company opens business, the general installation methods such as optical drive installation and USB flash drive are no longer suitable, and administrators cannot afford this time, in this case, you need to install the operating system in batches to free the Administrator time. The advantage of operating system deployment in batches is that it saves time and effort and allows multiple machines to install the operating system environment simultaneously: RHEL5.
First, people often think that installing the operating system is to install an optical drive on a computer drive, and then press the next step until the computer restarts to complete the installation, or install it through an advanced USB flash drive, however, have you ever thought about purchasing a computer in a classroom or when a company opens business, the general installation methods such as optical drive installation and USB flash drive are no longer suitable, and administrators cannot afford this time, in this case, you need to install the operating system in batches to free the Administrator time. The advantage of operating system deployment in batches is that it saves time and effort and allows multiple machines to install the operating system at the same time.
Environment: RHEL5.5 vmware9.0
Preparations before installation: Disable SElinux to configure the IP address and configure the yum source.
Lab Note: The NIC must support PXE startup (supported by vmware by default). The server can download cobbler and other software from the Internet.
Experiment topology:
IP Address Configuration
Here I used two NICs, eth0, to download and install software from the Internet in NAT mode.
Eth1 is used to deploy the operating system as a separate LAN VMnet2
1 # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
# Rpm-ivh rpmforge-release-0.5.1-1.el5.rf.i386.rpm
//// // #64-bit:
/// # Wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
//// # Rpm-ivh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
Mount/dev/cdrom/mnt/
2 yum install cobbler httpd rsync tftp-server xinetd dhcp
Manually enable the wsgi Module
Vim/etc/httpd/conf. d/wsgi. conf
# LoadModule wsgi_module modules/mod_wsgi.so # Remove it.
Service cobblerd restart
Service httpd restart
Cobbler import -- path =/mnt/-- name = RedHat-5-i386
Cobbler list
4. Modify the xinet. d configuration file
# Vi/etc/xinetd. d/rsync
Change disable = yes to no
# Vi/etc/xinetd. d/tftp
Change disable = yes to no
Vi/etc/cobbler/settings
Next_server: '127. 0.0.1 '// change to the local IP Address: 192.168.1.1
Server: '127. 0.0.1 '// change to local IP Address: 192.168.1.1
Manage_dhcp: 0 // change to 1 // enable DHCP Management Service