KVM 安装中IOMMU 警告问题解决

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了KVM 安装中IOMMU 警告问题解决相关的知识,希望对你有一定的参考价值。

IOMMU 警告问题解决

Typically by default, IOMMU is not enabled in Linux. I’ll show how to enable that virtualization feature on Fedora Linux!

1. First, check if IOMMU support is enabled by running this command:

sudo virt-host-validate

If in the output you see something similar to the following, continue on below for help.
...
QEMU: Checking if IOMMU is enabled by kernel : FAIL
(IOMMU appears to be disabled in kernel. Add intel_iommu=on to kernel cmdline arguments)
...


2. Edit the file /etc/default/grub and add intel_iommu=on to the existing GRUB_CMDLINE_LINUX line.

Note: I have a lot going on here for mine, such as a fix for a weird usb power issue of my motherboard, enabling nested virtualization for kvm and more. Disregard those things and only add intel_iommu=on for this task!
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed ‘s, release .*$,,g‘ /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="nouveau.modeset=0 rd.driver.blacklist=nouveau nomodeset rhgb quiet xhci-hcd.quirks=262144 kvm-intel.nested=1 intel_iommu=on"
GRUB_DISABLE_RECOVERY="true"


3. Next, update grub2 via:

sudo grub2-mkconfig -o /boot/grub2/grub.cfg


4. And finally reboot.

sudo reboot


Now IOMMU should come back as PASS in this check: Run virt-host-validate again.

以上是关于KVM 安装中IOMMU 警告问题解决的主要内容,如果未能解决你的问题,请参考以下文章

解决kvm虚拟机直接访问宿主机器上面某个磁盘问题

OpenStack之安装kvm+编译安装libvirt+解决遇到的问题

解决kvm安装windows7虚拟机cpu只有两个的问题

kvm 安装操作系统问题

kvm解决1000M网卡问题

vnc的安装{安装kvm重启故障解决办法}