NIC 드라이버 확인
코드 블럭 |
---|
|
# lspci -v | grep -i mel -A 30
81:00.0 Ethernet controller: Mellanox Technologies MT28908 Family [ConnectX-6]
...
Kernel driver in use: mlx5_core
Kernel modules: mlx5_core
|
VF 최대 개수 제한
Intel | Broadcom | Mellanox |
---|
코드 블럭 |
---|
language | text |
---|
theme | Emacs |
---|
title | /etc/modprobe.d/ixgbe.conf |
---|
| options ixgbe max_vfs=7
|
|
코드 블럭 |
---|
language | text |
---|
theme | Emacs |
---|
title | /etc/modprobe.d/bnxt.conf |
---|
| options bnxt_en max_vfs=7
|
|
코드 블럭 |
---|
language | text |
---|
theme | Emacs |
---|
title | /etc/modprobe.d/mlx5.conf |
---|
| options mlx5_core max_vfs=16
|
|
(참고) 로컬에서 작업중이라면 임시로 다음과 같이 작업할 수도 있다.
...
코드 블럭 |
---|
language | text |
---|
theme | Emacs |
---|
linenumbers | true |
---|
|
modprobe -r ixgbe
modprobe ixgbe max_vfs=7
|
VF 개수 선언
코드 블럭 |
---|
language | bash |
---|
theme | Emacs |
---|
title | /etc/rc.local |
---|
|
echo 3 > /sys/class/net/eno1np0/device/sriov_numvfs
echo 6 > /sys/class/net/enp129s0f0/device/sriov_numvfs
|
재시작
VF 생성 확인
상기 rc.local 에서 sriov_numvfs 에 선언한 개수만큼 VF가 생성되었다.
...