SR-IOV on 10G Intel NIC

Semidragon·2023년 1월 12일
0

Hardware Constraints
Youtube Guide

1. Prerequisites

First Checked if SR-IOV was available at our server via: sudo lspci -vv.
Under the "Ethernet controller" specification, I was able to find that both NIC from b1 and JY server have SR-IOV capabilities. (supports up to 64 VFs = can make up to 64 virtual machines)

Next, Checked if SR-IOV was available for our NIC:

Lastly, I enabled VT-d. I needed to enable the SR-IOV, yet was unable to find at BIOS, thus first proceeded to the next step.

2. Enable IOMMU

  1. At /etc/default/grub, change or add
# Intel CPU
GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on"
# AMD CPU
GRUB_CMDLINE_LINUX_DEFAULT="amd_iommu=on iommu=pt kvm_amd.npt=1 kvm_amd.avic=1"

Then, apply change via:

sudo update-grub
sudo shutdown -r now

And check if IOMMU is enabled:

dmesg | grep IOMMU

3. Enable VFs

enable 32 VFs (Probabaly more than we need) via:

echo "options ixgbe max_vfs=32" >> /etc/modprobe.d/ixgbe.conf
update-initramfs -u
reboot

4. Check VFs configured

Then, We can see that VFs are sucessfully configured.

5. Set VM (KVM)

todo

profile
Semidragon's network [CS undergrad @ Sungkyunkwan University | Networks + System @ CSI]

0개의 댓글