Hello everyone!
I try to PASSTHROUGH my nvidia GTX560TI in proxmox.
I done this steps:
Change grub parameters to this
add to /etc/modules this lines:
execute this command, because Interrupt remapping not supported on my system
I run this command to check iommu group for pci devices
then I find my GPU in lspci output ? in vm config I use
Also I add venvor ID of my GPU to file /etc/modprobe.d/vfio.conf
Then I check GPU bios
I dont see type 3 in output
And because I have nvidia card, I add this
And, after all this steps I create new windows 10 VM with OVMF.
VM config:
VM won't boot with ,x-vga=1 parameter.
If I remove this and change line to this
VM will boot, I can connect via NoVNC
and see this in device manager - error 43 on NVIDIA GTX 560TI
Nvidia latest drivers installed.
What I do wrong?
My hardware:
MB - asrock 970m pro3
CPU - 8 x AMD FX(tm)-8320 Eight-Core Processor
Software:
Thanks in advance!
I don't understand where I wrong
I try to PASSTHROUGH my nvidia GTX560TI in proxmox.
I done this steps:
Change grub parameters to this
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on"
add to /etc/modules this lines:
Code:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
execute this command, because Interrupt remapping not supported on my system
Code:
echo "options vfio_iommu_type1 allow_unsafe_interrupts=1" > /etc/modprobe.d/iommu_unsafe_interrupts.conf
I run this command to check iommu group for pci devices
Code:
root@proxmox-lab1:~# find /sys/kernel/iommu_groups/ -type l
/sys/kernel/iommu_groups/7/devices/0000:00:14.1
/sys/kernel/iommu_groups/15/devices/0000:02:00.0
/sys/kernel/iommu_groups/5/devices/0000:00:13.2
/sys/kernel/iommu_groups/5/devices/0000:00:13.0
/sys/kernel/iommu_groups/13/devices/0000:00:16.2
/sys/kernel/iommu_groups/13/devices/0000:00:16.0
/sys/kernel/iommu_groups/3/devices/0000:00:11.0
/sys/kernel/iommu_groups/11/devices/0000:00:14.5
/sys/kernel/iommu_groups/1/devices/0000:00:02.0
/sys/kernel/iommu_groups/8/devices/0000:00:14.2
/sys/kernel/iommu_groups/6/devices/0000:00:14.0
/sys/kernel/iommu_groups/14/devices/0000:01:00.1
/sys/kernel/iommu_groups/14/devices/0000:01:00.0
/sys/kernel/iommu_groups/4/devices/0000:00:12.2
/sys/kernel/iommu_groups/4/devices/0000:00:12.0
/sys/kernel/iommu_groups/12/devices/0000:00:15.0
/sys/kernel/iommu_groups/12/devices/0000:05:00.0
/sys/kernel/iommu_groups/12/devices/0000:04:00.0
/sys/kernel/iommu_groups/12/devices/0000:00:15.3
/sys/kernel/iommu_groups/2/devices/0000:00:09.0
/sys/kernel/iommu_groups/10/devices/0000:00:14.4
/sys/kernel/iommu_groups/0/devices/0000:00:00.0
/sys/kernel/iommu_groups/9/devices/0000:00:14.3
then I find my GPU in lspci output ? in vm config I use
Code:
hostpci0: 01:00.0;01:00.1
Also I add venvor ID of my GPU to file /etc/modprobe.d/vfio.conf
Code:
root@proxmox-lab1:~# cat /etc/modprobe.d/vfio.conf
options vfio-pci ids=10de:1200,10de:0e0c disable_vga=1
root@proxmox-lab1:~#
Then I check GPU bios
Code:
# cd /sys/bus/pci/devices/0000:01:00.0/
# echo 1 > rom
# cat rom > /tmp/image.rom
# echo 0 > rom
Code:
./rom-parser /tmp/image.rom
Code:
root@proxmox-lab1:~/rom-parser# ./rom-parser /tmp/image.rom
Valid ROM signature found @0h, PCIR offset 188h
PCIR: type 0 (x86 PC-AT), vendor: 10de, device: 1200, class: 030000
PCIR: revision 0, vendor revision: 1
Last image
And because I have nvidia card, I add this
Code:
echo "options kvm ignore_msrs=1" > /etc/modprobe.d/kvm.conf
And, after all this steps I create new windows 10 VM with OVMF.
VM config:
Code:
balloon: 0
bios: ovmf
bootdisk: sata0
cores: 8
cpu: host,hidden=1
hostpci0: 01:00.0;01:00.1,x-vga=1,pcie=1
ide2: local:iso/Windows10RS4x64.iso,media=cdrom
machine: q35
memory: 8000
name: gpu2
net0: e1000=56:17:1A:02:22:90,bridge=vmbr0
numa: 1
ostype: win8
parent: works
sata0: Gold:vm-107-disk-1,cache=writethrough,size=32G
sata1: Gold:vm-107-disk-2,cache=writethrough,size=100G
scsihw: virtio-scsi-pci
smbios1: uuid=01bcabe6-f275-47d9-86f3-35304a9e5f32
sockets: 1
VM won't boot with ,x-vga=1 parameter.
If I remove this and change line to this
Code:
hostpci0: 01:00.0;01:00.1,pcie=1
and see this in device manager - error 43 on NVIDIA GTX 560TI
Nvidia latest drivers installed.
What I do wrong?
My hardware:
MB - asrock 970m pro3
CPU - 8 x AMD FX(tm)-8320 Eight-Core Processor
Software:
Code:
root@proxmox-lab1:~/rom-parser# pveversion --verbose
proxmox-ve: 5.2-2 (running kernel: 4.15.17-1-pve)
pve-manager: 5.2-1 (running version: 5.2-1/0fcd7879)
pve-kernel-4.15: 5.2-1
pve-kernel-4.15.17-1-pve: 4.15.17-9
corosync: 2.4.2-pve5
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.2-2
libjs-extjs: 6.0.1-2
libpve-access-control: 5.0-8
libpve-apiclient-perl: 2.0-4
libpve-common-perl: 5.0-31
libpve-guest-common-perl: 2.0-16
libpve-http-server-perl: 2.0-8
libpve-storage-perl: 5.0-23
libqb0: 1.0.1-1
lvm2: 2.02.168-pve6
lxc-pve: 3.0.0-3
lxcfs: 3.0.0-1
novnc-pve: 0.6-4
proxmox-widget-toolkit: 1.0-18
pve-cluster: 5.0-27
pve-container: 2.0-23
pve-docs: 5.2-3
pve-firewall: 3.0-8
pve-firmware: 2.0-4
pve-ha-manager: 2.0-5
pve-i18n: 1.0-5
pve-libspice-server1: 0.12.8-3
pve-qemu-kvm: 2.11.1-5
pve-xtermjs: 1.0-5
qemu-server: 5.0-26
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.8-pve1~bpo9
Thanks in advance!
I don't understand where I wrong