Automated Installations of Multiple RHEL/CentOS 7 Distributions using PXE Server and Kickstart Files

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Matei Cezar

I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

13 Responses

  1. greg perry says:

    On Centos7 I was unable to see my anaconda-ks.cfg file in the pub directory via browsing FTP. I could see it in the directory with ls however.

    Ended up having to add “setsebool allow_ftpd_full_access=1” which allowed it to be visible.

    Found that via google search here: http://stackoverflow.com/questions/30655173/cant-display-files-from-a-vsftpd-server-on-centos-6

  2. rashid says:

    hi can you please tell me how i accept License auto during kickstart installation as it asked while installation.

    • Matei Cezar says:

      You wont need to worry about this if you use a kickstart file form a previous installation. The License terms are accepted automatically.
      Still, if you should now this parameter for manually created kickstart files:
      eula Accepted

  3. Rupesh rvk says:

    i have configured RHEL kickstart and from same server i want to installed cent os from same ftp server, is this possible

  4. Rupesh rvk says:

    can i installed cent os from RHEL 6 kick start server. i want to keep both images in /pub (RHEL and Cent os ) is this possible, or i need to configure
    individual kick-start server for different os

  5. Jesse Dale says:

    Ah, for those who are using iptables.. don’t forget to allow the broadcast request ! I enabled iptable logging in my rsyslog then I saw something like this every time I tried a PXE boot :

    Aug 14 19:12:05 tabasco kernel: iptables denied: IN=em1 OUT= MAC=ff:ff:ff:ff:ff:ff:a4:ba:db:e9:4d:55:08:00 SRC=0.0.0.0 DST=255.255.255.255 LEN=576 TOS=0x00 PREC=0x00 TTL=20 ID =1 PROTO=UDP SPT=68 DPT=67 LEN=556
    Aug 14 19:34:12 tabasco kernel: iptables denied: IN=em3 OUT= MAC=ff:ff:ff:ff:ff:ff:a4:ba:db:e9:4d:55:08:00 SRC=0.0.0.0 DST=255.255.255.255 LEN=576 TOS=0x00 PREC=0x00 TTL=20 ID=3 PROTO=UDP SPT=68 DPT=67 LEN=556

    So I had to add this to my /etc/sysconfig/iptables, and restarted iptables:

    -A INPUT -s 0.0.0.0 -p udp –sport 68 -d 255.255.255.255 –dport 67 -j ACCEPT
    -A OUTPUT -s 0.0.0.0 -p udp –sport 67 -d 255.255.255.255 –dport 68 -j ACCEPT

  6. Jesse Dale says:

    Does this need any setsebool commands to relax selinux with ftp or anonymous logins ??

  7. ketan says:

    Hi,
    How to Automated Installations RHEL with graphical desktop mode through PXE Kickstart.

  8. boethius says:

    You don’t actually need FAI to automate the install of Debian-based or Debian-derived distros. Ubuntu, Debian, Kali Linux, etc. all support pre-seed files. FAI is a great tool no question but not strictly necessary. You can get by with just preseeds, TFTP, and DHCP and a network bootstrap like iPXE or pxelinux. FAI is kind of a wrapper/abstraction layer between the complexities of deriving your own preseed semantics and intelligence. Hand-coding preseed files for diverse deployments and ongoing management/maintenance of those files is onerous but for occasional one-off type stuff it’s fine.

    When you want to try scale deployments enterprise tools like FAI, Cobbler (on the RHEL/CentOS side), Satellite, and several similar solutions all permit large-scale management of server deployments, be they virtual or physical.

  9. Ankur says:

    HI..

    i have one query for unattanded installation different Linux Distrubution .

    this is only explained for Redhat based system like centos and fedora etc . can we install debian based system using kick start .??

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?