Last active
April 24, 2017 03:28
-
-
Save congto/ac005546cb58063696f6f9ba15854b3b to your computer and use it in GitHub Desktop.
cobbler_CentOS7_minimal.ks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#platform=x86, AMD64, or Intel EM64T | |
#version=DEVEL | |
# Firewall configuration | |
firewall --disabled | |
# Install OS instead of upgrade | |
install | |
# Use HTTP installation media | |
url --url="http://192.168.20.11/cblr/links/CentOS7-x86_64/" | |
# Root password | |
rootpw --iscrypted $1$Q9yt9gkQ$j3sCgQzpJz/tz8l5QDjI// | |
# Network information | |
## Khai bao gateway va dns cho NICs | |
network --bootproto=dhcp --device=ens160 --onboot=on --gateway=192.168.20.254 --nameserver=8.8.8.8 | |
services --enabled=NetworkManager,sshd,chronyd | |
# Reboot after installation | |
reboot | |
# System authorization information | |
auth useshadow passalgo=sha512 | |
# Use graphical install | |
graphical | |
firstboot disable | |
# System keyboard | |
keyboard us | |
# System language | |
lang en_US | |
# SELinux configuration | |
selinux disabled | |
# Installation logging level | |
logging level=info | |
# System timezone | |
timezone Asia/Ho_Chi_Minh | |
# System bootloader configuration | |
########################################################################### | |
# Thiet lap o cung voi layout nhu sau: | |
# - Thu muc /boot co dung luong 512MB va khong su dung LVM, | |
# - Phan vung SWAP thiet lap tu dong theo RAM va nam trong LVM | |
# - Phan vung / tu dong gian no theo dung luong cua disk nam trong LVM | |
########################################################################### | |
bootloader --location=mbr | |
clearpart --all --initlabel | |
part /boot --fstype xfs --size=512 --asprimary | |
part pv.4 --size=1 --grow | |
volgroup VolGroup00 pv.4 | |
logvol swap --fstype swap --name=LogVol00 --vgname=VolGroup00 --recommended | |
logvol / --fstype xfs --name=LogVol01 --vgname=VolGroup00 --size=1 --grow | |
###Package install | |
%packages | |
@^minimal | |
@core | |
%end | |
%addon com_redhat_kdump --disable --reserve-mb='auto' | |
%end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment