This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
virt:zfs_kvm_debian8 [2016/04/12 09:24] tschulz [Important Bits] |
virt:zfs_kvm_debian8 [2016/04/12 09:36] tschulz [Setup Bridged Networking] |
||
---|---|---|---|
Line 22: | Line 22: | ||
==== Blacklist Video Drivers==== | ==== Blacklist Video Drivers==== | ||
+ | * If a driver is using a pci device that you want to passthough you might want to blacklist the driver, although you can try unbinding the driver before you tell vfio to claim the device | ||
* driver name is found be running: <file>lspci -vn | less -p VGA | * driver name is found be running: <file>lspci -vn | less -p VGA | ||
</file> Look for "**Kernel driver in use:**"<file bash /etc/modprobe.d/blacklist.conf> | </file> Look for "**Kernel driver in use:**"<file bash /etc/modprobe.d/blacklist.conf> | ||
Line 42: | Line 43: | ||
</file> | </file> | ||
+ | ===== Install Kernel and updates from Backports ===== | ||
+ | * add the following line to /etc/apt/sources.list<file>deb http://ftp.debian.org/debian jessie-backports main</file> | ||
+ | * Update package list and update packages<file>apt-get update | ||
+ | apt-get -t jessie-backports upgrade</file> | ||
===== Bind PCI device to VFIO ===== | ===== Bind PCI device to VFIO ===== | ||
Line 54: | Line 59: | ||
</file> | </file> | ||
- | ===== Headline ===== | + | ===== USB Passthough ===== |
* If you are passing a physical video card to a VM, you will need to also pass usb input devices to the VM since the VM will not have a SDL or Spice virtual display. | * If you are passing a physical video card to a VM, you will need to also pass usb input devices to the VM since the VM will not have a SDL or Spice virtual display. | ||
* This is done through USB passthrough. | * This is done through USB passthrough. | ||
Line 61: | Line 66: | ||
Bus 003 Device 003: ID 0557:2205 ATEN International Co., Ltd | Bus 003 Device 003: ID 0557:2205 ATEN International Co., Ltd | ||
Bus 003 Device 002: ID 0451:2046 Texas Instruments, Inc. TUSB2046 Hub</file> | Bus 003 Device 002: ID 0451:2046 Texas Instruments, Inc. TUSB2046 Hub</file> | ||
- | * What we want is the hexadecimal ID ffff:ffff | + | * What we want is the hexadecimal ID **ffff:ffff** |
- | * | + | * then this to pass the usb device to the vm<file>-usbdevice host:ffff:ffff</file> |
===== Example kvm script ===== | ===== Example kvm script ===== | ||
<file bash> | <file bash> |