add nested virtualization
This commit is contained in:
parent
5308ba4f40
commit
78bca3f334
@ -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_iommu_type1" > /etc/modules-load.d/vfio_iommu_type1.conf
|
||||||
echo "vfio_virqfd" > /etc/modules-load.d/vfio_virqfd.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 --add-drivers " vfio vfio-pci vfio_iommu_type1 vfio_virqfd " --force # Instruct dracut to load the vfio drivers
|
||||||
dracut --force # Regenerate initramfs
|
dracut --force # Regenerate initramfs
|
||||||
|
|
||||||
|
@ -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 "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 "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 --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
|
dracut --force # Regenerate initramfs
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user