rhel8 uefipxe最小化安装
前面跟rhle7.x pxe方式一样 dhcpd+xinetd+tftpx+vsftpdrhel8 最小化安装环境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
谢啦,ks拿走,我也去装下看看
页:
[1]