How to enable IOMMU in Fedora
2017-07-14 23:59
1526 查看
原文: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:
If in the output you see something similar to the following, continue on below for help.
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!
3. Next, update grub2 via:
4. And finally reboot.
Now IOMMU should come back as PASS in this check: Run virt-host-validate again.
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.
相关文章推荐
- Linux: How to enable root user in Gnome for VirtualBox Fedora?
- Linux: How to enable root user in Gnome for VirtualBox Fedora?
- How To Enable/Disable Archive Logging In RAC Environment for 10.2 and higher version
- how to enable #ifdef macro in the command line of make?
- How-to: Enable User Authentication and Authorization in Apache HBase
- How to Enable 64-bit Processes for Enhanced Protected Mode in Internet Explorer 11 (IE11)
- How to enable sound in Ubuntu 11.04 While login as root
- how to enable debug in eclipse + weblogic
- 图形界面 Fedora Core 12/Core 11 How to log in GUI as r
- How to Enable or Disable Access to Windows Updates in Windows 7
- How to Install a Bin File in Fedora
- [转载]How to Install Google Chrome 39 in CentOS/RHEL 6 and Fedora 19/18
- How to Disable IPv6 in Fedora and CentOS
- How to Enable or Disable Hibernate in Windows 7
- How to enable time stamps for logs in 'dmesg' on Gaia and SecurePlatform
- How to Enable or Disable a cell in DataGridview Row ?
- how to enable debug in configure?
- (OK) rdesktop - How to Use Remote Desktop (rdesktop) in Redhat/Fedora/CentOS
- How to enable the root user in Mac OS X Lion
- How to enable syntax highlighting and other options in VIM