-
Notifications
You must be signed in to change notification settings - Fork 0
/
vm_ks.ks
42 lines (31 loc) · 805 Bytes
/
vm_ks.ks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
text
cdrom
auth --enableshadow --passalgo=sha512
keyboard --vckeymap=us --xlayouts='us'
lang en_US.UTF-8
eula --agreed
reboot
# network configuration
network --bootproto=static --ip=CHANGE_IP --gateway=CHANGE_GATE --netmask=CHANGE_NETMASK --noipv6 --device=eth0 --nameserver=CHANGE_NS --activate
network --hostname=CHANGE_HOSTNAME
timezone UTC
# remote repo
url --url="http://mirror.centos.org/centos/7/os/x86_64/"
# add repo for laster
repo --name=base --baseurl="http://mirror.centos.org/centos/7/os/x86_64/"
# partitioning
ignoredisk --only-use=vda
bootloader --location=mbr --boot-drive=vda
zerombr
clearpart --none --initlabel
autopart --type=lvm
# security
rootpw password
selinux --enforcing
# Software Packages
%packages --nobase --ignoremissing
@core
@base
vim
bash-completion
%end