Skip to content

Instantly share code, notes, and snippets.

@shawn111
Last active May 30, 2019 16:00
Show Gist options
  • Save shawn111/f5a185f24354f8b92daabaa626ecfed2 to your computer and use it in GitHub Desktop.
Save shawn111/f5a185f24354f8b92daabaa626ecfed2 to your computer and use it in GitHub Desktop.
install
cdrom
lang en_US.UTF-8
keyboard us
unsupported_hardware
network --bootproto=dhcp --hostname centos-7.pelmet.loc
rootpw vagrant
firewall --disabled
selinux --permissive
timezone --utc Asia/Shanghai
unsupported_hardware
bootloader --location=mbr
text
skipx
zerombr
clearpart --all --initlabel
#Disk partitioning information
part /boot --fstype ext4 --size=2048
part swap --asprimary --size=8192
part / --fstype ext4 --size=1 --grow
auth --enableshadow --passalgo=sha512 --kickstart
firstboot --disabled
eula --agreed
services --enabled=NetworkManager,sshd,vmtoolsd
reboot
%packages --ignoremissing --excludedocs
@Base
@Core
open-vm-tools
%end
%post
/usr/bin/vmware-toolbox-cmd timesync disable || true
sleep 3
/usr/bin/vmware-toolbox-cmd timesync enable || true
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment