- Config file for the VM on ProxMox is the following:
Code:args: -cpu host,kvm=off machine: q35 bootdisk: ide0 cores: 1 cpu: host ide0: local-lvm:vm-100-disk-1,size=25G ide2: local:iso/win7x64.iso,media=cdrom memory: 2048 name: win7 net0: e1000=C6:42:2D:23:A4:AF,bridge=vmbr0 numa: 0 ostype: win7 scsihw: virtio-scsi-pci smbios1: uuid=6461691a-4bba-4d6c-8ed5-9560c131939c sockets: 2 hostpci0: 00:02,pcie=1,x-vga=on vga: none
- IOMMU is working:
Code:root@pve:~# dmesg | grep -e IOMMU [ 0.000000] Warning: PCIe ACS overrides enabled; This may allow non-IOMMU protected peer-to-peer DMA [ 0.000000] DMAR: IOMMU enabled [ 0.065200] DMAR-IR: IOAPIC id 2 under DRHD base 0xfed91000 IOMMU 1 root@pve:~# find /sys/kernel/iommu_groups/ -type l /sys/kernel/iommu_groups/5/devices/0000:00:1c.0 /sys/kernel/iommu_groups/5/devices/0000:01:00.0 /sys/kernel/iommu_groups/3/devices/0000:00:16.0 /sys/kernel/iommu_groups/1/devices/0000:00:02.0 /sys/kernel/iommu_groups/6/devices/0000:00:1f.3 /sys/kernel/iommu_groups/6/devices/0000:00:1f.4 /sys/kernel/iommu_groups/6/devices/0000:00:1f.2 /sys/kernel/iommu_groups/6/devices/0000:00:1f.0 /sys/kernel/iommu_groups/4/devices/0000:00:17.0 /sys/kernel/iommu_groups/2/devices/0000:00:14.2 /sys/kernel/iommu_groups/2/devices/0000:00:14.0 /sys/kernel/iommu_groups/0/devices/0000:00:00.0
- The vfio-pci driver is being used correctly:
Code:root@pve:~# lspci -k 00:02.0 VGA compatible controller: Intel Corporation Device 5906 (rev 02) Subsystem: Intel Corporation Device 2212 Kernel driver in use: vfio-pci Kernel modules: i915
- Other relevant information:
Code:root@pve:~# pveversion -v proxmox-ve: 5.1-32 (running kernel: 4.13.13-2-pve) pve-manager: 5.1-41 (running version: 5.1-41/0b958203) pve-kernel-4.13.13-2-pve: 4.13.13-32 libpve-http-server-perl: 2.0-8 lvm2: 2.02.168-pve6 corosync: 2.4.2-pve3 libqb0: 1.0.1-1 pve-cluster: 5.0-19 qemu-server: 5.0-18 pve-firmware: 2.0-3 libpve-common-perl: 5.0-25 libpve-guest-common-perl: 2.0-14 libpve-access-control: 5.0-7 libpve-storage-perl: 5.0-17 pve-libspice-server1: 0.12.8-3 vncterm: 1.5-3 pve-docs: 5.1-12 pve-qemu-kvm: 2.9.1-5 pve-container: 2.0-18 pve-firewall: 3.0-5 pve-ha-manager: 2.0-4 ksm-control-daemon: 1.2-2 glusterfs-client: 3.8.8-1 lxc-pve: 2.1.1-2 lxcfs: 2.0.8-1 criu: 2.11.1-1~bpo90 novnc-pve: 0.6-4 smartmontools: 6.5+svn4324-1 zfsutils-linux: 0.7.3-pve1~bpo9
- kernel settings:
Code:quiet intel_iommu=on pcie_acs_override=downstream video=efifb:off
- /etc/modules:
Code:vfio vfio_iommu_type1 vfio_pci vfio_virqfd pci_stub