yum -y
install
system-config-kickstart
system-config-kickstart
mv
ks.cfg
/var/www/html/
cat
/var/www/html/ks
.cfg
firewall --disabled
install
url --url=
"http://172.168.0.2/centos6"
repo --name=
"CentOS"
--baseurl=http:
//172
.168.0.2
/centos6
--cost=100
rootpw --iscrypted $1$10KAJR0t$WqUKt8fRa24FDPnHZxRTZ1
auth --useshadow --passalgo=sha512
graphical
firstboot --disable
keyboard us
lang en_US
selinux --disabled
logging --level=info
reboot
timezone Asia
/Shanghai
network --bootproto=dhcp --device=eth0 --onboot=on
bootloader --append=
"crashkernel=auto rhgb quiet"
--location=mbr --driveorder=
"sda"
zerombr
clearpart --all --initlabel
part
/boot
--fstype=
"ext4"
--size=200
part swap --size=4000
part / --fstype=
"ext4"
--grow --size=200
%packages
@core
%end