pve硬件直通

2022-01-27  本文已影响0人  凌乱_8b06

将/etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet"替换成下面的

GRUB_CMDLINE_LINUX_DEFAULT="quiet initel_iommu=on"

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=5

GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`

GRUB_CMDLINE_LINUX_DEFAULT="quiet initel_iommu=on"

GRUB_CMDLINE_LINUX=""

添加vfio

vfio_iommu_typel

vfio_pci

vfio_virqfd

# /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_typel

vfio_pci

vfio_virqfd

输入root@www:~# update-initramfs -u -k all. 更新一下

然后重启一下。

上一篇 下一篇

猜你喜欢

热点阅读