refactor amd-based hypervisor ks file
This commit is contained in:
parent
0125a8dccd
commit
4cc06eaeb6
@ -5,29 +5,21 @@
|
|||||||
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
||||||
# /_/ /____/
|
# /_/ /____/
|
||||||
|
|
||||||
# WHAT ? This Kickstart file bootstraps a minimal GNOME-based desktop-oriented virtual machine.
|
# What ? This Kickstart file bootstraps a minimal GNOME-based desktop-oriented virtual machine optimized for systems with AMD CPUs.
|
||||||
# 'v' for virtual machine, 'e' for efi, 'm' for minimal, 'd' for desktop, 'd' for development only.
|
# 'v' for virtual machine, 'h' for hypervisor', 'a' for amd, 'd' for desktop, 'm' for minimal, 'd' for development only.
|
||||||
|
|
||||||
# USAGE : Press the `tab` or 'e' key during POST and apend that after the 'quiet' string :
|
# USAGE : Press the `tab` or 'e' key during POST and apend that after the 'quiet' string :
|
||||||
# inst.ks=https://git.phyllo.me/home/kickstart/raw/branch/master/leafs/vemdhad.cfg
|
# inst.ks=https://git.phyllo.me/home/kickstart/raw/branch/master/leaves/vhadmd.cfg
|
||||||
# A shorter URL can also be used :
|
|
||||||
# inst.ks=https://url.phyllo.me/vemdhad
|
|
||||||
|
|
||||||
# ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents.
|
# ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents.
|
||||||
# Bye bye!
|
# Bye bye!
|
||||||
|
|
||||||
%include https://git.phyllo.me/home/kickstart/raw/branch/master/leafs/vemdhd.cfg # Includes vemdhd.cfg, a minimal desktop-oriented nested-host ks file
|
%include https://git.phyllo.me/home/kickstart/raw/branch/master/leaves/vhdmd.cfg # Includes vemdhd.cfg, a minimal desktop-oriented nested-host ks file
|
||||||
|
|
||||||
%post # Beginning of %post section
|
%post # Beginning of %post section
|
||||||
|
|
||||||
# Load kernel modules in grub. Add `intel_iommu=on intel_iommu=pt` for Intel processors,
|
# 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
|
||||||
sed -i 's/\(quiet\)/\1 amd_iommu=on/i' /etc/default/grub
|
|
||||||
sed -i 's/\(amd_iommu=on\)/\1 amd_iommu=pt/i' /etc/default/grub
|
|
||||||
|
|
||||||
# Load specific kernel modules kvmgt and vfio-mdev, for Intel GVT-g and Nvidia
|
|
||||||
echo "kvmgt" > /etc/modules-load.d/kvmgt.conf
|
|
||||||
echo "vfio-mdev" > /etc/modules-load.d/vfio-mdev.conf
|
|
||||||
|
|
||||||
dracut --force # Regenerate initramfs
|
dracut --force # Regenerate initramfs
|
||||||
grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub
|
grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub
|
||||||
|
Loading…
x
Reference in New Issue
Block a user