8.4作业

 

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-manager

This 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

 

强制保存退出 

 

 

 

 

 

 

 

  • 12
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值