# x86_64 Kickstart file for redhat-certification-hardware and RHEL 8 # # This file prepares a Red Hat Enterprise Linux 8.0 system under test (SUT) # that is ready to be certified using the Red Hat Certification test suite. # We do not yet support the use of RHEL 8 as a local test server (LTS), so # please use the example RHEL 7 kickstart file to prepare an LTS for use with # RHEL 6, 7, and 8 systems under test. # # You will need to set up yum repositories that contain the following # groups of files in web-accessible locations in order to use the kickstart # file. There are many ways to set up this environment; we are providing # just one example: # # 1. RHEL 8.0 BaseOS and AppStream # - The unified install media from the partner download area contains both # these directories and the necessary yum repo data for all the files # contained therein. Download the DVD ISO file from the BaseOS/$ARCH/iso # directory in your partner-specific location's RHEL 8 directory and # save it into your local network. Once there, loopback mount it at a # web-accessible location with the command # "mount -o loop $ISO_FILENAME $WEB_ACCESSIBLE_DIRECTORY". # - Next, set the 'url' value in the kickstart file to point to the BaseOS # directory in the mount point on your network and set the AppStream # 'repo' value in the file to point to the AppStream directory in the # mount point on your network. Please note that the mount will not be # persistent across reboots. # # 2. Red Hat Certification and dependencies # - Download the following files from the Red Hat Customer Portal via the link # https://access.redhat.com/downloads/content/282/ver=8/rhel---8/8/x86_64/packages # - dt # - lmbench # - stress # - redhat-certification-hardware # - redhat-certification-backend # - Place the files in an empty web-accessible directory, and then run the # command "createrepo -p ." in that directory to create a yum repository # from the packages. We recommend creating a separate directory for each # architecture that you intend to test. # # 3. Kernel-debuginfo and kernel-debuginfo-common-$ARCH # - Download these two files from the BaseOS/$ARCH/debug/tree/Packages # directory in your partner-specific location's RHEL 8 directory, # place them in an empty web-accessible directory, then run the command # "createrepo -p ." in that directory to create a yum repository from # the packages. We recommend creating a separate directory for each # architecture that you intend to test. # # 4. Optional - RealTime # - The Real Time DVD ISO file can be found in the RT/x86_64/iso directory # of your partner specific location's RHEL 8 directory. Download the file # and save it to your local network. Once there, loopback mount it at a # web-accessible location with the same "mount" command mentioned # in item number one, using the appropriate ISO filename and a different # web accessible directory to contain the Real Time files. # - Next, set the Real Time 'repo' value in the kickstart file to point to # the Real Time directory in the mount point on your network. Please note # that the mount will not be persistent across reboots. # # Please see the "Preparing the Test Environment" section of the Red Hat # Certification Test Suite User Guide to learn more. Note that the guide has # not yet been updated for Red Hat Enterprise linux 8.0. # #https://access.redhat.com/documentation/en-us/red-hat-enterprise-linux-hardware-certification # # Begin redhat-certification kickstart file for RHEL 8.0 x86_64 install # Use graphical install graphical # Change the server information on the 'url' line to point to the BaseOS # directory in your own environment. url --url http://myserver.mydomain.com/path/to/rhel8/BaseOS-directory/ # 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=eno1 --ipv6=auto --activate # Disable the firewall firewall --disable # Set the root password to "redhat" rootpw redhat # Enable SELinux (required for certification) selinux --enforcing # Set the system timezone timezone America/New_York --isUtc # Create a non-root user with the password "redhat" user --name=certuser --password=redhat --gecos="Certification User" # X Window System configuration information xconfig --startxonboot # See the %pre section near the bottom of this file for partitioning %include /tmp/part-include # Yum repository for AppStream content # Change the next line to point to the AppStream directory in your # environment. repo --name=AppStream --baseurl=http://myserver.mydomain.com/path/to/AppStream-directory # Yum repository for redhat-certification-backend, # 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/path/to/redhat-certification-directory # Yum repository for kernel debuginfo dependencies. Change the next line # to point to your custom debuginfo repository. repo --name=rhel8.0-x86_64-debug --baseurl=http://myserver.mydomain.com/path/to/debuginfo-directory # 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 8.0. repo --name=Real_Time --baseurl=http://myserver.mydomain.com/path/to/RT-directory # Reboot when finished reboot %packages @^workstation-product-environment @development tcsh alsa-utils dvd+rw-tools wodim crash kernel-debuginfo libvirt virt-install qemu-kvm tar xorg-x11-utils glx-utils xorg-x11-server-Xorg xorg-x11-xinit xterm perf libguestfs-tools-c # tmux utility is helpful for running tests over an SSH session # if debugging is necessary. tmux # Install rhcert and dependencies from our custom repository redhat-certification-hardware redhat-certification-backend # Uncomment the following packages if you enabled the optional Real Time repo # above and want to certify for RHEL for Real Time. #kernel-rt #rt-setup #rteval #rteval-common #rteval-loads #rt-tests %end %addon com_redhat_kdump --enable --reserve-mb='auto' %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=1024 --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 %end # End rhcert-client kickstart file fior RHEL 8.0 x86_64 # # Changelog # 2019-04-25 Added 'libguestfs-perf-c' package for a virt test dependency # 2019-04-04 Added 'perf' package to solve dependency for the "Profiler" test # 2019-02-28 Updated comments to make it clear that we do not yet support the # use of a RHEL 8 system as an LTS. A RHEL 7 system should be used # for that purpose. # 2019-01-14 First pre-release test version created