centos ks模版
时间: 2023-10-28 20:58:54 浏览: 41
您好!对于 CentOS 7.9 的 Kickstart 模板,您可以参考下面的示例:
```ini
#platform=x86, AMD64, IA64, Sparc
#version=DEVEL
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
install
# Use network installation
url --url="http://mirror.centos.org/centos/7/os/x86_64/"
# Root password
rootpw --plaintext MyPassword123
# System authorization information
auth --useshadow --passalgo=sha512
# Use graphical installation
graphical
firstboot --disable
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# Network information
network --bootproto=dhcp --device=eth0 --ipv6=auto --activate
network --bootproto=dhcp --device=eth1 --onboot=off --ipv6=auto
# Reboot after installation
reboot
# System timezone
timezone America/New_York --isUtc
# System bootloader configuration
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
# Partition clearing information
clearpart --none --initlabel
# Disk partitioning information
autopart
%packages
@^minimal
@core
kexec-tools
%end
%addon com_redhat_kdump --enable --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
```
请注意,以上只是一个基本的示例,您可以根据自己的需求进行修改和定制。希望能对您有所帮助!