设为首页收藏本站language 语言切换
查看: 1210|回复: 1
收起左侧

[分享] rhel8 uefipxe最小化安装

[复制链接]
发表于 2019-5-10 23:19:51 | 显示全部楼层 |阅读模式
前面跟rhle7.x pxe方式一样 dhcpd+xinetd+tftpx+vsftpd
rhel8 最小化安装环境ks文件如下:
#version=RHEL8
ignoredisk --only-use=sda
# System bootloader configuration
bootloader --location=mbr --boot-drive=sda
# Partition clearing information
clearpart --all --initlabel --drives=sda
# Use graphical install
text
# Use network installation
url --url="ftp://192.168.1.1/BaseOS/"
# Keyboard layouts
keyboard --vckeymap=cn --xlayouts='cn'
# System language
lang en_US.UTF-8
# Firewall configuration
firewall --disabled
# SELinux configuration
selinux --disabled
# Reboot after installation
reboot
# Root password
rootpw --iscrypted $6$NuEoF9sG09xghBS9$rVv3wF0GuIAwrJydkt5Q8yBq1chN/xl.pYw1A4w1Cuiy1HjHPRHkbLarG.DpthoLiXZBUl/gGICVbigIFFS7N1
# Run the Setup Agent on first boot
firstboot --disabled
# Do not configure the X Window System
skipx
# System services
services --enabled="chronyd"
# Intended system purpose
syspurpose --role="Red Hat Enterprise Linux Server" --sla="Standard" --usage="Development/Test"
# System timezone
timezone Asia/Shanghai
user --name=test --password=123456789 --gecos="test"
# Disk partitioning information
part pv.712 --fstype="lvmpv" --ondisk=sda --size=34216
part /boot --fstype="xfs" --ondisk=sda --size=1024
part /boot/efi --fstype="efi" --ondisk=sda --size=1024 --fsoptions="umask=0077,shortname=winnt"
volgroup rhel --pesize=4096 pv.712
logvol /home --fstype="xfs" --size=6512 --name=home --vgname=rhel
logvol /var --fstype="xfs" --size=10240 --name=var --vgname=rhel
logvol swap --fstype="swap" --size=4096 --name=swap --vgname=rhel
logvol / --fstype="xfs" --size=15360 --name=root --vgname=rhel
%post
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl stop libvirtd.service
systemctl disable libvirtd.service
%end
%packages
@^minimal-environment
@development
@network-server
@standard
@system-tools
%end
%addon com_redhat_kdump --disable --reserve-mb='auto'
%end
%anaconda
pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
%end


发表于 2019-5-11 10:51:07 | 显示全部楼层
谢啦,ks拿走,我也去装下看看
沙发 2019-5-11 10:51:07 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-5-14 09:50 , Processed in 0.098232 second(s), 24 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表