Host System Environment Preparation
Note
These steps are required when configuring the host system to support virtualization.
Updating the BIOS Settings
Enter to the BIOS setup.
Enable the VT-d parameter in BIOS. This setting is usually under
Socket configuration > IIO configuration > Intel VT-d
.Enable SR-IOV in BIOS. This setting is usually under
Platform Configuration > Miscellaneous Configuration > SR-IOV Support
.
Configuring the Host OS
Check the kernel requirements are met.
Verify appropriate kernel boot parameters are defined using the following command:
cat /proc/cmdline
If the parameters are not defined, the
grubby
command can be used to add the parameters. Reboot the system after adding the kernel parameters, and verify they are correct with the above command.For SR-IOV:
grubby --update-kernel=ALL --args="intel_iommu=on"
Note
grubby --remove-args
argument can be used to remove any arguments that are not required.Once the system is restarted, check the DMAR and IOMMU messages using the following command:
dmesg | grep -e DMAR -e IOMMU
You should see a similar output as below:
Kernel Requirements
SR-IOV |
---|
No special limitations. Any kernel version which is supported by Intel QAT 2.0 can be used. |
Kernel Boot Parameters
SR-IOV |
---|
|
Install Virtualization Packages
Install virtualization related packages using the following command:
dnf -y install qemu-kvm libvirt
Verify device capabilities using below command:
(lspci -vnd 8086:4940 || lspci -vnd 8086:4942 || lspci -vnd 8086:4944 || lspci -vnd 8086:4946 ) | (grep SR-IOV)
Note
For SR-IOV,
Single Root I/O Virtualization (SR-IOV)
needs to be present.
System Environment Preparation Demo
Here is a demonstration of how to configure the system to enable virtualization.