The previous article introduced how to use Kickstart to deploy RedHatLinux in batches. For details, see http://www.linuxidc.com/linux/2012-05/60606.htm. Now we have a better choice. That is: Cobbler. We recommend that you first check the following content: Kickstart batch deploy redhat. System Environment: Find the default Repository in CentOS5CentOS5.4
The previous article introduced how to use Kickstart to deploy RedHat Linux in batches. For details, see http://www.linuxidc.com/linux/2012-05/60606.htm. Now we have a better choice. That is: Cobbler. We recommend that you first check the following content: Kickstart batch deploy redhat.
System Environment: CentOS 5
Cobbler cannot be found in the default Repository of CentOS5.4. Install rpmforce Repository first. Very powerful, nearly 10000 software packages.
- #32Bit:
- 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
- #64Bit:
- 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
1. Install related software:
Yum-y install cobbler dhcp httpd xinetd tftp-server
# The cobbler configuration file is in/var/lib/cobbler/and/etc/cobbler (different versions may be different)
# Xinetd tftp-server is used as a tftp server, which is required for pxe startup.
# The httpd server stores ks files and installation CDs. Note that the/var/www/cobbler directory must have sufficient space for Linux installation files (move and create soft links)
2. Check the cobbler Configuration:
- Cobbler check
#0: The 'server' field in/var/lib/cobbler/settings must be set to something other than localhost, kickor starting features will not work. this shoshould be a resolvable hostname or IP for the boot server as reachable by all machines that will use it.
#1: For PXE to be functional, the 'next _ Server' field in/var/lib/cobbler/settings must be set to something other than 127.0.0.1, and shoshould match the IP of the boot server on the PXE network.
#2: change 'disable' to 'no' in/etc/xinetd. d/tftp
# Follow the prompts to solve the problem. Set the server and next_server in/var/lib/cobbler/settings to the IP address of the server,/etc/xinetd. in d/tftp, disable = yes and manage_dhcp are set to 1 to facilitate DHCP management.