Workaround:
Hi,
I try to switch from Ubuntu Server 14.04 to proxmox, but I cant get pcie vga passthrough to work.
Just to mention again it runs well under ubuntu, so it should not be a hardware issue.
my system:
cpu: i7-4970k
proxmox 4.2.2-1-pve
host graphics: intel hd4600
guest graphics: nvidia gtx970
And yes I did update-grub
/etc/initramfs-tools/modules
100.conf
dmesg | grep -e DMAR -e IOMMU
lspci -nnk
/etc/modprobe.d/iommu_unsafe_interrupts.conf
when I run 'qm start 100' I get:
Status in webfrontend says OK, but forsure nothing happens.
On my ubuntu server I additionaly use this grub flag, and use OVMF for the VM:
But it does not change anything in proxmox with or w/o this flag.
I know there are two kernel patches mentioned in the arch-forum, so called "ACS override patch" and "i915 VGA arbiter patch", do I need this patches?, if yes how do I apply them to the proxmox kernel, sorry I'm not familiar in patching kernels.
Any sugestions?
Regards!
Edit:
- Install Debian Jessie
- Add Proxmox Repositories as per wikihttps://pve.proxmox.com/wiki/Install..._Debian_Jessie
- Set Debian Kernel 3.16 as default (or select it during boot in grub menu)
- Enable PCIE Passthrough as per wikihttps://pve.proxmox.com/wiki/Pci_passthrough
- Use OMVF instead of SeaBios on VM
- PCIE-Passthrough works (also with GPUS)
Hi,
I try to switch from Ubuntu Server 14.04 to proxmox, but I cant get pcie vga passthrough to work.
Just to mention again it runs well under ubuntu, so it should not be a hardware issue.
my system:
cpu: i7-4970k
proxmox 4.2.2-1-pve
host graphics: intel hd4600
guest graphics: nvidia gtx970
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on vfio_iommu_type1.allow_unsafe_interrupts=1 rootdelay=10 scsi_mod.scan=sync"
Code:
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
pci_stub
vfio
vfio_iommu_type1
vfio_pci
kvm
kvm_intel
Code:
# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax: module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
pci_stub ids=10de:13c2,10de:0fbb
Code:
bootdisk: virtio0
cores: 4
cpu: host
hostpci1: 01:00,x-vga=on,pcie=1,driver=vfio
ide2: local:iso/de_windows_10_multiple_editions_x64_dvd_6846954.iso,media=cdrom
kvm: 1
machine: q35
memory: 10000
name: win10
net0: e1000=C2:9D:85:B8:AA:47,bridge=vmbr0
numa: 0
ostype: other
smbios1: uuid=6ee35a46-4266-44a8-8ac2-478ecc811cbe
sockets: 1
usb0: host=046d:c051
usb1: host=413c:2005
vga: none
virtio0: local:100/vm-100-disk-1.raw,discard=on,size=250G
Code:
[ 0.000000] ACPI: DMAR 0x00000000BD5F85E0 0000B8 (v01 INTEL BDW 00000001 INTL 00000001)
[ 0.000000] DMAR: IOMMU enabled
[ 0.032062] DMAR: Host address width 39
[ 0.032064] DMAR: DRHD base: 0x000000fed90000 flags: 0x0
[ 0.032070] DMAR: dmar0: reg_base_addr fed90000 ver 1:0 cap c0000020660462 ecap f0101a
[ 0.032071] DMAR: DRHD base: 0x000000fed91000 flags: 0x1
[ 0.032074] DMAR: dmar1: reg_base_addr fed91000 ver 1:0 cap d2008c20660462 ecap f010da
[ 0.032074] DMAR: RMRR base: 0x000000bdea8000 end: 0x000000bdeb6fff
[ 0.032075] DMAR: RMRR base: 0x000000bf000000 end: 0x000000cf1fffff
[ 0.032077] DMAR-IR: IOAPIC id 8 under DRHD base 0xfed91000 IOMMU 1
[ 0.032077] DMAR-IR: HPET id 0 under DRHD base 0xfed91000
[ 0.032078] DMAR-IR: x2apic is disabled because BIOS sets x2apic opt out bit.
[ 0.032078] DMAR-IR: Use 'intremap=no_x2apic_optout' to override the BIOS setting.
[ 0.032280] DMAR-IR: Enabled IRQ remapping in xapic mode
[ 0.421076] DMAR: No ATSR found
[ 0.421140] DMAR: dmar0: Using Queued invalidation
[ 0.421184] DMAR: dmar1: Using Queued invalidation
[ 0.421190] DMAR: Setting RMRR:
[ 0.421197] DMAR: Setting identity map for device 0000:00:02.0 [0xbf000000 - 0xcf1fffff]
[ 0.422231] DMAR: Setting identity map for device 0000:00:14.0 [0xbdea8000 - 0xbdeb6fff]
[ 0.422249] DMAR: Setting identity map for device 0000:00:1a.0 [0xbdea8000 - 0xbdeb6fff]
[ 0.422264] DMAR: Setting identity map for device 0000:00:1d.0 [0xbdea8000 - 0xbdeb6fff]
[ 0.422275] DMAR: Prepare 0-16MiB unity mapping for LPC
[ 0.422280] DMAR: Setting identity map for device 0000:00:1f.0 [0x0 - 0xffffff]
[ 0.422325] DMAR: Intel(R) Virtualization Technology for Directed I/O
[ 11.399914] [drm] DMAR active, disabling use of stolen memory
Code:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM204 [GeForce GTX 970] [10de:13c2] (rev a1)
Subsystem: Gigabyte Technology Co., Ltd Device [1458:367a]
Kernel driver in use: vfio-pci
01:00.1 Audio device [0403]: NVIDIA Corporation GM204 High Definition Audio Controller [10de:0fbb] (rev a1)
Subsystem: Gigabyte Technology Co., Ltd Device [1458:367a]
Kernel driver in use: vfio-pci
Code:
options vfio_iommu_type1 allow_unsafe_interrupts=1
Code:
proxmox:~# qm start 100
unknown hostpci setting 'driver=vfio'
unknown hostpci setting 'driver=vfio'
unknown hostpci setting 'driver=vfio'
Running as unit 100.scope.
unknown hostpci setting 'driver=vfio'
On my ubuntu server I additionaly use this grub flag, and use OVMF for the VM:
Code:
i915.enable_hd_vgaarb=1
I know there are two kernel patches mentioned in the arch-forum, so called "ACS override patch" and "i915 VGA arbiter patch", do I need this patches?, if yes how do I apply them to the proxmox kernel, sorry I'm not familiar in patching kernels.
Any sugestions?
Regards!
Edit:
Code:
pveversion -v
proxmox-ve: 4.0-16 (running kernel: 4.2.2-1-pve)
pve-manager: 4.0-57 (running version: 4.0-57/cc7c2b53)
pve-kernel-4.2.2-1-pve: 4.2.2-16
lvm2: 2.02.116-pve1
corosync-pve: 2.3.5-1
libqb0: 0.17.2-1
pve-cluster: 4.0-24
qemu-server: 4.0-35
pve-firmware: 1.1-7
libpve-common-perl: 4.0-36
libpve-access-control: 4.0-9
libpve-storage-perl: 4.0-29
pve-libspice-server1: 0.12.5-2
vncterm: 1.2-1
pve-qemu-kvm: 2.4-12
pve-container: 1.0-21
pve-firewall: 2.0-13
pve-ha-manager: 1.0-13
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u1
lxc-pve: 1.1.4-3
lxcfs: 0.10-pve2
cgmanager: 0.39-pve1
criu: 1.6.0-1
zfsutils: 0.6.5-pve6~jessie
Last edited: