ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Fully Automated CentOS7 Install

    Scheduled Pinned Locked Moved IT Discussion
    7 Posts 3 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Alex Sage
      last edited by

      Here is my kickstart file:

      #version=DEVEL
      # System authorization information
      auth --enableshadow --passalgo=sha512
      # Use CDROM installation media
      cdrom
      # Use text mode install
      text
      # Only Use SDA
      ignoredisk --only-use=sda
      # Keyboard layouts
      keyboard --vckeymap=us --xlayouts='us'
      # System language
      lang en_US.UTF-8
      
      # Network information
      network  --bootproto=dhcp --device=enp0s3 --ipv6=auto --activate
      network  --hostname=localhost.localdomain
      
      # Root password
      rootpw --plaintext root
      # System timezone
      timezone America/New_York --isUtc
      # System bootloader configuration
      bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
      autopart --type=lvm
      # Partition clearing information
      clearpart --none --initlabel
      # Reboot after installation
      reboot
      
      %packages
      @^minimal
      @core
      kexec-tools
      
      %end
      
      %addon com_redhat_kdump --enable --reserve-mb='auto'
      
      %end
      

      Save as ks.cfg

      When you boot into the CentOS7 minimal CD press press TAB and erase what’s in there and type:

      vmlinuz initrd=initrd.cfg ks=http://YOURDOMAIN/ks.cfg

      1 Reply Last reply Reply Quote 4
      • scottalanmillerS
        scottalanmiller
        last edited by

        Nice. Haven't used KS since I was at the bank. We built everything that way back then.

        1 Reply Last reply Reply Quote 0
        • A
          Alex Sage
          last edited by Alex Sage

          My next step is to setup the install via PXE.

          1 Reply Last reply Reply Quote 0
          • A
            Alex Sage
            last edited by

            By default the firewall is off. I am thinking about enabling it via the kickstart file and only allowing SSH? What do you guys think?

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              Good idea. Off by default is very bad.

              A 1 Reply Last reply Reply Quote 0
              • A
                Alex Sage @scottalanmiller
                last edited by

                @scottalanmiller said:

                Good idea. Off by default is very bad.

                Then why do they do that? =P

                JaredBuschJ 1 Reply Last reply Reply Quote 0
                • JaredBuschJ
                  JaredBusch @Alex Sage
                  last edited by

                  @anonymous said:

                  @scottalanmiller said:

                  Good idea. Off by default is very bad.

                  Then why do they do that? =P

                  The CentOS 7 firewall is not off by default on a minimal install.

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  • First post
                    Last post