Skip to content

Instantly share code, notes, and snippets.

@z2z
Created May 2, 2020 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z2z/cde037875c41f433c073887b9d8d81ae to your computer and use it in GitHub Desktop.
Save z2z/cde037875c41f433c073887b9d8d81ae to your computer and use it in GitHub Desktop.
centos 7 bare minimal - hyper-v
#https://bugs.centos.org/view.php?id=7388
#https://forums.centos.org/viewtopic.php?t=47262
#### Here is my kickstart script ####
text
skipx
install
lang en_US.UTF-8
keyboard us
timezone America/Los_Angeles
auth --useshadow --enablemd5
selinux --enforcing
firewall --enabled --ssh
bootloader --location=mbr
zerombr
clearpart --all --initlabel
part / --ondisk=xvda --fstype=xfs --grow --size=1
rootpw --iscrypted [password hash]
user --name=gene --groups=wheel --homedir=/home/gene --iscrypted --password=[password hash] --shell=/bin/bash --uid=666
url --url http://<hostname>/centos/7/os/x86_64/
repo --name=updates --baseurl=http://<hostname>/centos/7/updates/x86_64/
shutdown
%packages --nobase
@core --nodefaults
-aic94xx-firmware*
-alsa-*
-biosdevname
-btrfs-progs*
-dhclient
-dhcp*
-dracut-network
-iprutils
-ivtv*
-iwl*firmware
-libertas*
-kexec-tools
-NetworkManager*
-plymouth*
-postfix
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment