You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current tutorial is making the users' life unnecessarily complex for setting up vfio. We can remove most of what's in this section since in the VM IOMMU will always be disabled.
Load the vfio-pci driver in the User Plane VM
As root user, load the vfio-pci driver. To make it persistent upon VM restarts, add it to the /etc/rc.local file.
cat << EOF | sudo tee -a /etc/rc.local
#!/bin/bash
sudo echo "vfio-pci" > /etc/modules-load.d/vfio-pci.conf
sudo modprobe vfio-pci
EOF
sudo chmod +x /etc/rc.local
sudo /etc/rc.local
Note
Using vfio-pci, by default, needs IOMMU to be enabled. IOMMU support could be checked by running the command ls /sys/kernel/iommu_groups/. If IOMMU groups do not exist in the command output then it is not supported. In the environments which do not support IOMMU, vfio-pci needs to be loaded with additional module parameter persistently using the command below.
Enable VFIO driver unsafe IOMMU mode if IOMMU mode is not supported:
cat << EOF | sudo sudo tee -a /etc/rc.local
sudo echo "options vfio enable_unsafe_noiommu_mode=1" > /etc/modprobe.d/vfio-noiommu.conf
sudo echo "Y" > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode
sudo modprobe vfio enable_unsafe_noiommu_mode=1
EOF
sudo chmod +x /etc/rc.local
sudo /etc/rc.local
The text was updated successfully, but these errors were encountered:
Enhancement Proposal
The current tutorial is making the users' life unnecessarily complex for setting up vfio. We can remove most of what's in this section since in the VM IOMMU will always be disabled.
The text was updated successfully, but these errors were encountered: