如何在基于 ubuntu ARM 的系统中为 NIC 卡启动 PCI 直通

问题描述 投票:0回答:1

我的 ubuntu 22.04[ARM] 系统上有 Intel x700 系列网卡

并且使用 KVM 进行虚拟化,我需要将这些 NIC 端口用于来宾虚拟机。

如果有任何文档为 NIC 卡设置 PCI 直通会更好,我已经按照以下 URL 进行设置。但不幸的是没有成功。

https://www.servethehome.com/how-to-pass-through-pcie-nics-with-proxmox-ve-on-intel-and-amd/

在本文档中,设置完所有内容后,我在以下命令中看不到任何输出。

root@a1-95910:/home/ixuser# **cat /etc/default/grub**
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt"
GRUB_CMDLINE_LINUX=""


root@a1-95910:/home/ixuser# **cat /etc/modules**
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
root@a1-95910:/home/ixuser# **dmesg | grep -e DMAR -e IOMMU**
root@a1-95910:/home/ixuser# 

看起来这个文档是针对基于 intel 和 AMD 的设备的。

任何支持都更有帮助。

virtual-machine virtualization kvm
1个回答
0
投票

根据您遵循的教程:

对于 Intel CPU 添加 quiet intel_iommu=on:

GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"

但是您的计算机没有 Intel CPU。它是一台运行 Ubuntu 22.04 的基于 ARM 的计算机。基于 ARM 的 CPU 没有

iommu=
选项。
iommu.passthrough=
的可选值如下:

iommu.passthrough=
        [ARM64, X86] Configure DMA to bypass the IOMMU by default.
        Format: { "0" | "1" }
        0 - Use IOMMU translation for DMA.
        1 - Bypass the IOMMU for DMA.
        unset - Use value of CONFIG_IOMMU_DEFAULT_PASSTHROUGH.
© www.soinside.com 2019 - 2024. All rights reserved.