Ubuntu – Ubuntu Server KVM, Passthrough PCI Device


I am trying to setup a VM Server on my old desktop hardware, the specs are:


MB: gigabyte 970A-D3P

CPU: AMD 8320

GPU to pass through: Sapphire HD7870 Ghz Edition

OS: Ubuntu Server 14.04.2 amd64


I have already set the grub boot option "amd_iommu=on"
I have done checks that my Hardware supports virtualization, and from what I can see all is good.

IOMMU Support

When I check dmesg for anything with IOMMU I get the following error:

dmesg | grep -e DMAR -e IOMMU

[ 0.973504] PCI-DMA: using GART IOMMU.

[ 0.973508] PCI-DMA: Reserving 64MB of IOMMU area in the AGP aperture

[ 12.724054] AMD IOMMUv2 driver by Joerg Roedel

[ 12.724057] AMD IOMMUv2 functionality not available on this system

Booting VM Errors

When I try to boot the VM, I get the following error:

Am I missing any steps in enabling the pci passthrough?
Or does my hardware simply not support PCI Passthrough?
Thanks for any help

Best Answer

  • You need to enable IOMMU in your BIOS.

    Here's an eHow guide: http://www.ehow.com/how_7705109_enable-iommu-bios.html

    Quoted from above page:

    IOMMU (I/O Memory Management Unit) is a feature supported by motherboard chipsets that provides enhanced virtual-to-physical memory mapping capabilities, including the ability to map large portions of non-contiguous memory. IOMMU can be enabled in the motherboard's BIOS, in order to resolve issues with virtual machine device drivers.

    Reboot the computer and note the key specified to access or enter "Setup" in the initial boot message displayed when the computer first boots.

    Reboot the computer and immediately press and hold down the keyboard key or keys specified in the initial boot message. Note the navigation keys specified in the BIOS setup screen that appears. Usually the keys specified are the "Up," "Down," "Left," and "Right" arrow keys to move the cursor, "Page Up" and "Page Down" to highlight a selection in a list, the "Tab" key to move horizontally through settings, and the "Enter" key to select a highlighted setting.

    Navigate through each BIOS screen using the "arrow" keys and find the "IOMMU," "I/O Memory Management Unit," or "Intel ® VT-d"setting (usually located under the "Advanced" or "Chipset/Northbridge/Tylersburg IOH/Intel VT for Directed I/O Configuration"settings menu). Move the cursor over the setting selection box using the "arrow" keys and press the "Page Up" or "Page Down" or specified key to select "Enabled."

    Press the "F10" key or navigate to the "Exit" menu using the "arrow" keys and move the cursor to the "Save and Exit" item and press the "Enter" key. Move the cursor to the "Yes" selection when confirmation to save settings is presented and press the "Enter" key to save the setting.