2021-07-02 12:21:13 +00:00
|
|
|
# __ ____ ____ _____
|
|
|
|
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
|
|
|
|
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
|
|
|
|
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
|
|
|
|
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
|
|
|
# /_/ /____/
|
|
|
|
|
2021-07-23 07:33:43 +00:00
|
|
|
# What ? This Kickstart file bootstrapsa a minimal headless guest hypervisor optimized for AMD CPUs.
|
2021-07-22 14:25:10 +00:00
|
|
|
# 'v' for virtual machine, 'h' for hypervisor', 'a' for amd, 'd' for desktop, 'm' for minimal, 'd' for development only.
|
2021-07-02 12:21:13 +00:00
|
|
|
|
|
|
|
# USAGE : Press the `tab` or 'e' key during POST and apend that after the 'quiet' string :
|
2021-07-23 07:33:43 +00:00
|
|
|
# inst.ks=https://git.phyllo.me/home/kickstart/raw/branch/master/leaves/vhamd.cfg
|
2021-07-02 12:21:13 +00:00
|
|
|
|
|
|
|
# ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents.
|
|
|
|
# Bye bye!
|
|
|
|
|
2021-07-23 07:33:43 +00:00
|
|
|
%include https://git.phyllo.me/home/kickstart/raw/branch/master/leaves/vhmd.cfg # Includes vemdhd.cfg, a minimal desktop-oriented nested-host ks file
|
2021-07-02 12:21:13 +00:00
|
|
|
|
|
|
|
%post # Beginning of %post section
|
|
|
|
|
2021-07-22 14:25:10 +00:00
|
|
|
# Load kernel modules in grub.
|
|
|
|
sed -i 's/\(quiet\)/\1 amd_iommu=on amd_iommu=pt rd.driver.pre=vfio-pci/i' /etc/default/grub
|
2021-07-02 12:21:13 +00:00
|
|
|
|
2021-07-23 08:38:10 +00:00
|
|
|
# dracut --force # Regenerate initramfs
|
|
|
|
# grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub
|
2021-07-02 12:21:13 +00:00
|
|
|
|
|
|
|
%end # End of the %post section
|