#version=DEVEL # System authorization information auth --useshadow --passalgo=sha512 # Install OS instead of upgrade install # Use text mode install text # Firewall configuration firewall --disabled # Run the Setup Agent on first boot firstboot --enable ignoredisk --only-use=vda # Keyboard layouts keyboard --vckeymap=us --xlayouts='us' # System language lang en_US.UTF-8
# Network information network --bootproto=dhcp --device=eth0 --activate network --bootproto=dhcp --hostname=c7 # Reboot after installation reboot # Use network installation url --url="http://10.0.0.1/centos/7/os/x86_64" # Root password rootpw --iscrypted $1$YyodG.X7$LzhHqxWONgSh0NBoC730o0 # SELinux configuration selinux --disabled # System services services --disabled="chronyd" # Do not configure the X Window System skipx # System timezone timezone Asia/Shanghai --nontp # X Window System configuration information xconfig --startxonboot # System bootloader configuration bootloader --append="net.ifnames=0 crashkernel=auto" --location=mbr --boot-drive=vda # Clear the Master Boot Record zerombr # Partition clearing information clearpart --all --initlabel # Disk partitioning information part /boot --fstype="ext4" --ondisk=vda --size=300 part pv.60 --fstype="lvmpv" --size=20179 volgroup volgrp --pesize=4096 pv.60 logvol / --fstype="ext4" --grow --size=1 --name=root --vgname=volgrp logvol swap --fstype="swap" --size=2048 --name=swap --vgname=volgrp
#version=DEVEL # System authorization information auth --enableshadow --passalgo=sha512 # Use CDROM installation media cdrom # Use graphical install graphical # Run the Setup Agent on first boot firstboot --enable ignoredisk --only-use=vda # 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 --hostname=localhost.localdomain
# Root password rootpw --iscrypted $6$FyziLpCibU/RQPqp$G56mBV90w0lM1xVCK6Bwsg4ANZd/Gj8hKsENU3mfQAPoqBevdCyw.Dw88OkOHBUxpIoq7Zi.NQ6890l5Otzev. # System services services --disabled="chronyd" # System timezone timezone Asia/Shanghai --isUtc --nontp user --name=lujinkai --password=$6$oKgYyszaGm2rHnk/$cDyAFysw5bhQTT18sGCREat6ZkIfo9/BlluiPlWmAfTk/48x9KukRepXoRelKqiA9tjRYFcWEmHivHjl2TOrR0 --iscrypted --gecos="lujinkai" # System bootloader configuration bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=vda # Partition clearing information clearpart --none --initlabel # Disk partitioning information part /boot --fstype="ext4" --ondisk=vda --size=300 part pv.428 --fstype="lvmpv" --ondisk=vda --size=4819 volgroup centos --pesize=4096 pv.428 logvol / --fstype="ext4" --size=4816 --name=root --vgname=centos