Categories
Uncategorized

Centos 7 kickstart file

Do a clean Install of Centos 7, lets call this server hostname: base

Install apache on your base server, this will be the server hosting the kickstart file

yum install httpd -y
firewall-cmd --permanent --add-port=80/tcp
firewall-cmd --reload
firewall-cmd --list-all

On your Centos 7 base server, login as root

cd ~
ls -latr
anaconda-ks.cfg
cp anaconda-ks.cfg /var/www/html/ks.cfg
chown -R 755 /var/www/html/

Change the hostname=newhostname otherwise your new installation will have the same name as another server. In this case the new server hostname will be called production-svr

edit /var/www/html/ks.cfg 

network  --hostname=production-svr

Now, start your new server lets call this production-svr, boot from a usb disk, at boot menu press e

boot: linux ks=http://ipaddress/ks.cfg

Press enter and watch Centos 7 being installed without user interaction