• VMware

    Learn about VMware virtualization for its products like vsphere ESX and ESXi, vCenter Server, VMware View, VMware P2V and many more

  • Linux

    Step by step configuration tutorials for many of the Linux services like DNS, DHCP, FTP, Samba4 etc including many tips and tricks in Red Hat Linux.

  • Database

    Learn installation and configuration of databases like Oracle, My SQL, Postgresql, etc including many other related tutorials in Linux.

  • Did you find what you needed?
    Show your support and gratitude by making a contribution!!
    Life always offers you a second chance ... Its called tomorrow !!!

    Sample kickstart file for RHEL 7

    # Kickstart configuration for RHEL7.3

    repo --name="ExtraPackages" --baseurl=file:///run/install/repo/ExtraPackages

    #platform=x86, AMD64, or Intel EM64T
    # System authorization information
    auth  --enableshadow  --passalgo=sha512

    # Clear the Master Boot Record
    zerombr

    # Partition clearing information
    clearpart --all --initlabel

    # Use text mode install
    text

    # Firewall configuration
    firewall --disabled

    # Run the Setup Agent on first boot
    firstboot --disable

    # System keyboard
    keyboard us

    # System language
    lang en_US.UTF-8

    # Skipping input of key
    #key --skip

    # Installation logging level
    logging --level=info


    # Use NFS installation media
    nfs --server=10.43.138.1 --dir=/root/repo/rhel7_64

    # Network Information
    network --bootproto=static --hostname=deep-node3 --device=eth0 --gateway=192.168.10.100 --ip=192.168.10.1 --netmask=255.255.255.0 --noipv6 --nodns --onboot=on --activate
    network --bootproto=static --device=eth1 --gateway=192.168.10.100 --ip=192.168.10.2 --netmask=255.255.255.0 --noipv6 --nodns --onboot=on --activate
    network --bootproto=static --device=eth2 --gateway=192.168.10.100 --ip=192.168.10.3 --netmask=255.255.255.0 --noipv6 --nodns --onboot=on --activate

    # System bootloader configuration
    bootloader --location=mbr --driveorder=sda --append="rhgb novga  console=ttyS0,9600 console=tty0 crashkernel=showopts panic=1 numa=off noht"

    # The following is the partition information you requested
    # Disk Partioning
    clearpart --all --initlabel

    part /boot --size 512 --asprimary --fstype=ext4 --ondrive=sda
    part pv.1 --size 1 --grow --fstype=ext4 --ondrive=sda

    volgroup system --pesize=32768 pv.1
    logvol / --fstype ext4 --vgname system --size=4096 --name=root
    logvol /var --fstype ext4 --vgname system --size=4096 --name=var
    logvol /tmp --fstype ext4 --vgname system --size=40960 --name=tmp
    logvol swap --vgname system --size=4096 --name=swap
    logvol /opt --fstype ext4 --vgname system --size=8192 --name=opt
    logvol /opt/usr --fstype ext4 --vgname system --size=10240 --name=optusr
    logvol /var/log --fstype ext4 --vgname system --size=1 --grow --name=varlog

    # Root password
    rootpw --iscrypted $1$oVhMpzps6FeGBc1uF2JmG2xTeSW

    # SELinux configuration
    selinux --disabled

    # Do not configure the X Window System
    skipx

    #Disabling kdump services, owing to few problems with current kexec package
    #services --disabled kdump

    # System timezone
    timezone --utc Asia/Kolkata

    # Install OS instead of upgrade
    install

    # Reboot after installation
    reboot

    # list of packages to be installed
    %packages
    @ Core
    @ Base --nodefaults
    bc
    device-mapper-multipath
    dos2unix
    ipmitool
    java
    ksh
    python-devel
    rsync
    screen
    sos
    syslinux
    vim-enhanced
    xinetd
    ##ExtraPackages
    perl-Switch
    # packages deleted according to OS minimization
    -firewalld
    -iwl2000-firmware
    -iwl5150-firmware
    -iwl3160-firmware
    -iwl1000-firmware
    -iwl3945-firmware
    -iwl100-firmware
    -iwl6000g2b-firmware
    -iwl6000g2a-firmware

    # packages added according to OS minimization
    %end

    %post --log=/var/log/kickstart_post.log
    echo "Installation Completed" > /tmp/install.out
    date >> /tmp/install.out
    %end

                                                     

    0 comments:

    Post a Comment