Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Can't kickstart rhel7 from nfs

    Posted on

    Longtime rhel5/rhel6 kickstart user. However, when trying to get rhel7 to kickstart via nfs and a custom iso (using basically the same method as for RHEL6), it fails miserably:

    dracut-initqueue[1042]:anaconda fetching kickstart from cdrom:/ks.cfg
    dracut-initqueue[1042]:Warning: failed to fetch kickstart from cdrom:/ks.cfg
    dracut-initqueue[1042]:anaconda: fetching kickstart from /dev/sr0:/ks.cfg
    ISO 9660 Extensions: Microsoft Joliet Level 3
    ISO 9660 Extensions: RRIP_1991A
    dracut-initqueue[1042]: Warning: could not boot.
    dracut-initqueue[1042]:Warning: /dev/root  does not exist
    Starting Dracut Emergency Shell
    

    I found a community article at https://access.redhat.com/solutions/1134003 and did as suggested. However, it doesn't help.

    Any ideas? I suspect it may have something to do with the format of the ks.cfg file, but just not sure. Here's my kickstart file:

    # This file was created for host tm1cldcmpl02-adm using make_ks.sh on Thu Jan 22 13:41:12 MST 2015
    
    ################## ITEMS IN THIS SECTION ARE HOST SPECIFIC #####################
    
    # System Network Information
    network --bootproto=static --ip=10.10.5.153 --netmask=255.255.255.0 --gateway=10.10.5.1 --nameserver=10.8.192.236,10.8.97.251,10.8.97.252 --device=eno4
    
    # Disk to install to.  On SmartArray systems, this will be 'cciss/c0d0'.  On
    # IDE systems, it will be 'hda'.  On SCSI/SATA systems, it will be 'sda'.
    ignoredisk --only-use=sda
    
    # System authentication information
    #auth  --useshadow  --enablemd5  --enableldap --enableldapauth --ldapserver=unset --ldapbasedn=unset
    
    # System bootloader installation.  The first disk in the driveorder should
    # be the same disk as '--only-use' above
    bootloader --location=mbr --driveorder=sda
    
    # NFS source location
    nfs --server=10.20.0.91 --dir=/vol/unixdepot/redhat/RHEL/KICKSTART/7.0 --opts=nolock
    #url --url http://tadmin03.example.com/rhel
    
    ################# ITEMS ABOVE THIS POINT ARE HOST SPECIFIC #####################
    # Install OS instead of upgrade
    install
    
    # Skip registration key
    #key --skip
    
    # Clear the Master Boot Record
    zerombr
    
    # Clear all partitions and re-initialize for Linux (MSDOS) style partitions
    clearpart --all --initlabel
    
    # Use text mode install instead of graphical
    text
    
    # Firewall disabled (iptables)
    firewall --disabled
    
    # SELinux disabled
    selinux --disabled
    
    # Do not run the Setup Agent on first boot
    firstboot --disable
    
    # Disable services
    services --disabled iptables,ip6tables --enabled ntpd,xinetd
    
    # System keyboard
    keyboard us
    
    # System language
    lang en_US
    
    # Installation logging level
    logging --level=info
    
    #Root password
    rootpw --iscrypted xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    
    # Do not configure the X Window System
    skipx
    
    # System timezone
    timezone --isUtc America/Denver
    
    # Reboot after installation
    #reboot
    
    # Use Local Repositories to get LATEST updates
    #repo --name=RHN_May5 --baseurl=http://tadmin03.example.com/rhel
    
    # Disk partitioning information
    part /boot --fstype ext3 --size=1024
    part pv.00 --size=100 --grow
    volgroup VolGroup00 --pesize=32768 pv.00
    logvol / --fstype ext4 --name=lv_root --vgname=VolGroup00 --size=10240
    logvol swap --fstype swap --name=lv_swap --vgname=VolGroup00 --size=8192
    #logvol swap --fstype swap --name=lv_swap --vgname=VolGroup00 --size=32000
    #logvol swap --fstype swap --name=lv_swap --vgname=VolGroup00 --size=2048
    logvol /var --fstype ext4 --name=lv_var --vgname=VolGroup00 --size=5120
    logvol /var/tmp --fstype ext4 --name=lv_vartmp --vgname=VolGroup00 --size=10240
    #logvol /var/crash --fstype ext4 --name=lv_varcrash --vgname=VolGroup00 --size=3072
    logvol /usr --fstype ext4 --name=lv_usr --vgname=VolGroup00 --size=10240
    logvol /tmp --fstype ext4 --name=lv_tmp --vgname=VolGroup00 --size=4096
    logvol /opt --fstype ext4 --name=lv_opt --vgname=VolGroup00 --size=10240
    
    # Packages to install
    %packages
    #@base
    #@core
    #@console-internet
    #@performance
    #@perl-runtime
    #@system-admin-tools
    #@x11
    @ X Window System
    ksh
    screen
    telnet
    openldap-clients
    nss-pam-ldapd
    nfs-utils
    #ntp
    #kexec-tools
    lsscsi
    #sysstat
    glibc.i686
    xinetd
    sysfsutils
    patch
    iptraf
    make
    net-snmp
    mcelog
    redhat-lsb-core
    hwloc
    tunctl
    tuned-utils
    tuned
    cpupowerutils
    powertop
    systemtap
    %end
    
    # Stuff to run before kickstart begins
    %pre
    %end
    
    # Stuff to run after kickstart completes
    %post
    mkdir /unixdepot
    ln -s /bin/ksh /usr/bin/ksh
    # unixdepot mountpoint and post scripts added by make_ks.sh script
    mount -o nolock 10.20.0.91:/vol/unixdepot /unixdepot
    /unixdepot/redhat/scripts/rhelfinish-test 7.0
    cp /unixdepot/redhat/repos/latest/*.repo /etc/yum.repos.d/
    yum --nogpgcheck -y update
    %end
    

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat