美文网首页
pve硬件直通

pve硬件直通

作者: 凌乱_8b06 | 来源:发表于2022-01-27 00:36 被阅读0次

将/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. 更新一下

然后重启一下。

相关文章

网友评论

      本文标题:pve硬件直通

      本文链接:https://www.haomeiwen.com/subject/sldohrtx.html