cobbler简介
Cobbler是一个Linux服务器安装的服务,可以通过网络启动(PXE)的方式来快速安装、重装物理服务器和虚拟机,同时还可以管理DHCP,DNS等。
Cobbler可以使用命令行方式管理,也提供了基于Web的界面管理工具(cobbler-web),还提供了API接口,可以方便二次开发使用。
Cobbler是较早前的kickstart的升级版,优点是比较容易配置,还自带web界面比较易于管理。
Cobbler内置了一个轻量级配置管理系统,但它也支持和其它配置管理系统集成,如Puppet,暂时不支持SaltStack。
cobbler集成的服务
PXE服务支持
DHCP服务管理
DNS服务管理(可选bind,dnsmasq)
电源管理
Kickstart服务支持
YUM仓库管理
TFTP(PXE启动时需要)
Apache(提供kickstart的安装源,并提供定制化的kickstart配置)
部署
[root@wjc ~]# systemctl disable --now firewalld.service
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@wjc ~]# sed -ri 's/^(SELINUX=).*/\1disabled/g' /etc/selinux/config
[root@wjc ~]# reboot
[root@wjc ~]# getenforce
Disabled
[root@wjc ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
--2022-09-25 17:55:37-- https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
Resolving mirrors.aliyun.com (mirrors.aliyun.com)... 116.163.36.241, 116.163.36.240, 116.163.36.244, ...
Connecting to mirrors.aliyun.com (mirrors.aliyun.com)|116.163.36.241|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2495 (2.4K) [application/octet-stream]
Saving to: ‘/etc/yum.repos.d/CentOS-Base.repo’
/etc/yum.repos.d/CentO 100%[===========================>] 2.44K --.-KB/s in 0.007s
2022-09-25 17:55:37 (330 KB/s) - ‘/etc/yum.repos.d/CentOS-Base.repo’ saved [2495/2495]
[root@wjc ~]# yum install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm
CentOS-8.5.2111 - Base - mirrors.aliyun.com 61 kB/s | 3.9 kB 00:00
CentOS-8.5.2111 - Extras - mirrors.aliyun.com 31 kB/s | 1.5 kB 00:00
CentOS-8.5.2111 - AppStream - mirrors.aliyun.com 70 kB/s | 4.3 kB 00:00
MySQL Connectors Community 5.8 kB/s | 2.6 kB 00:00
MySQL Tools Community 11 kB/s | 2.6 kB 00:00
MySQL 5.7 Community Server 10 kB/s | 2.6 kB 00:00
epel-release-latest-8.noarch.rpm 108 kB/s | 24 kB 00:00
Dependencies resolved.
===========================================================================================
Package Architecture Version Repository Size
===========================================================================================
Installing:
epel-release noarch 8-17.el8 @commandline 24 k
Transaction Summary
===========================================================================================
Install 1 Package
Total size: 24 k
Installed size: 34 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : epel-release-8-17.el8.noarch 1/1
Running scriptlet: epel-release-8-17.el8.noarch 1/1
Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.
Verifying : epel-release-8-17.el8.noarch 1/1
Installed:
epel-release-8-17.el8.noarch
Complete!
[root@wjc ~]# sed -i 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.aliyun.com|' /etc/yum.repos.d/epel*
[root@wjc ~]# sed -i 's|^metalink|#metalink|' /etc/yum.repos.d/epel*
[root@wjc ~]# dnf -y module enable cobbler:3
Extra Packages for Enterprise Linux 8 - x86_64 256 kB/s | 13 MB 00:51
Extra Packages for Enterprise Linux Modular 8 - x86_64 189 kB/s | 733 kB 00:03
Last metadata expiration check: 0:00:03 ago on Sun 25 Sep 2022 05:58:44 PM CST.
Dependencies resolved.
===========================================================================================
Package Architecture Version Repository Size
===========================================================================================
Enabling module streams:
cobbler 3
Transaction Summary
===========================================================================================
Complete!
[root@wjc ~]# dnf -y install httpd dhcp* tftp tftp-server cobbler cobbler-web pykickstart rsync rsync-daemon
Last metadata expiration check: 0:00:11 ago on Sun 25 Sep 2022 05:58:44 PM CST.
Dependencies resolved.
===========================================================================================
Package Arch Version Repository Size
===========================================================================================
Installing:
cobbler noarch 3.2.2-13.module_el8+15284+5d084733 epel-modular 606 k
cobbler-web noarch 3.2.2-13.module_el8+15284+5d084733 epel-modular 176 k
dhcp-client x86_64 12:4.3.6-45.el8 base 318 k
dhcp-common noarch 12:4.3.6-45.el8 base 207 k
dhcp-libs x86_64 12:4.3.6-45.el8 base 148 k
dhcp-relay x86_64 12:4.3.6-45.el8 base 236 k
dhcp-server x86_64 12:4.3.6-45.el8 base 530 k
dhcpd-pools x86_64 3.2-1.el8 epel 133 k
dhcpdump x86_64 1.8-1.el8 epel 22 k
dhcping x86_64 1.2-23.el8 epel 24 k
httpd x86_64 2.4.37-43.module_el8.5.0+1022+b541f3b1 AppStream 1.4 M
pykickstart noarch 3.16.14-1.el8 AppStream 65 k
rsync x86_64 3.1.3-12.el8 base 405 k
rsync-daemon noarch 3.1.3-12.el8 base 43 k
tftp x86_64 5.2-24.el8 AppStream 42 k
tftp-server x86_64 5.2-24.el8 AppStream 50 k
Installing dependencies:
apr x86_64 1.6.3-12.el8 AppStream 129 k
apr-util x86_64 1.6.1-6.el8 AppStream 105 k
bind-export-libs x86_64 32:9.11.26-6.el8 base 1.1 M
centos-logos-httpd noarch 85.8-2.el8 base 75 k
createrepo_c x86_64 0.17.2-3.el8 AppStream 88 k
createrepo_c-libs x86_64 0.17.2-3.el8 AppStream 115 k
drpm x86_64 0.4.1-3.el8 AppStream 68 k
efi-filesystem noarch 3-3.el8 base 9.0 k
genisoimage x86_64 1.1.11-39.el8 AppStream 316 k
httpd-filesystem noarch 2.4.37-43.module_el8.5.0+1022+b541f3b1 AppStream 39 k
httpd-tools x86_64 2.4.37-43.module_el8.5.0+1022+b541f3b1 AppStream 107 k
ipcalc x86_64 0.2.4-4.el8 base 38 k
libburn x86_64 1.4.8-3.el8 AppStream 173 k
libisoburn x86_64 1.4.8-4.el8 AppStream 410 k
libisofs x86_64 1.4.8-3.el8 AppStream 221 k
libusal x86_64 1.1.11-39.el8 AppStream 145 k
lm_sensors-libs x86_64 3.4.0-23.20180522git70f7e08.el8 base 59 k
mailcap noarch 2.1.48-3.el8 base 39 k
mariadb-connector-c x86_64 3.1.11-2.el8_3 AppStream 200 k
mariadb-connector-c-config
noarch 3.1.11-2.el8_3 AppStream 15 k
mod_http2 x86_64 1.15.7-3.module_el8.4.0+778+c970deab AppStream 154 k
mod_ssl x86_64 1:2.4.37-43.module_el8.5.0+1022+b541f3b1 AppStream 136 k
net-snmp-agent-libs x86_64 1:5.8-22.el8 AppStream 748 k
net-snmp-libs x86_64 1:5.8-22.el8 base 827 k
net-snmp-perl x86_64 1:5.8-22.el8 AppStream 358 k
perl-JSON noarch 2.97.001-2.el8 AppStream 96 k
perl-Mail-Sender noarch 1:0.903-7.el8 AppStream 57 k
python3-asgiref noarch 3.2.10-1.el8 epel 39 k
python3-bson x86_64 3.7.0-1.module_el8.5.0+761+faacb0fb AppStream 108 k
python3-chardet noarch 3.0.4-7.el8 base 195 k
python3-cheetah x86_64 3.2.3-2.el8 epel 336 k
python3-contextlib2 noarch 0.6.0.post1-1.el8 epel 26 k
python3-distro noarch 1.4.0-2.module_el8.5.0+761+faacb0fb AppStream 37 k
python3-django3 noarch 3.1.7-1.el8 epel 4.7 M
python3-dns noarch 1.15.0-10.el8 base 253 k
python3-idna noarch 2.5-5.el8 base 97 k
python3-kickstart noarch 3.16.14-1.el8 AppStream 450 k
python3-ldap3 noarch 2.8.1-2.el8 epel 535 k
python3-magic noarch 5.33-20.el8 base 46 k
python3-mod_wsgi x86_64 4.6.4-4.el8 AppStream 2.5 M
python3-netaddr noarch 0.7.19-8.el8 AppStream 1.5 M
python3-ordered-set noarch 2.0.2-4.el8 AppStream 17 k
python3-pip noarch 9.0.3-20.el8 AppStream 20 k
python3-pyasn1 noarch 0.3.7-6.el8 AppStream 126 k
python3-pycurl x86_64 7.43.0.2-4.el8 AppStream 227 k
python3-pymongo x86_64 3.7.0-1.module_el8.5.0+761+faacb0fb AppStream 333 k
python3-pysocks noarch 1.6.8-3.el8 base 34 k
python3-pytz noarch 2017.2-9.el8 AppStream 54 k
python3-pyyaml x86_64 3.12-12.el8 base 193 k
python3-requests noarch 2.20.0-2.1.el8_1 base 123 k
python3-schema noarch 0.7.3-1.el8 epel 36 k
python3-setuptools noarch 39.2.0-6.el8 base 163 k
python3-simplejson x86_64 3.17.0-2.el8 epel 286 k
python3-sqlparse noarch 0.2.4-6.el8 epel 82 k
python3-tornado x86_64 6.0.2-1.el8 epel 722 k
python3-urllib3 noarch 1.24.2-5.el8 base 177 k
python36 x86_64 3.6.8-38.module_el8.5.0+895+a459eca8 AppStream 19 k
sscg x86_64 2.3.3-14.el8 AppStream 49 k
xorriso x86_64 1.4.8-4.el8 AppStream 281 k
Installing weak dependencies:
apr-util-bdb x86_64 1.6.1-6.el8 AppStream 25 k
apr-util-openssl x86_64 1.6.1-6.el8 AppStream 27 k
bash-completion noarch 1:2.7-5.el8 base 274 k
geolite2-city noarch 20180605-1.el8 AppStream 19 M
geolite2-country noarch 20180605-1.el8 AppStream 1.0 M
grub2-efi-ia32 x86_64 1:2.02-106.el8 base 454 k
grub2-efi-x64 x86_64 1:2.02-106.el8 base 478 k
libmaxminddb x86_64 1.2.0-10.el8 AppStream 33 k
python-django3-bash-completion
noarch 3.1.7-1.el8 epel 16 k
Downgrading:
platform-python-pip noarch 9.0.3-20.el8 base 1.7 M
Enabling module streams:
httpd 2.4
python36 3.6
Transaction Summary
===========================================================================================
Install 84 Packages
Downgrade 1 Package
Total download size: 47 M
Downloading Packages:
(1/85): bash-completion-2.7-5.el8.noarch.rpm 168 kB/s | 274 kB 00:01
(2/85): centos-logos-httpd-85.8-2.el8.noarch.rpm 188 kB/s | 75 kB 00:00
(3/85): dhcp-client-4.3.6-45.el8.x86_64.rpm 186 kB/s | 318 kB 00:01
(4/85): dhcp-common-4.3.6-45.el8.noarch.rpm 189 kB/s | 207 kB 00:01
(5/85): dhcp-libs-4.3.6-45.el8.x86_64.rpm 176 kB/s | 148 kB 00:00
(6/85): bind-export-libs-9.11.26-6.el8.x86_64.rpm 181 kB/s | 1.1 MB 00:06
(7/85): dhcp-relay-4.3.6-45.el8.x86_64.rpm 185 kB/s | 236 kB 00:01
(8/85): efi-filesystem-3-3.el8.noarch.rpm 94 kB/s | 9.0 kB 00:00
(9/85): dhcp-server-4.3.6-45.el8.x86_64.rpm 183 kB/s | 530 kB 00:02
(10/85): platform-python-pip-9.0.3-20.el8.noarch.rpm 182 kB/s | 1.7 MB 00:09
(11/85): grub2-efi-ia32-2.02-106.el8.x86_64.rpm 172 kB/s | 454 kB 00:02
(12/85): ipcalc-0.2.4-4.el8.x86_64.rpm 165 kB/s | 38 kB 00:00
(13/85): mailcap-2.1.48-3.el8.noarch.rpm 163 kB/s | 39 kB 00:00
(14/85): lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x 146 kB/s | 59 kB 00:00
(15/85): python3-chardet-3.0.4-7.el8.noarch.rpm 171 kB/s | 195 kB 00:01
(16/85): grub2-efi-x64-2.02-106.el8.x86_64.rpm 181 kB/s | 478 kB 00:02
(17/85): python3-idna-2.5-5.el8.noarch.rpm 168 kB/s | 97 kB 00:00
(18/85): python3-dns-1.15.0-10.el8.noarch.rpm 182 kB/s | 253 kB 00:01
(19/85): python3-magic-5.33-20.el8.noarch.rpm 156 kB/s | 46 kB 00:00
(20/85): python3-pysocks-1.6.8-3.el8.noarch.rpm 150 kB/s | 34 kB 00:00
(21/85): python3-requests-2.20.0-2.1.el8_1.noarch.rpm 168 kB/s | 123 kB 00:00
(22/85): python3-pyyaml-3.12-12.el8.x86_64.rpm 156 kB/s | 193 kB 00:01
(23/85): python3-setuptools-39.2.0-6.el8.noarch.rpm 175 kB/s | 163 kB 00:00
(24/85): net-snmp-libs-5.8-22.el8.x86_64.rpm 181 kB/s | 827 kB 00:04
(25/85): rsync-daemon-3.1.3-12.el8.noarch.rpm 166 kB/s | 43 kB 00:00
(26/85): python3-urllib3-1.24.2-5.el8.noarch.rpm 178 kB/s | 177 kB 00:00
(27/85): apr-1.6.3-12.el8.x86_64.rpm 181 kB/s | 129 kB 00:00
(28/85): apr-util-1.6.1-6.el8.x86_64.rpm 175 kB/s | 105 kB 00:00
(29/85): apr-util-bdb-1.6.1-6.el8.x86_64.rpm 158 kB/s | 25 kB 00:00
(30/85): apr-util-openssl-1.6.1-6.el8.x86_64.rpm 166 kB/s | 27 kB 00:00
(31/85): createrepo_c-0.17.2-3.el8.x86_64.rpm 178 kB/s | 88 kB 00:00
(32/85): createrepo_c-libs-0.17.2-3.el8.x86_64.rpm 179 kB/s | 115 kB 00:00
(33/85): drpm-0.4.1-3.el8.x86_64.rpm 181 kB/s | 68 kB 00:00
(34/85): rsync-3.1.3-12.el8.x86_64.rpm 166 kB/s | 405 kB 00:02
(35/85): genisoimage-1.1.11-39.el8.x86_64.rpm 172 kB/s | 316 kB 00:01
(36/85): geolite2-country-20180605-1.el8.noarch.rpm 180 kB/s | 1.0 MB 00:05
(37/85): httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b5 146 kB/s | 39 kB 00:00
(38/85): httpd-tools-2.4.37-43.module_el8.5.0+1022+b541f3b 153 kB/s | 107 kB 00:00
(39/85): libburn-1.4.8-3.el8.x86_64.rpm 174 kB/s | 173 kB 00:00
(40/85): httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_ 180 kB/s | 1.4 MB 00:07
(41/85): libisoburn-1.4.8-4.el8.x86_64.rpm 177 kB/s | 410 kB 00:02
(42/85): libmaxminddb-1.2.0-10.el8.x86_64.rpm 161 kB/s | 33 kB 00:00
(43/85): libisofs-1.4.8-3.el8.x86_64.rpm 180 kB/s | 221 kB 00:01
(44/85): libusal-1.1.11-39.el8.x86_64.rpm 175 kB/s | 145 kB 00:00
(45/85): mariadb-connector-c-config-3.1.11-2.el8_3.noarch. 123 kB/s | 15 kB 00:00
(46/85): mariadb-connector-c-3.1.11-2.el8_3.x86_64.rpm 178 kB/s | 200 kB 00:01
(47/85): mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x8 181 kB/s | 154 kB 00:00
(48/85): mod_ssl-2.4.37-43.module_el8.5.0+1022+b541f3b1.x8 178 kB/s | 136 kB 00:00
(49/85): net-snmp-perl-5.8-22.el8.x86_64.rpm 173 kB/s | 358 kB 00:02
(50/85): perl-JSON-2.97.001-2.el8.noarch.rpm 153 kB/s | 96 kB 00:00
(51/85): perl-Mail-Sender-0.903-7.el8.noarch.rpm 161 kB/s | 57 kB 00:00
(52/85): pykickstart-3.16.14-1.el8.noarch.rpm 179 kB/s | 65 kB 00:00
(53/85): net-snmp-agent-libs-5.8-22.el8.x86_64.rpm 177 kB/s | 748 kB 00:04
(54/85): python3-bson-3.7.0-1.module_el8.5.0+761+faacb0fb. 174 kB/s | 108 kB 00:00
(55/85): python3-distro-1.4.0-2.module_el8.5.0+761+faacb0f 150 kB/s | 37 kB 00:00
(56/85): python3-kickstart-3.16.14-1.el8.noarch.rpm 185 kB/s | 450 kB 00:02
(57/85): python3-netaddr-0.7.19-8.el8.noarch.rpm 181 kB/s | 1.5 MB 00:08
(58/85): python3-ordered-set-2.0.2-4.el8.noarch.rpm 132 kB/s | 17 kB 00:00
(59/85): python3-pip-9.0.3-20.el8.noarch.rpm 135 kB/s | 20 kB 00:00
(60/85): python3-pyasn1-0.3.7-6.el8.noarch.rpm 185 kB/s | 126 kB 00:00
(61/85): python3-pycurl-7.43.0.2-4.el8.x86_64.rpm 178 kB/s | 227 kB 00:01
(62/85): python3-mod_wsgi-4.6.4-4.el8.x86_64.rpm 181 kB/s | 2.5 MB 00:13
(63/85): python3-pytz-2017.2-9.el8.noarch.rpm 165 kB/s | 54 kB 00:00
(64/85): python36-3.6.8-38.module_el8.5.0+895+a459eca8.x86 144 kB/s | 19 kB 00:00
(65/85): sscg-2.3.3-14.el8.x86_64.rpm 168 kB/s | 49 kB 00:00
(66/85): tftp-5.2-24.el8.x86_64.rpm 174 kB/s | 42 kB 00:00
(67/85): python3-pymongo-3.7.0-1.module_el8.5.0+761+faacb0 180 kB/s | 333 kB 00:01
(68/85): tftp-server-5.2-24.el8.x86_64.rpm 173 kB/s | 50 kB 00:00
(69/85): dhcpd-pools-3.2-1.el8.x86_64.rpm 174 kB/s | 133 kB 00:00
(70/85): dhcpdump-1.8-1.el8.x86_64.rpm 157 kB/s | 22 kB 00:00
(71/85): dhcping-1.2-23.el8.x86_64.rpm 160 kB/s | 24 kB 00:00
(72/85): python-django3-bash-completion-3.1.7-1.el8.noarch 164 kB/s | 16 kB 00:00
(73/85): python3-asgiref-3.2.10-1.el8.noarch.rpm 164 kB/s | 39 kB 00:00
(74/85): xorriso-1.4.8-4.el8.x86_64.rpm 160 kB/s | 281 kB 00:01
(75/85): python3-contextlib2-0.6.0.post1-1.el8.noarch.rpm 129 kB/s | 26 kB 00:00
(76/85): python3-cheetah-3.2.3-2.el8.x86_64.rpm 175 kB/s | 336 kB 00:01
(77/85): python3-ldap3-2.8.1-2.el8.noarch.rpm 187 kB/s | 535 kB 00:02
(78/85): python3-schema-0.7.3-1.el8.noarch.rpm 173 kB/s | 36 kB 00:00
(79/85): python3-simplejson-3.17.0-2.el8.x86_64.rpm 184 kB/s | 286 kB 00:01
(80/85): python3-sqlparse-0.2.4-6.el8.noarch.rpm 190 kB/s | 82 kB 00:00
(81/85): python3-tornado-6.0.2-1.el8.x86_64.rpm 182 kB/s | 722 kB 00:03
(82/85): cobbler-3.2.2-13.module_el8+15284+5d084733.noarch 189 kB/s | 606 kB 00:03
(83/85): cobbler-web-3.2.2-13.module_el8+15284+5d084733.no 182 kB/s | 176 kB 00:00
(84/85): python3-django3-3.1.7-1.el8.noarch.rpm 188 kB/s | 4.7 MB 00:25
(85/85): geolite2-city-20180605-1.el8.noarch.rpm 217 kB/s | 19 MB 01:29
-------------------------------------------------------------------------------------------
Total 452 kB/s | 47 MB 01:45
Extra Packages for Enterprise Linux 8 - x86_64 1.6 MB/s | 1.6 kB 00:00
Importing GPG key 0x2F86D6A1:
Userid : "Fedora EPEL (8) <epel@fedoraproject.org>"
Fingerprint: 94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : apr-1.6.3-12.el8.x86_64 1/86
Running scriptlet: apr-1.6.3-12.el8.x86_64 1/86
Installing : apr-util-bdb-1.6.1-6.el8.x86_64 2/86
Installing : apr-util-openssl-1.6.1-6.el8.x86_64 3/86
Installing : apr-util-1.6.1-6.el8.x86_64 4/86
Running scriptlet: apr-util-1.6.1-6.el8.x86_64 4/86
Installing : dhcp-libs-12:4.3.6-45.el8.x86_64 5/86
Installing : dhcp-common-12:4.3.6-45.el8.noarch 6/86
Installing : bind-export-libs-32:9.11.26-6.el8.x86_64 7/86
Running scriptlet: bind-export-libs-32:9.11.26-6.el8.x86_64 7/86
Installing : libisofs-1.4.8-3.el8.x86_64 8/86
Running scriptlet: libisofs-1.4.8-3.el8.x86_64 8/86
Installing : libburn-1.4.8-3.el8.x86_64 9/86
Running scriptlet: libburn-1.4.8-3.el8.x86_64 9/86
Running scriptlet: httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarc 10/86
Installing : httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarc 10/86
Installing : geolite2-country-20180605-1.el8.noarch 11/86
Installing : geolite2-city-20180605-1.el8.noarch 12/86
Installing : drpm-0.4.1-3.el8.x86_64 13/86
Installing : rsync-3.1.3-12.el8.x86_64 14/86
Installing : net-snmp-libs-1:5.8-22.el8.x86_64 15/86
Installing : efi-filesystem-3-3.el8.noarch 16/86
Installing : bash-completion-1:2.7-5.el8.noarch 17/86
Installing : python-django3-bash-completion-3.1.7-1.el8.noarch 18/86
Installing : grub2-efi-ia32-1:2.02-106.el8.x86_64 19/86
warning: /boot/grub2/grubenv created as /boot/grub2/grubenv.rpmnew
Installing : grub2-efi-x64-1:2.02-106.el8.x86_64 20/86
Installing : createrepo_c-libs-0.17.2-3.el8.x86_64 21/86
Installing : createrepo_c-0.17.2-3.el8.x86_64 22/86
Installing : libmaxminddb-1.2.0-10.el8.x86_64 23/86
Running scriptlet: libmaxminddb-1.2.0-10.el8.x86_64 23/86
Installing : ipcalc-0.2.4-4.el8.x86_64 24/86
Installing : libisoburn-1.4.8-4.el8.x86_64 25/86
Running scriptlet: libisoburn-1.4.8-4.el8.x86_64 25/86
Installing : xorriso-1.4.8-4.el8.x86_64 26/86
Running scriptlet: xorriso-1.4.8-4.el8.x86_64 26/86
Installing : httpd-tools-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 27/86
Installing : python3-sqlparse-0.2.4-6.el8.noarch 28/86
Installing : python3-simplejson-3.17.0-2.el8.x86_64 29/86
Installing : python3-contextlib2-0.6.0.post1-1.el8.noarch 30/86
Installing : python3-schema-0.7.3-1.el8.noarch 31/86
Installing : python3-cheetah-3.2.3-2.el8.x86_64 32/86
Installing : python3-asgiref-3.2.10-1.el8.noarch 33/86
Installing : tftp-server-5.2-24.el8.x86_64 34/86
Running scriptlet: tftp-server-5.2-24.el8.x86_64 34/86
Installing : sscg-2.3.3-14.el8.x86_64 35/86
Installing : python3-pytz-2017.2-9.el8.noarch 36/86
Installing : python3-pycurl-7.43.0.2-4.el8.x86_64 37/86
Installing : python3-tornado-6.0.2-1.el8.x86_64 38/86
Installing : python3-pyasn1-0.3.7-6.el8.noarch 39/86
Installing : python3-ldap3-2.8.1-2.el8.noarch 40/86
Installing : python3-ordered-set-2.0.2-4.el8.noarch 41/86
Installing : python3-netaddr-0.7.19-8.el8.noarch 42/86
Installing : python3-distro-1.4.0-2.module_el8.5.0+761+faacb0fb.noarch 43/86
Installing : python3-bson-3.7.0-1.module_el8.5.0+761+faacb0fb.x86_64 44/86
Installing : python3-pymongo-3.7.0-1.module_el8.5.0+761+faacb0fb.x86_64 45/86
Installing : perl-Mail-Sender-1:0.903-7.el8.noarch 46/86
Installing : perl-JSON-2.97.001-2.el8.noarch 47/86
Installing : mariadb-connector-c-config-3.1.11-2.el8_3.noarch 48/86
Installing : mariadb-connector-c-3.1.11-2.el8_3.x86_64 49/86
Installing : libusal-1.1.11-39.el8.x86_64 50/86
Running scriptlet: libusal-1.1.11-39.el8.x86_64 50/86
Installing : genisoimage-1.1.11-39.el8.x86_64 51/86
Running scriptlet: genisoimage-1.1.11-39.el8.x86_64 51/86
Installing : python3-setuptools-39.2.0-6.el8.noarch 52/86
Installing : python3-pyyaml-3.12-12.el8.x86_64 53/86
Installing : python3-pysocks-1.6.8-3.el8.noarch 54/86
Installing : python3-urllib3-1.24.2-5.el8.noarch 55/86
Installing : python3-magic-5.33-20.el8.noarch 56/86
Installing : python3-idna-2.5-5.el8.noarch 57/86
Installing : python3-dns-1.15.0-10.el8.noarch 58/86
Installing : python3-chardet-3.0.4-7.el8.noarch 59/86
Installing : python3-requests-2.20.0-2.1.el8_1.noarch 60/86
Installing : python3-kickstart-3.16.14-1.el8.noarch 61/86
Installing : mailcap-2.1.48-3.el8.noarch 62/86
Installing : lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64 63/86
Running scriptlet: lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64 63/86
Installing : net-snmp-agent-libs-1:5.8-22.el8.x86_64 64/86
Installing : net-snmp-perl-1:5.8-22.el8.x86_64 65/86
Installing : centos-logos-httpd-85.8-2.el8.noarch 66/86
Installing : mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64 67/86
Installing : httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 68/86
Running scriptlet: httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 68/86
Installing : python3-mod_wsgi-4.6.4-4.el8.x86_64 69/86
Installing : mod_ssl-1:2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 70/86
Downgrading : platform-python-pip-9.0.3-20.el8.noarch 71/86
Installing : python36-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64 72/86
Running scriptlet: python36-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64 72/86
Installing : python3-pip-9.0.3-20.el8.noarch 73/86
Installing : python3-django3-3.1.7-1.el8.noarch 74/86
Running scriptlet: cobbler-3.2.2-13.module_el8+15284+5d084733.noarch 75/86
Installing : cobbler-3.2.2-13.module_el8+15284+5d084733.noarch 75/86
Running scriptlet: cobbler-3.2.2-13.module_el8+15284+5d084733.noarch 75/86
Installing : cobbler-web-3.2.2-13.module_el8+15284+5d084733.noarch 76/86
Running scriptlet: cobbler-web-3.2.2-13.module_el8+15284+5d084733.noarch 76/86
Installing : dhcpd-pools-3.2-1.el8.x86_64 77/86
Installing : pykickstart-3.16.14-1.el8.noarch 78/86
Installing : dhcp-client-12:4.3.6-45.el8.x86_64 79/86
Installing : rsync-daemon-3.1.3-12.el8.noarch 80/86
Running scriptlet: rsync-daemon-3.1.3-12.el8.noarch 80/86
Installing : dhcp-relay-12:4.3.6-45.el8.x86_64 81/86
Running scriptlet: dhcp-relay-12:4.3.6-45.el8.x86_64 81/86
Running scriptlet: dhcp-server-12:4.3.6-45.el8.x86_64 82/86
Installing : dhcp-server-12:4.3.6-45.el8.x86_64 82/86
Running scriptlet: dhcp-server-12:4.3.6-45.el8.x86_64 82/86
Installing : dhcping-1.2-23.el8.x86_64 83/86
Installing : dhcpdump-1.8-1.el8.x86_64 84/86
Installing : tftp-5.2-24.el8.x86_64 85/86
Cleanup : platform-python-pip-9.0.3-22.el8.noarch 86/86
Running scriptlet: httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 86/86
Running scriptlet: cobbler-3.2.2-13.module_el8+15284+5d084733.noarch 86/86
Running scriptlet: platform-python-pip-9.0.3-22.el8.noarch 86/86
Verifying : platform-python-pip-9.0.3-20.el8.noarch 1/86
Verifying : platform-python-pip-9.0.3-22.el8.noarch 2/86
Verifying : bash-completion-1:2.7-5.el8.noarch 3/86
Verifying : bind-export-libs-32:9.11.26-6.el8.x86_64 4/86
Verifying : centos-logos-httpd-85.8-2.el8.noarch 5/86
Verifying : dhcp-client-12:4.3.6-45.el8.x86_64 6/86
Verifying : dhcp-common-12:4.3.6-45.el8.noarch 7/86
Verifying : dhcp-libs-12:4.3.6-45.el8.x86_64 8/86
Verifying : dhcp-relay-12:4.3.6-45.el8.x86_64 9/86
Verifying : dhcp-server-12:4.3.6-45.el8.x86_64 10/86
Verifying : efi-filesystem-3-3.el8.noarch 11/86
Verifying : grub2-efi-ia32-1:2.02-106.el8.x86_64 12/86
Verifying : grub2-efi-x64-1:2.02-106.el8.x86_64 13/86
Verifying : ipcalc-0.2.4-4.el8.x86_64 14/86
Verifying : lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64 15/86
Verifying : mailcap-2.1.48-3.el8.noarch 16/86
Verifying : net-snmp-libs-1:5.8-22.el8.x86_64 17/86
Verifying : python3-chardet-3.0.4-7.el8.noarch 18/86
Verifying : python3-dns-1.15.0-10.el8.noarch 19/86
Verifying : python3-idna-2.5-5.el8.noarch 20/86
Verifying : python3-magic-5.33-20.el8.noarch 21/86
Verifying : python3-pysocks-1.6.8-3.el8.noarch 22/86
Verifying : python3-pyyaml-3.12-12.el8.x86_64 23/86
Verifying : python3-requests-2.20.0-2.1.el8_1.noarch 24/86
Verifying : python3-setuptools-39.2.0-6.el8.noarch 25/86
Verifying : python3-urllib3-1.24.2-5.el8.noarch 26/86
Verifying : rsync-3.1.3-12.el8.x86_64 27/86
Verifying : rsync-daemon-3.1.3-12.el8.noarch 28/86
Verifying : apr-1.6.3-12.el8.x86_64 29/86
Verifying : apr-util-1.6.1-6.el8.x86_64 30/86
Verifying : apr-util-bdb-1.6.1-6.el8.x86_64 31/86
Verifying : apr-util-openssl-1.6.1-6.el8.x86_64 32/86
Verifying : createrepo_c-0.17.2-3.el8.x86_64 33/86
Verifying : createrepo_c-libs-0.17.2-3.el8.x86_64 34/86
Verifying : drpm-0.4.1-3.el8.x86_64 35/86
Verifying : genisoimage-1.1.11-39.el8.x86_64 36/86
Verifying : geolite2-city-20180605-1.el8.noarch 37/86
Verifying : geolite2-country-20180605-1.el8.noarch 38/86
Verifying : httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 39/86
Verifying : httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarc 40/86
Verifying : httpd-tools-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 41/86
Verifying : libburn-1.4.8-3.el8.x86_64 42/86
Verifying : libisoburn-1.4.8-4.el8.x86_64 43/86
Verifying : libisofs-1.4.8-3.el8.x86_64 44/86
Verifying : libmaxminddb-1.2.0-10.el8.x86_64 45/86
Verifying : libusal-1.1.11-39.el8.x86_64 46/86
Verifying : mariadb-connector-c-3.1.11-2.el8_3.x86_64 47/86
Verifying : mariadb-connector-c-config-3.1.11-2.el8_3.noarch 48/86
Verifying : mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64 49/86
Verifying : mod_ssl-1:2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 50/86
Verifying : net-snmp-agent-libs-1:5.8-22.el8.x86_64 51/86
Verifying : net-snmp-perl-1:5.8-22.el8.x86_64 52/86
Verifying : perl-JSON-2.97.001-2.el8.noarch 53/86
Verifying : perl-Mail-Sender-1:0.903-7.el8.noarch 54/86
Verifying : pykickstart-3.16.14-1.el8.noarch 55/86
Verifying : python3-bson-3.7.0-1.module_el8.5.0+761+faacb0fb.x86_64 56/86
Verifying : python3-distro-1.4.0-2.module_el8.5.0+761+faacb0fb.noarch 57/86
Verifying : python3-kickstart-3.16.14-1.el8.noarch 58/86
Verifying : python3-mod_wsgi-4.6.4-4.el8.x86_64 59/86
Verifying : python3-netaddr-0.7.19-8.el8.noarch 60/86
Verifying : python3-ordered-set-2.0.2-4.el8.noarch 61/86
Verifying : python3-pip-9.0.3-20.el8.noarch 62/86
Verifying : python3-pyasn1-0.3.7-6.el8.noarch 63/86
Verifying : python3-pycurl-7.43.0.2-4.el8.x86_64 64/86
Verifying : python3-pymongo-3.7.0-1.module_el8.5.0+761+faacb0fb.x86_64 65/86
Verifying : python3-pytz-2017.2-9.el8.noarch 66/86
Verifying : python36-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64 67/86
Verifying : sscg-2.3.3-14.el8.x86_64 68/86
Verifying : tftp-5.2-24.el8.x86_64 69/86
Verifying : tftp-server-5.2-24.el8.x86_64 70/86
Verifying : xorriso-1.4.8-4.el8.x86_64 71/86
Verifying : dhcpd-pools-3.2-1.el8.x86_64 72/86
Verifying : dhcpdump-1.8-1.el8.x86_64 73/86
Verifying : dhcping-1.2-23.el8.x86_64 74/86
Verifying : python-django3-bash-completion-3.1.7-1.el8.noarch 75/86
Verifying : python3-asgiref-3.2.10-1.el8.noarch 76/86
Verifying : python3-cheetah-3.2.3-2.el8.x86_64 77/86
Verifying : python3-contextlib2-0.6.0.post1-1.el8.noarch 78/86
Verifying : python3-django3-3.1.7-1.el8.noarch 79/86
Verifying : python3-ldap3-2.8.1-2.el8.noarch 80/86
Verifying : python3-schema-0.7.3-1.el8.noarch 81/86
Verifying : python3-simplejson-3.17.0-2.el8.x86_64 82/86
Verifying : python3-sqlparse-0.2.4-6.el8.noarch 83/86
Verifying : python3-tornado-6.0.2-1.el8.x86_64 84/86
Verifying : cobbler-3.2.2-13.module_el8+15284+5d084733.noarch 85/86
Verifying : cobbler-web-3.2.2-13.module_el8+15284+5d084733.noarch 86/86
Downgraded:
platform-python-pip-9.0.3-20.el8.noarch
Installed:
apr-1.6.3-12.el8.x86_64
apr-util-1.6.1-6.el8.x86_64
apr-util-bdb-1.6.1-6.el8.x86_64
apr-util-openssl-1.6.1-6.el8.x86_64
bash-completion-1:2.7-5.el8.noarch
bind-export-libs-32:9.11.26-6.el8.x86_64
centos-logos-httpd-85.8-2.el8.noarch
cobbler-3.2.2-13.module_el8+15284+5d084733.noarch
cobbler-web-3.2.2-13.module_el8+15284+5d084733.noarch
createrepo_c-0.17.2-3.el8.x86_64
createrepo_c-libs-0.17.2-3.el8.x86_64
dhcp-client-12:4.3.6-45.el8.x86_64
dhcp-common-12:4.3.6-45.el8.noarch
dhcp-libs-12:4.3.6-45.el8.x86_64
dhcp-relay-12:4.3.6-45.el8.x86_64
dhcp-server-12:4.3.6-45.el8.x86_64
dhcpd-pools-3.2-1.el8.x86_64
dhcpdump-1.8-1.el8.x86_64
dhcping-1.2-23.el8.x86_64
drpm-0.4.1-3.el8.x86_64
efi-filesystem-3-3.el8.noarch
genisoimage-1.1.11-39.el8.x86_64
geolite2-city-20180605-1.el8.noarch
geolite2-country-20180605-1.el8.noarch
grub2-efi-ia32-1:2.02-106.el8.x86_64
grub2-efi-x64-1:2.02-106.el8.x86_64
httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64
httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarch
httpd-tools-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64
ipcalc-0.2.4-4.el8.x86_64
libburn-1.4.8-3.el8.x86_64
libisoburn-1.4.8-4.el8.x86_64
libisofs-1.4.8-3.el8.x86_64
libmaxminddb-1.2.0-10.el8.x86_64
libusal-1.1.11-39.el8.x86_64
lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64
mailcap-2.1.48-3.el8.noarch
mariadb-connector-c-3.1.11-2.el8_3.x86_64
mariadb-connector-c-config-3.1.11-2.el8_3.noarch
mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64
mod_ssl-1:2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64
net-snmp-agent-libs-1:5.8-22.el8.x86_64
net-snmp-libs-1:5.8-22.el8.x86_64
net-snmp-perl-1:5.8-22.el8.x86_64
perl-JSON-2.97.001-2.el8.noarch
perl-Mail-Sender-1:0.903-7.el8.noarch
pykickstart-3.16.14-1.el8.noarch
python-django3-bash-completion-3.1.7-1.el8.noarch
python3-asgiref-3.2.10-1.el8.noarch
python3-bson-3.7.0-1.module_el8.5.0+761+faacb0fb.x86_64
python3-chardet-3.0.4-7.el8.noarch
python3-cheetah-3.2.3-2.el8.x86_64
python3-contextlib2-0.6.0.post1-1.el8.noarch
python3-distro-1.4.0-2.module_el8.5.0+761+faacb0fb.noarch
python3-django3-3.1.7-1.el8.noarch
python3-dns-1.15.0-10.el8.noarch
python3-idna-2.5-5.el8.noarch
python3-kickstart-3.16.14-1.el8.noarch
python3-ldap3-2.8.1-2.el8.noarch
python3-magic-5.33-20.el8.noarch
python3-mod_wsgi-4.6.4-4.el8.x86_64
python3-netaddr-0.7.19-8.el8.noarch
python3-ordered-set-2.0.2-4.el8.noarch
python3-pip-9.0.3-20.el8.noarch
python3-pyasn1-0.3.7-6.el8.noarch
python3-pycurl-7.43.0.2-4.el8.x86_64
python3-pymongo-3.7.0-1.module_el8.5.0+761+faacb0fb.x86_64
python3-pysocks-1.6.8-3.el8.noarch
python3-pytz-2017.2-9.el8.noarch
python3-pyyaml-3.12-12.el8.x86_64
python3-requests-2.20.0-2.1.el8_1.noarch
python3-schema-0.7.3-1.el8.noarch
python3-setuptools-39.2.0-6.el8.noarch
python3-simplejson-3.17.0-2.el8.x86_64
python3-sqlparse-0.2.4-6.el8.noarch
python3-tornado-6.0.2-1.el8.x86_64
python3-urllib3-1.24.2-5.el8.noarch
python36-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64
rsync-3.1.3-12.el8.x86_64
rsync-daemon-3.1.3-12.el8.noarch
sscg-2.3.3-14.el8.x86_64
tftp-5.2-24.el8.x86_64
tftp-server-5.2-24.el8.x86_64
xorriso-1.4.8-4.el8.x86_64
Complete!
[root@wjc ~]# systemctl enable --now httpd
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.
[root@wjc ~]#
[root@wjc ~]# systemctl enable --now rsyncd
Created symlink /etc/systemd/system/multi-user.target.wants/rsyncd.service → /usr/lib/systemd/system/rsyncd.service.
[root@wjc ~]# systemctl enable --now tftp.socket
Created symlink /etc/systemd/system/sockets.target.wants/tftp.socket → /usr/lib/systemd/system/tftp.socket.
[root@wjc ~]# systemctl enable --now cobblerd.service
Created symlink /etc/systemd/system/multi-user.target.wants/cobblerd.service → /usr/lib/systemd/system/cobblerd.service.
[root@wjc ~]# openssl passwd -1 -salt "$RANDOM" "ray123"
$1$1247$OWOvEkeuFNYwkUqAZh9uj1
[root@wjc ~]# vi /etc/cobbler/settings.yaml
103 default_password_crypted: "$1$1247$OWOvEkeuFNYwkUqAZh9uj1." //修改密码为新生成的加密密码
······
220 manage_dhcp: true //将dhcp功能打开
······
255 next_server: 192.168.253.130 tftp的ip地址,为本机ip
······
353 server: 192.168.253.130 //server的ip地址,为本机ip
······
[root@wjc ~]# systemctl restart cobblerd.service
[root@wjc ~]# cobbler check
The following are potential configuration items that you may want to fix:
1: some network boot-loaders are missing from /var/lib/cobbler/loaders. If you only want to handle x86/x86_64 netbooting, you may ensure that you have installed a *recent* version of the syslinux package installed and can ignore this message entirely. Files in this directory, should you want to support all architectures, should include pxelinux.0, menu.c32, and yaboot.
2: reposync is not installed, install yum-utils or dnf-plugins-core
3: yumdownloader is not installed, install yum-utils or dnf-plugins-core
4: debmirror package is not installed, it will be required to manage debian deployments and repositories
5: fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them
Restart cobblerd and then run 'cobbler sync' to apply changes.
[root@wjc ~]# yum -y install syslinux*
Last metadata expiration check: 0:09:50 ago on Sun 25 Sep 2022 05:58:44 PM CST.
Dependencies resolved.
===========================================================================================
Package Architecture Version Repository Size
===========================================================================================
Installing:
syslinux x86_64 6.04-5.el8 base 578 k
syslinux-extlinux x86_64 6.04-5.el8 base 140 k
syslinux-extlinux-nonlinux noarch 6.04-5.el8 base 386 k
syslinux-nonlinux noarch 6.04-5.el8 base 554 k
syslinux-tftpboot noarch 6.04-5.el8 base 462 k
Installing dependencies:
mtools x86_64 4.0.18-14.el8 base 213 k
Transaction Summary
===========================================================================================
Install 6 Packages
Total download size: 2.3 M
Installed size: 5.1 M
Downloading Packages:
(1/6): syslinux-extlinux-6.04-5.el8.x86_64.rpm 701 kB/s | 140 kB 00:00
(2/6): mtools-4.0.18-14.el8.x86_64.rpm 681 kB/s | 213 kB 00:00
(3/6): syslinux-extlinux-nonlinux-6.04-5.el8.noarch.rpm 851 kB/s | 386 kB 00:00
(4/6): syslinux-6.04-5.el8.x86_64.rpm 816 kB/s | 578 kB 00:00
(5/6): syslinux-nonlinux-6.04-5.el8.noarch.rpm 669 kB/s | 554 kB 00:00
(6/6): syslinux-tftpboot-6.04-5.el8.noarch.rpm 843 kB/s | 462 kB 00:00
-------------------------------------------------------------------------------------------
Total 1.9 MB/s | 2.3 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : mtools-4.0.18-14.el8.x86_64 1/6
Running scriptlet: mtools-4.0.18-14.el8.x86_64 1/6
Installing : syslinux-nonlinux-6.04-5.el8.noarch 2/6
Installing : syslinux-6.04-5.el8.x86_64 3/6
Installing : syslinux-extlinux-nonlinux-6.04-5.el8.noarch 4/6
Installing : syslinux-extlinux-6.04-5.el8.x86_64 5/6
Running scriptlet: syslinux-extlinux-6.04-5.el8.x86_64 5/6
Installing : syslinux-tftpboot-6.04-5.el8.noarch 6/6
Running scriptlet: syslinux-tftpboot-6.04-5.el8.noarch 6/6
Verifying : mtools-4.0.18-14.el8.x86_64 1/6
Verifying : syslinux-6.04-5.el8.x86_64 2/6
Verifying : syslinux-extlinux-6.04-5.el8.x86_64 3/6
Verifying : syslinux-extlinux-nonlinux-6.04-5.el8.noarch 4/6
Verifying : syslinux-nonlinux-6.04-5.el8.noarch 5/6
Verifying : syslinux-tftpboot-6.04-5.el8.noarch 6/6
Installed:
mtools-4.0.18-14.el8.x86_64 syslinux-6.04-5.el8.x86_64
syslinux-extlinux-6.04-5.el8.x86_64 syslinux-extlinux-nonlinux-6.04-5.el8.noarch
syslinux-nonlinux-6.04-5.el8.noarch syslinux-tftpboot-6.04-5.el8.noarch
Complete!
[root@wjc ~]# cp /usr/share/syslinux/pxelinux.0 /var/lib/cobbler/loaders/
[root@wjc ~]# cp /usr/share/syslinux/menu.c32 /var/lib/cobbler/loaders/
[root@wjc ~]# ls /var/lib/cobbler/loaders/
menu.c32 pxelinux.0
[root@wjc ~]# yum -y install yum-utils
Last metadata expiration check: 0:10:31 ago on Sun 25 Sep 2022 05:58:44 PM CST.
Dependencies resolved.
===========================================================================================
Package Architecture Version Repository Size
===========================================================================================
Installing:
yum-utils noarch 4.0.21-3.el8 base 73 k
Downgrading:
dnf-plugins-core noarch 4.0.21-3.el8 base 70 k
python3-dnf-plugins-core noarch 4.0.21-3.el8 base 234 k
Transaction Summary
===========================================================================================
Install 1 Package
Downgrade 2 Packages
Total download size: 377 k
Downloading Packages:
(1/3): dnf-plugins-core-4.0.21-3.el8.noarch.rpm 525 kB/s | 70 kB 00:00
(2/3): yum-utils-4.0.21-3.el8.noarch.rpm 536 kB/s | 73 kB 00:00
(3/3): python3-dnf-plugins-core-4.0.21-3.el8.noarch.rpm 711 kB/s | 234 kB 00:00
-------------------------------------------------------------------------------------------
Total 1.1 MB/s | 377 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Downgrading : python3-dnf-plugins-core-4.0.21-3.el8.noarch 1/5
Downgrading : dnf-plugins-core-4.0.21-3.el8.noarch 2/5
Installing : yum-utils-4.0.21-3.el8.noarch 3/5
Cleanup : dnf-plugins-core-4.0.21-10.el8.noarch 4/5
Cleanup : python3-dnf-plugins-core-4.0.21-10.el8.noarch 5/5
Running scriptlet: python3-dnf-plugins-core-4.0.21-10.el8.noarch 5/5
Verifying : dnf-plugins-core-4.0.21-3.el8.noarch 1/5
Verifying : dnf-plugins-core-4.0.21-10.el8.noarch 2/5
Verifying : python3-dnf-plugins-core-4.0.21-3.el8.noarch 3/5
Verifying : python3-dnf-plugins-core-4.0.21-10.el8.noarch 4/5
Verifying : yum-utils-4.0.21-3.el8.noarch 5/5
Downgraded:
dnf-plugins-core-4.0.21-3.el8.noarch python3-dnf-plugins-core-4.0.21-3.el8.noarch
Installed:
yum-utils-4.0.21-3.el8.noarch
Complete!
[root@wjc ~]# vi /etc/cobbler/dhcp.template
subnet 192.168.253.0 netmask 255.255.255.0 {
option routers 192.168.253.2;
option domain-name-servers 8.8.8.8;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.253.150 192.168.253.160;
default-lease-time 21600;
max-lease-time 43200;
next-server $next_server;
[root@wjc ~]# systemctl restart cobblerd.service httpd
[root@wjc ~]# cobbler sync
task started: 2022-09-25_181230_sync
task started (id=Sync, time=Sun Sep 25 18:12:30 2022)
running python triggers from /var/lib/cobbler/triggers/task/sync/pre/*
running shell triggers from /var/lib/cobbler/triggers/task/sync/pre/*
shell triggers finished successfully
running pre-sync triggers
cleaning trees
removing: /var/lib/tftpboot/grub/system
removing: /var/lib/tftpboot/grub/system_link
removing: /var/lib/tftpboot/grub/images
copying bootloaders
running: ['rsync', '-rpt', '--copy-links', '--exclude=.cobbler_postun_cleanup', '/var/lib/cobbler/loaders/', '/var/lib/tftpboot']
received on stdout:
received on stderr:
running: ['rsync', '-rpt', '--copy-links', '--exclude=README.grubconfig', '/var/lib/cobbler/grub_config/', '/var/lib/tftpboot']
received on stdout:
received on stderr:
copying distros to tftpboot
copying images
generating PXE configuration files
generating PXE menu structure
rendering DHCP files
generating /etc/dhcp/dhcpd.conf
cleaning link caches
running post-sync triggers
running python triggers from /var/lib/cobbler/triggers/sync/post/*
running python trigger cobbler.modules.sync_post_restart_services
running: dhcpd -t -q
received on stdout:
received on stderr:
running: service dhcpd restart
received on stdout:
received on stderr: Redirecting to /bin/systemctl restart dhcpd.service
running shell triggers from /var/lib/cobbler/triggers/sync/post/*
shell triggers finished successfully
running python triggers from /var/lib/cobbler/triggers/change/*
running python trigger cobbler.modules.scm_track
running python trigger cobbler.modules.managers.genders
running shell triggers from /var/lib/cobbler/triggers/change/*
shell triggers finished successfully
*** TASK COMPLETE ***
[root@wjc ~]# mount /dev/cdrom /mnt/
mount: /mnt: WARNING: device write-protected, mounted read-only.
[root@wjc ~]# cobbler import --path=/mnt/ --name=ray arch=x86_64
task started: 2022-09-25_181601_import
[root@wjc ~]# cobbler list
distros:
ray-x86_64
profiles:
ray-x86_64
systems:
repos:
images:
mgmtclasses:
packages:
files:
[root@wjc ~]# cobbler distro report --name ray-x86_64
Name : ray-x86_64
Architecture : x86_64
Automatic Installation Template Metadata : {'tree': 'http://@@http_server@@/cblr/links/ray-x86_64'}
TFTP Boot Files : {}
Boot loader : grub
Breed : redhat
Comment :
Fetchable Files : {}
Initrd : /var/www/cobbler/distro_mirror/ray/images/pxeboot/initrd.img
Kernel : /var/www/cobbler/distro_mirror/ray/images/pxeboot/vmlinuz
Kernel Options : {}
Kernel Options (Post Install) : {}
Management Classes : []
OS Version : rhel8
Owners : ['admin']
Redhat Management Key :
Remote Boot Initrd : ~
Remote Boot Kernel : ~
Template Files : {}
[root@wjc ~]# cobbler profile get-autoinstall --name ray-x86_64 > /var/lib/cobbler/templates/ray.ks
[root@wjc ~]# vi /var/lib/cobbler/templates/ray.ks
配置完成后 新建虚拟机测试