text skipx reboot %packages @^minimal-environment # some extra stuff, some of it depends on having the EPEL repo defined during installation, see inst.addrepo command line # Xen guest xe-guest-utilities-latest # VMWare guest open-vm-tools # KVM guest # performance acpid chrony rng-tools tuned tuned-utils # utils screen tmux mc nano vim net-tools wget # cloud-init support cloud-init cloud-utils-growpart %end # Keyboard layouts keyboard --xlayouts='us' # System language lang en_US.UTF-8 # Network information network --bootproto=dhcp --device=eth0 --ipv6=auto --activate network --hostname=localhost.localdomain # services services --enabled=NetworkManager,acpid,chronyd,sshd,cloud-init,cloud-init-local,cloud-config,cloud-final,rngd,tuned,vmtoolsd,xe-linux-distribution --disabled=kdump firstboot --disable eula --agreed # disk #ignoredisk --only-use=vda zerombr # Partition clearing information # clearpart --none --initlabel clearpart --initlabel --all # Disk partitioning information # One partition to rule them all, no swap part / --size=1024 --grow --fstype ext4 --asprimary bootloader --location=mbr --driveorder=vda # System timezone timezone Etc/GMT --utc # Root password is "password" rootpw --iscrypted $6$P7tYlekEbtEO4sj8$r43BhOqVxUSb9FAX82DJYR6iUQ622P1eaulE8dc.e91SEU7KaSrW8kI/TmM6k0aNXbnV20l6n6Fj/XwycOQVi/ %addon com_redhat_kdump --disable --reserve-mb='auto' %end %post --erroronfail # better virtualisation support #echo 'add_drivers+="ata_piix mptbase mptscsih mptspi mptsas ahci vmw_pvscsi virtio_blk virtio_scsi virtio_console xen-blkfront nvme-core nvme"' > /etc/dracut.conf.d/openvm.conf echo 'add_drivers+=" mptbase mptscsih mptspi mptsas ahci vmw_pvscsi e1000 e1000e vmxnet3 nvme_core nvme xen-netfront xen-blkfront virtio_blk virtio_net virtio_scsi ata_piix "' > /etc/dracut.conf.d/openvm.conf # To make dracut config changes permanent, we need to rerun dracut. # Rerun dracut for the installed kernel (not the running kernel). ##KERNEL_VERSION="$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n' | sort -V | tail -1)" ##dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION ##restorecon -Rv /etc/dracut.conf.d %end