From cece35e114e9c0c7cfa9beb309c20becff9e3332 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 11 Sep 2019 16:40:47 +0100 Subject: [PATCH] builder: templates: Add rhel-7.7 kickstart and virt-install command. --- builder/templates/rhel-7.7.ks | 31 +++++++++++++++++++++ builder/templates/rhel-7.7.virt-install-cmd | 20 +++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 builder/templates/rhel-7.7.ks create mode 100644 builder/templates/rhel-7.7.virt-install-cmd diff --git a/builder/templates/rhel-7.7.ks b/builder/templates/rhel-7.7.ks new file mode 100644 index 000000000..2e261ffbe --- /dev/null +++ b/builder/templates/rhel-7.7.ks @@ -0,0 +1,31 @@ +# Kickstart file for rhel-7.7 +# Generated by libguestfs.git/builder/templates/make-template.ml + +install +text +reboot +lang en_US.UTF-8 +keyboard us +network --bootproto dhcp +rootpw builder +firewall --enabled --ssh +timezone --utc America/New_York +selinux --enforcing + +bootloader --location=mbr --append="console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH" + +zerombr +clearpart --all --initlabel --disklabel=gpt +autopart --type=plain + +# Halt the system once configuration has finished. +poweroff + +%packages +@core +%end + +%post +%end + +# EOF diff --git a/builder/templates/rhel-7.7.virt-install-cmd b/builder/templates/rhel-7.7.virt-install-cmd new file mode 100644 index 000000000..06ff4a9bf --- /dev/null +++ b/builder/templates/rhel-7.7.virt-install-cmd @@ -0,0 +1,20 @@ +# This is the virt-install command which was used to create +# the virt-builder template 'rhel-7.7' +# NB: This file is generated for documentation purposes ONLY! +# This script was never run, and is not intended to be run. + +'virt-install' \ + '--transient' \ + '--name=tmp-dqmdvual' \ + '--ram=2048' \ + '--arch=x86_64' \ + '--cpu=host' \ + '--vcpus=4' \ + '--os-variant=rhel7.5' \ + '--initrd-inject=rhel-7.7.ks' \ + '--extra-args=ks=file:/rhel-7.7.ks console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH' \ + '--disk=/home/rjones/d/libguestfs/builder/templates/tmp-dqmdvual.img,size=6,format=raw' \ + '--location=http://download.devel.redhat.com/released/RHEL-7/7.7/Server/x86_64/os' \ + '--serial=pty' \ + '--nographics' +