​Proxmox PVE Chelsio vf 指南: Tutorial : Proxmox PVE with Chelsio T520 , T620… SR-IOV vf

​#Proxmox #PVE #Chelsio vf 指南:

網路上沒人寫,我就順手寫一下。


Tutorial : Proxmox PVE with Chelsio T520 , T620… SR-IOV vf

Setting up SR-IOV on Chelsio adapters in Proxmox (PVE) can be a bit tricky because of how the Physical Functions (PFs) are mapped. 


Proxmox PVE: Configuring SR-IOV VF for Chelsio Adapters

Introduction:

In Proxmox PVE, Chelsio cards typically display only 2 Physical Functions (PFs), but they actually have 4 (indexed 0, 1, 2, and 3). Virtual Functions (VFs) are created as child devices of these PFs.

Example Mapping:

 * pf0: ens5f4 (System names in PVE)

 * pf1: ens5f4d1

PCI Topology:

 * pf0 → maps to 03:00.0 and 03:00.2

 * pf1 → maps to 03:00.1 and 03:00.3

   To create VFs, you must target the specific 03:00.X path. Please pay close attention to this sequence.

Step-by-Step Configuration

1. Verify Hardware

root@pve:~# lspci | grep -i chelsio


You should see 7 Chelsio devices. Indices 0, 1, 2, and 3 are the PFs. Index 4 represents the entire card.

> 🔴 Note: To passthrough the entire network card, select device index 4.

> 

2. Verify Network Interfaces

root@pve:~# ip a


If the interfaces do not appear, install the PVE headers:

root@pve:~# apt update && apt install pve-headers


3. Enable VFs (Example: 4 VFs on pf1/03:00.3)

root@pve:~# echo 4 > /sys/bus/pci/devices/0000:03:00.3/sriov_numvfs


Alternatively, use the interface path:

root@pve:~# echo 4 > /sys/class/net/ens5f4d1/device/driver/0000\:03\:00.3/sriov_numvfs


4. Confirm VF Creation

Check via CLI:

root@pve:~# lspci -nn | grep -i "Chelsio.*VF"


You should see the Virtual Function (e.g., 03:01.3 ... [VF]). You can also verify these 4 VFs within the Proxmox Web UI.


5. Persistence (Apply on Boot)

Install sysfsutils:

root@pve:~# apt install sysfsutils


Edit the configuration file:

root@pve:~# nano /etc/sysfs.d/sr-iov.conf


Add the following line:

class/net/ens5f4d1/device/driver/0000\:03\:00.3/sriov_numvfs = 4


Enable the service:

root@pve:~# systemctl enable sysfsutils --now


6. Final Check

Reboot the system and verify that the VFs appear in the Proxmox Web UI.

> Technical Note: According to the Chelsio manual, Windows does not officially support VFs for the T5 series. However, I have verified that they can be driven and function correctly, as shown in the attached screenshots.

> 


🇯🇵 Japanese Version (日本語)

Proxmox PVE: Chelsio アダプターでの SR-IOV VF 設定

はじめに:

Chelsio カードは PVE 上で 2 つの PF(物理機能)しか表示されないことがありますが、実際には 4 つ(0, 1, 2, 3)存在します。仮想機能(VF)はこれら PF の下層に作成されます。

マッピング例:

 * pf0: ens5f4 (PVE 上の名称)

 * pf1: ens5f4d1

PCI トポロジ:

 * pf0 → 03:00.0 および 03:00.2

 * pf1 → 03:00.1 および 03:00.3

   VF を作成する場合、必ず 03:00.X のパスを指定してください。順序には十分注意してください。

設定手順

1. ハードウェアの確認

root@pve:~# lspci | grep -i chelsio


7 つの Chelsio デバイスが表示されるはずです。0〜3 が PF です。インデックス 4 はカード全体を指します。

> 🔴 注意: カード全体をパススルーする場合は、インデックス 4 を選択してください。

> 


2. ネットワークインターフェースの確認

root@pve:~# ip a


表示されない場合は、PVE ヘッダーをインストールしてください:

root@pve:~# apt update && apt install pve-headers


3. VF の有効化 (例:03:00.3 に 4 つの VF を設定)

root@pve:~# echo 4 > /sys/bus/pci/devices/0000:03:00.3/sriov_numvfs


4. VF の生成確認

root@pve:~# ip a

# または

root@pve:~# lspci | grep VF


cxgb4vf ドライバを使用した VF が表示されれば成功です。PVE の Web GUI でも確認可能です。

5. 設定の永続化

sysfsutils をインストールします:

root@pve:~# apt install sysfsutils


設定ファイルを作成・編集します:

root@pve:~# nano /etc/sysfs.d/sr-iov.conf


以下を追記:

class/net/ens5f4d1/device/driver/0000\:03\:00.3/sriov_numvfs = 4

サービスを有効化します:

root@pve:~# systemctl enable sysfsutils --now


6. 最終確認

再起動後、PVE Web UI に VF が表示されていることを確認してください。

> 補足: Chelsio のマニュアルでは T5 シリーズの VF は Windows 非対応とされていますが、実際には正常に動作し、ドライバも認識されることを確認済みです。

> 


#虛擬機 #virtualmachine #kvm #qemu


結論: 還是 #VMware 簡單多了,按一按就好,而且重開機仍然有效😂

#esxi


Chelsio T520-CR



留言

這個網誌中的熱門文章

How to :linux ZFS smb share to GUEST not samba SMB.conf

Tutorial Proxmox PVE gpu PCIe passthrough 顯卡直通 nvidia no code 43