How to enable IOMMU in Fedora

本文介绍如何在Fedora Linux上启用IOMMU(输入/输出内存管理单元)支持,通过编辑GRUB配置文件并重启系统来实现虚拟化功能的增强。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

原文:https://scottlinux.com/2017/05/10/how-to-enable-iommu-support-in-fedora-linux/

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. 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值