pci-e as primary gpu

Joseph Chrzempiec

Well-Known Member
Jun 9, 2016
142
6
58
44
Hello I have been learning a lot how to get started with proxmox and learning new things like adding gpu pci-e video cards. But one problem I'm running into is when i set the gpu as primary I'm getting a error. And I'm not sure what to do. No matter what GPU i use i can not set it as a primary instead of the basic comes that comes with proxmox. Here is my error below. Can someone please help me?



Code:
()
kvm: -device vfio-pci,host=05:00.0,id=hostpci0,bus=pci.0,addr=0x10,x-vga=on: vfio 0000:05:00.0: failed getting region info for VGA region index 8: Invalid argument
device does not support requested feature x-vga
TASK ERROR: start failed: command '/usr/bin/kvm -id 100 -name 100 -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -chardev 'socket,id=qmp-event,path=/var/run/qmeventd.sock,reconnect=5' -mon 'chardev=qmp-event,mode=control' -pidfile /var/run/qemu-server/100.pid -daemonize -smbios 'type=1,uuid=49c5e430-078b-4b28-988d-c45ce63ffc78' -smp '7,sockets=1,cores=7,maxcpus=7' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' -vga none -nographic -no-hpet -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=proxmox,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_reset,hv_vpindex,hv_runtime,hv_relaxed,hv_synic,hv_stimer,hv_tlbflush,hv_ipi,kvm=off' -m 16000 -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' -device 'vmgenid,guid=0e117c65-fcc3-4657-9729-8a8269457a65' -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'vfio-pci,host=05:00.0,id=hostpci0,bus=pci.0,addr=0x10,x-vga=on' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:ff5478cb1fe5' -device 'virtio-scsi-pci,id=scsihw0,bus=pci.0,addr=0x5' -drive 'file=/dev/zvol/rpool/data/vm-100-disk-0,if=none,id=drive-scsi0,format=raw,cache=none,aio=native,detect-zeroes=on' -device 'scsi-hd,bus=scsihw0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0,id=scsi0,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown' -device 'rtl8139,mac=42:5A:D7:B2:B6:DA,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300' -rtc 'driftfix=slew,base=localtime' -machine 'type=pc' -global 'kvm-pit.lost_tick_policy=discard'' failed: got timeout



Joseph
 
Last edited:
what is the hardware/vm config?

did you try with ovmf instead of seabios already?
 
what is the hardware/vm config?

did you try with ovmf instead of seabios already?


Hello the bios is Default (SeaBIOS) i did not change that. The hardware/vm not sure how to get that information. Can you please tell me how i can see that?


Joseph
 
Here is the hardware list.

Code:
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 Northbridge only dual slot (2x8) PCI-e GFX Hydra part (rev 02)
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD/ATI] RD890S/RD990 I/O Memory Management Unit (IOMMU)
00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GFX port 0)
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 0)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode]
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 3d)
00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 5
00:19.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 0
00:19.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 1
00:19.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 2
00:19.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 3
00:19.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 4
00:19.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 5
01:04.0 VGA compatible controller: Matrox Electronics Systems Ltd. MGA G200eW WPCM450 (rev 0a)
02:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
02:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
03:00.0 PCI bridge: PLX Technology, Inc. PEX 8747 48-Lane, 5-Port PCI Express Gen 3 (8.0 GT/s) Switch (rev ba)
04:08.0 PCI bridge: PLX Technology, Inc. PEX 8747 48-Lane, 5-Port PCI Express Gen 3 (8.0 GT/s) Switch (rev ba)
04:10.0 PCI bridge: PLX Technology, Inc. PEX 8747 48-Lane, 5-Port PCI Express Gen 3 (8.0 GT/s) Switch (rev ba)
05:00.0 3D controller: NVIDIA Corporation GK104GL [Tesla K10] (rev ff)
06:00.0 3D controller: NVIDIA Corporation GK104GL [Tesla K10] (rev a1)


the qm list is

Code:
bootdisk: scsi0
cores: 6
cpu: host
hostpci0: 05:00.0
memory: 16000
name: 100
net0: rtl8139=42:5A:D7:B2:B6:DA,bridge=vmbr0,firewall=1
numa: 0
ostype: win7
parent: smap001
scsi0: local-zfs:vm-100-disk-0,size=192G
scsihw: virtio-scsi-pci
smbios1: uuid=49c5e430-078b-4b28-988d-c45ce63ffc78
sockets: 1
vmgenid: 0e117c65-fcc3-4657-9729-8a8269457a65

also adding a image of the vm

imagesnapshot.png
 
why do you want to set it as primary gpu in the first place? afaik the tesla cards do no even have a displayport/hdmi connector, so how would you see the picture of the vm?
normally those cards are used for compute purposes, and for that it does not need the primary gpu for the vm, actually one normally want a virtual graphics card to get a novnc/spice display and use that card for opencl/cuda/etc...
 
Hello Well I'm not local to the cards and viewing the vm over the network from my office to my home. the Tesla card is just one i was trying I have tried a a GTX 1080 card and i get the same error. I was setting as primary as the main card becuase of some of my programs i run for 3D only run off my system as long as it as primary. Because the programs don't run off of cards are set for second graphics. One of the programs i run is called secondlife it's a 3d environment and it won't run right unless the video card is set as primary. when i try to run it it's telling me it's the default video from the VM and not the gpu video card.
 
Only to be clear:
If you do not set 'primary', the VM starts up and shows the pci-e passthrough device after booting up your guest OS?

Just to be clear that it works: I recently also "passthroughed" a 1080ti and it works also as primary GPU including 3D support (although some random lagging twice a minute).
 
again i would try with ovmf, the compatibility is much better normally
 
Only to be clear:
If you do not set 'primary', the VM starts up and shows the pci-e passthrough device after booting up your guest OS?

Just to be clear that it works: I recently also "passthroughed" a 1080ti and it works also as primary GPU including 3D support (although some random lagging twice a minute).


When i tried to set any card the tesla k10 card or the gtx 1080 i even tried my gtx 1060 card i get the same error. If i don't set as primary i have no problem runing in that default card. th video card do show up in the device manger
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!