User Tools

Site Tools


virt:zfs_kvm_debian8

This is an old revision of the document!


ZFS and VFIO PCI Passthrough on Debian 8

Config Files

Add intel_iommu=on to the boot loader

/etc/defaults/grub
..
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"
..

Load vfio on bootup

/etc/modules
...
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
...

Blacklist Video Drivers

  • driver name is found be running:
    lspci -vn | less -p VGA

    Look for “Kernel driver in use:

/etc/modprobe.d/blacklist.conf
...
blacklist mgag200
blacklist nouveau
...

Bind PCI device to VFIO

  1. Run lspci -nv and grab the hexadecimal PCI id.
  2. e.g. for
    07:00.0 0300: 10de:0322 (rev a1) (prog-if 00 [VGA controller])

    the PCI ID would be 10de:0322. The slot ID/address is 07:00.0

  3. Then take the slot address in the previous example *07:00.0 and prepend “0000:” so that you have something like 0000:07:00.0. Then execute the following command to unbind the current driver
    echo 0000:07:00.0 > /sys/bus/pci/devices/0000:07:00.0/driver/unbind
  4. Then take the PCI ID in the previous example 10de:0322 and replace the “:” with a space then run the following command
    echo 102b 0522 > /sys/bus/pci/drivers/vfio-pci/new_id
virt/zfs_kvm_debian8.1460405445.txt.gz · Last modified: 2016/04/11 15:10 by tschulz