experiment
Initialization: iptables | firewalld, selinux, ntp | chrony
1 download packages (cobbler contains tftp and http, but does not include dhcp)
yum install cobbler dhcp
systemctl start tftp httpd #dhcp before without making changes to the configuration file can not be started;
2 Check cobbler configuration, the configuration file can be modified in accordance with the check result
clbbler check
3 modified configuration cobbler
vim /etc/cobbler/settings
default_password_crypted: "$ 1 ***********" # Set the root password, this value can be used to generate command openssl passwd -1 ***
server: Set here is the address of 10.10.10.254 # cobbler server
netxt_server: 10.10 .10.254 # Here is the address of tftp server
manage_dhcp: 1
systemctl restart cobblerd # reboot cobbler Service
cobbler get-loaders # download start menu
After cobbler sync # sync configuration data directory, change the configuration of the best have to perform the following, where execution may be error, finish the dhcp service to synchronize
4 Configure DHCP service (to 10.10.10.0 segment, for example)
vim /etc/cobbler/dhcp.template
subnet 10.10.10.0 netmask 255.255.255.0 {
option routers 10.10.10.254; # gateway address
option domain-name-servers 180.76.76.76; #dns address
range 10.10.10.1 10.10.10.200;} # assigned network address pool (where the unit must be in the same network segment)
After completing this process synchronization and restart dhcp
cobbler sync
systemctl start dhcpd
5 import os (image) file (after the import is completed can use the command cobbler distro view release information into the system)
cobbler import --arch=x86_64 --path=/misc/cd --name=CentOS7-x86_64
cobbler import --arch = x86_64 --path = / mnt / --name = CentOS6-x86_64 # cobbler system list can be used to view the value behind the name
6 homemade kickstart file into the shared folder, and modify (kickstart file has a default in the folder, so this step can be mounted to a system to minimize the installation)
vim /var/lib/cobbler/kickstarts/***.cfg
url --url=$tree
7 to make a boot menu (modify the default values in /var/lib/tftpboot/pxelinux.cfg/default file)
cobbler profile add --name=CentOS7.6-x86_64_mini --distro=CentOS7.6-x86_64 --kickstart=/var/lib/cobbler/kickstarts/ks7_mini.cfg