1.rhel 7主机
2.开机主机图形 yum group install "server with GUI" init 5开启图形界面
3.配置网络可用
关闭vm软件的dhcp
dnf install system-config-kickstart 安装生成kickstart自动安装脚本的工具
system-config-kickstart 启动工具
swap 512 boot 1024 这个勾选Fixed
ksvalidator ks.cfg 检查语法的报错
[root@node3 rhel7.9]# yum install httpd
[root@node3 rhel7.9]# ln -s /rhel7.9/ /var/www/html/
[root@node3 rhel7.9]# systemctl stop firewalld
[root@node3 rhel7.9]# systemctl start httpd
[root@node3 ~]# cp ks.cfg /var/www/html
[root@node3 ~]# yum install dhcp -y
[root@node3 ~]# \cp -f /usr/share/doc/dhcp*/dhcpd.conf.example /etc/dhcp/dhcpd.conf #转义[root@node3 ~]# vim /etc/dhcp/dhcpd.conf
# option definitions common to all supported networks...
option domain-name "bwmis.org";
option domain-name-servers 114.114.114.114;default-lease-time 600;
max-lease-time 7200;# Use this to enble / disable dynamic dns updates globally.
#ddns-update-style none;# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.#subnet 10.152.187.0 netmask 255.255.255.0 {
#}# This is a very basic subnet declaration.
subnet 172.25.250.0 netmask 255.255.255.0 {
range 172.25.250.50 10 172.25.250.60;
option routers 172.25.250.2;
[root@node3 ~]# yum search pxelinux
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-managerThis system is not registered with an entitlement server. You can use subscription-manager to register.
============================================================ Matched: pxelinux =============================================================
syslinux.x86_64 : Simple kernel loader which boots from a FAT filesystem
syslinux-extlinux.x86_64 : The EXTLINUX bootloader, for booting the local system.
syslinux-tftpboot.noarch : SYSLINUX modules in /var/lib/tftpboot, available for network booting
[root@node3 ~]# yum install syslinux.x86_64 -y[root@node3 ~]# yum install tftp-server.x86_64 -y #共享pxelinux.0数据文件得网络服务
[root@node3 ~]# cp /rhel7.9/isolinux/* /var/lib/tftpboot/
[root@node3 ~]# cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
[root@node3 ~]# cd /var/lib/tftpboot/
root@node3 ~]# vim /etc/dhcp/dhcpd.conf
subnet 172.25.250.0 netmask 255.255.255.0 {
range 172.25.250.50 10 172.25.250.60;
option routers 172.25.250.2;
next-server 172.25.250.150;
filename "pxelinux.0";
}[root@node3 ~]# vim /var/lib/tftpboot/pxelinux.cfg/default
强制保存退出