Proxmox8 PVE SFP直通 网络等相关配置

By | 2024-01-23

主板:QOTOM MB4C911-0321 V1.0

操作系统:Proxmox8.13

Linux proxmox 6.5.11-4-pve #1 SMP PREEMPT_DYNAMIC PMX 6.5.11-4  x86_64

网络:Intel I225-V x 5, X553_10GbE x 2, X553_1GbE x 2

04:00.0 Ethernet controller: Intel Corporation Ethernet Controller I225-V (rev 03)
05:00.0 Ethernet controller: Intel Corporation Ethernet Controller I225-V (rev 03)
06:00.0 Ethernet controller: Intel Corporation Ethernet Controller I225-V (rev 03)
07:00.0 Ethernet controller: Intel Corporation Ethernet Controller I225-V (rev 03)
08:00.0 Ethernet controller: Intel Corporation Ethernet Controller I225-V (rev 03)
0b:00.0 Ethernet controller: Intel Corporation Ethernet Connection X553 10 GbE SFP+ (rev 11)
0b:00.1 Ethernet controller: Intel Corporation Ethernet Connection X553 10 GbE SFP+ (rev 11)
0c:00.0 Ethernet controller: Intel Corporation Ethernet Connection X553 Backplane (rev 11)
0c:00.1 Ethernet controller: Intel Corporation Ethernet Connection X553 Backplane (rev 11)

开启IOMMU

BIOS设置VT-D为Enable

1、修改/etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"

2、更新update-grub并重启

3、WebUI设置直通SFP并重启

安装使用centos7 mini

1、创建centos虚拟机

2、添加PCI设备,选择直通的SFP,最终完成如下

3,设置vmbr1为DHCP获取网络

/etc/network/interfaces

auto vmbr0
iface vmbr0 inet static
        address 192.168.10.2/24
        gateway 192.168.10.1
        bridge-ports enp4s0
        bridge-stp off
        bridge-fd 0

auto vmbr1
#iface vmbr0 inet static
iface vmbr1 inet dhcp
        bridge-ports enp5s0
        bridge-stp off
        bridge-fd 0

4,重启网络

systemctl restart networking.service

4,启动虚拟机按流程安装系统(过程略),使用nmtui配置网络,将SFP设置为DHCP获取网络

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注