# x86_64 Kickstart file for redhat-certification-hardware and RHEL 7 # # This file prepares both a RHEL 7 system under test (SUT) that is ready to # undergo hardware certification and a RHEL 7 local test server (LTS) that is # ready to manage certification activities for RHEL 6, 7, and 8 systems under # test. # # To prepare a SUT, install with the kickstart and then register the SUT with # an LTS. # # To prepare an LTS, install with the kickstart and then go to the system's # DNS name or IP address in a web browser to access the LTS interface. You # may wish to uncomment the pre-built guest file section of the kickstart # before installing the LTS to stage those files locally on the LTS. # # Please see the "Preparing the Test Environment" section of the Red Hat # Certification Test Suite User Guide to learn how to set up an # install environment that will work with this kickstart file: # # https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_hardware_certification/1.0/html/test_suite_user_guide/ # # Begin redhat-certification-hardware kickstart file for RHEL 7 x86_64 install # Remove the comment character "#" from ONE of the two lines below to choose # your install method and change the server information to match your own # environment. #url --url=http://myserver.mydomain.com/path/to/rhel7-x86_64/bits #nfs --server=myserver.mydomain.com --dir=/path/to/rhel7-x86_64/bits # Prevent the Setup Agent from running on first boot firstboot --disable # Choose the US keyboard layouts keyboard --vckeymap=us --xlayouts='us' # Choose the US English system language lang en_US.UTF-8 # Configure the network connection(s) network --bootproto=dhcp --device=em1 --ipv6=auto --activate # Disable the firewall firewall --disable # System authorization information auth --enableshadow --passalgo=sha512 # Set the root password rootpw redhat # Enable SELinux (required for certification) selinux --enforcing # Set the system timezone timezone America/New_York --isUtc # Create a non-root user that testers can use for a GUI login user --name=certuser --password=redhat --gecos="Certification User" # X Window System configuration information xconfig --startxonboot # System bootloader configuration bootloader --location=mbr --boot-drive=sda # See the %pre section near the bottom of this file for partitioning %include /tmp/part-include # Yum repository for redhat-certification, redhat-certification-hardware, # dt, lmbench, and stress dependencies. # Change the next line to point to your custom rhcert package repository. #repo --name=rhcert --baseurl=http://myserver.mydomain.com/rhcert-rhel7-x86_64 # Yum repository for kernel debuginfo dependencies. Change the next line # to point to your custom debuginfo repository. #repo --name=rhel7.1-x86_64-debug --baseurl=http://myserver.mydomain.com/rhel7.1-x86_64-debug # Yum repository for RHEL for Real Time packages. Uncomment the next line and # change it to point to the Real Time install files if you wish to certify # for RHEL for Real Time. #repo --name=Real_Time --baseurl=http://myserver.mydomain.com/path/to/RT/bits/ # Reboot when finished reboot %packages @base @core @desktop-debugging @fonts @ftp-server @gnome-desktop @guest-agents @guest-desktop-agents @input-methods @internet-browser @multimedia @x11 @virtualization-client @virtualization-tools @virtualization-hypervisor @virtualization-platform @web-server # These are required packages for rhcert-client that aren't # dependencies resolved at system install time kernel-debuginfo kernel-tools kernel-abi-whitelists qemu-kvm-tools dvd+rw-tools libvirt-python oprofile wodim xterm lftp mcelog mt-st # Screen utility is helpful for running tests over an SSH session # if debugging is necessary. screen # Install rhcert and dependencies from our custom repository redhat-certification redhat-certification-backend redhat-certification-hardware # Uncomment the following packages if you followed the optional steps # above and want to certify for RHEL for Real Time. #kernel-rt #rt-setup #rtctl #rtcheck #rteval #rteval-common #rteval-loads #rt-tests %end %pre #!/bin/sh # Select the drives to use for install # DO NOT USE THIS KICKSTART FILE ON A SYSTEM WITH DATA YOU WISH # TO RETAIN! All drives are blanked by these commands. echo "clearpart --all --initlabel" > /tmp/part-include echo "ignoredisk --only-use=sda" >> /tmp/part-include echo "part /boot --fstype="xfs" --size=512 --ondisk=sda" >> /tmp/part-include # This swap section assumes that you have sufficient disk space to conform # to the recommended swap sizes detailed in this Red Hat Knowledgebase # article: https://access.redhat.com/site/solutions/15244 # For laptops and anything else with a battery: if udevadm info --export-db | grep -i -q bat[0-9]; then echo "part swap --hibernation --ondisk=sda" >> /tmp/part-include # For all other systems: else echo "part swap --recommended --ondisk=sda" >> /tmp/part-include fi # If your system doesn't have sufficient disk space, comment out the previous # if/else section and then uncomment and change the "--size" value on the # swap line below to an acceptable swap size for your system. #echo "part swap --fstype="swap" --size=2048 --ondisk=sda" >> /tmp/part-include echo "part / --fstype="xfs" --size=1024 --grow --ondisk=sda" >> /tmp/part-include # If you are installing on a UEFI system, create an EFI partition. if [ -d /sys/firmware/efi ]; then echo "part /boot/efi --fstype="efi" --size=200 --ondisk=sda" >> /tmp/part-include fi %end %post # Prevent the initial Gnome setup dialog box from # appearing for root and the certuser. mkdir /root/.config echo "yes" > /root/.config/gnome-initial-setup-done mkdir /home/certuser/.config chown certuser:certuser /home/certuser/.config echo "yes" > /home/certuser/.config/gnome-initial-setup-done chown certuser:certuser /home/certuser/.config/gnome-initial-setup-done # This line starts the listener and server functions systemctl enable rhcertd # If you are installing an LTS (not a SUT) and you want to pull the # pre-built virt guest down to the machine at install time, uncomment the # appropriate mkdir and wget lines in the section(s) below. A SUT will # automatically retrieve the pre-built guest from the LTS if present, which # is much faster than retrieving the files from the FTP site. You should only # uncomment lines matching the versions and architectures you are certifying. # ########## # RHEL 8 # ########## # x86_64 #mkdir -p /var/www/rhcert/store/transfer/fv-images/RHEL8/x86_64 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL8/x86_64 ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL8/x86_64/hwcert-x86_64.img.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL8/x86_64 ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL8/x86_64/hwcert-x86_64.xml.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL8/x86_64 ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL8/x86_64/hwcertData.img.tar.bz2 # ppc64le #mkdir -p /var/www/rhcert/store/transfer/fv-images/RHEL8/ppc64le #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL8/ppc64le ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL8/ppc64le/hwcert-ppc64le.img.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL8/ppc64le ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL8/ppc64le/hwcert-ppc64le.xml.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL8/ppc64le ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL8/ppc64le/hwcertData.img.tar.bz2 # s390x #mkdir -p /var/www/rhcert/store/transfer/fv-images/RHEL8/s390x #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL8/s390x ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL8/s390x/hwcert-s390x.img.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL8/s390x ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL8/s390x/hwcert-s390x.xml.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL8/s390x ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL8/s390x/hwcertData.img.tar.bz2 # aarch64 #mkdir -p /var/www/rhcert/store/transfer/fv-images/RHEL8/aarch64 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL8/aarch64 ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL8/aarch64/hwcert-aarch64.img.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL8/aarch64 ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL8/aarch64/hwcert-aarch64.xml.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL8/aarch64 ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL8/aarch64/hwcertData.img.tar.bz2 # ########## # RHEL 7 # ########## # x86_64 # Note: There is no RHEL 7 x86_64 subdir on the FTP site. The x86_64 files # are in the root of the "RHEL7" directory. #mkdir -p /var/www/rhcert/store/transfer/fv-images/RHEL7/x86_64 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL7/x86_64 ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL7/hwcert-x86_64.img.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL7/x86_64 ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL7/hwcert-x86_64.xml.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL7/x86_64 ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL7/hwcertData.img.tar.bz2 # ppc64le #mkdir -p /var/www/rhcert/store/transfer/fv-images/RHEL7/ppc64le #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL7/ppc64le ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL7/ppc64le/hwcert-ppc64le.img.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL7/ppc64le ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL7/ppc64le/hwcert-ppc64le.xml.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL7/ppc64le ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL7/ppc64le/hwcertData.img.tar.bz2 # s390x #mkdir -p /var/www/rhcert/store/transfer/fv-images/RHEL7/s390x #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL7/s390x ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL7/s390x/hwcert-s390x.img.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL7/s390x ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL7/s390x/hwcert-s390x.xml.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL7/s390x ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL7/s390x/hwcertData.img.tar.bz2 # aarch64 #mkdir -p /var/www/rhcert/store/transfer/fv-images/RHEL7/aarch64 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL7/aarch64 ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL7/aarch64/hwcert-aarch64.img.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL7/aarch64 ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL7/aarch64/hwcert-aarch64.xml.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL7/aarch64 ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL7/aarch64/hwcertData.img.tar.bz2 # ########## # RHEL 6 # ########## # x86_64 # Note: x86_64 is the only arch for RHEL 6 full-virt guest testing and the # x86_64 files are in the root of the "RHEL6" directory. #mkdir -p /var/www/rhcert/store/transfer/fv-images/RHEL6/x86_64 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL6/x86_64 ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL6/hwcert-x86_64.img.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL6/x86_64 ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL6/hwcert-x86_64.xml.tar.bz2 #wget --directory-prefix=/var/www/rhcert/store/transfer/fv-images/RHEL6/x86_64 ftp://partners.redhat.com/a166eabc5cf5df158922f9b06e5e7b21/hwcert/fv-images/RHEL6/hwcertData.img.tar.bz2 %end # End redhat-certification-hardware kickstart file for RHEL 7 x86_64 # # Changelog # 2019-07-31 Expanded pre-built guest section to cover all arches and versions # 2019-02-28 Updated the comments to make it clear that the kickstart prepares # a RHEL 7 SUT or a RHEL 7 LTS for RHEL 6, 7, and 8 SUTs. # 2019-02-26 Added optional commands to retrieve RHEL 8 guests # 2018-07-09 Updated the URL for the documentation site # 2017-10-04 Moved to systemd commands for service persistence # 2017 02-16 Removed obsolete redhat-certification-information package # 2015-09-08 Removed the obsolete RHEL 6-specific guest file download section # 2015-08-03 Added RHEL for Real Time sections # 2015-06-08 Added swap partition automatic sizing # Added automatic /boot/efi partition creation # 2015-05-20 Added lftp and mcelog # 2015-03-04 Added firewall rules, updated local guest file directories # 2015-02-07 Added guest file pull-down and server start commands # 2015-02-06 Updated for new redhat-certification tool # 2014-06-23 Updated for permanent location in .../released # 2014-05-20 Updated for latest RC bits # 2014-04-16 First version released #