diff --git a/leaves/bhamd.cfg b/leaves/bhamd.cfg index c0ce12a..25d18d5 100644 --- a/leaves/bhamd.cfg +++ b/leaves/bhamd.cfg @@ -18,6 +18,8 @@ echo "vfio-pci" > /etc/modules-load.d/vfio-pci.conf echo "vfio_iommu_type1" > /etc/modules-load.d/vfio_iommu_type1.conf echo "vfio_virqfd" > /etc/modules-load.d/vfio_virqfd.conf +echo "options kvm_amd nested=1" >> /etc/modprobe.d/kvm.conf # Add support for nested-virtualization + dracut --add-drivers " vfio vfio-pci vfio_iommu_type1 vfio_virqfd " --force # Instruct dracut to load the vfio drivers dracut --force # Regenerate initramfs diff --git a/leaves/bhimd.cfg b/leaves/bhimd.cfg index b02c6eb..f11594d 100644 --- a/leaves/bhimd.cfg +++ b/leaves/bhimd.cfg @@ -20,6 +20,8 @@ echo "vfio_virqfd" > /etc/modules-load.d/vfio_virqfd.conf echo "kvmgt" > /etc/modules-load.d/kvmgt.conf # Load specific kernel modules kvmgt and vfio-mdev, for Intel (tm) GVT-g and Nvidia (tm) echo "vfio-mdev" > /etc/modules-load.d/vfio-mdev.conf # Load specific kernel modules kvmgt and vfio-mdev, for Intel (tm) GVT-g and Nvidia (tm) +echo "options kvm_intel nested=1" >> /etc/modprobe.d/kvm.conf # Add support for nested-virtualization + dracut --add-drivers " vfio vfio-pci vfio_iommu_type1 vfio_virqfd vfio-mdev kvmgt " --force # Instruct dracut to load the vfio drivers dracut --force # Regenerate initramfs