GPU Passthrough issue with HD7770 Sapphire Flex

Well, that sounds good! But i am not so deep into Linux to compile (that is necessary for testing the git things?) the new modules... or is there a easy way for Linux dummies like me?

Thanks!

Gesendet von meinem XT890 mit Tapatalk


just wait some days, it should be available soon in pvetest repository :)
 
Anyone know if this have been committed to the latest 3.10 kernel?

Or is it possible to manually CONFIG_VFIO_PCI_VGA=y ​and build the kernel?
 
Anyone know if this have been committed to the latest 3.10 kernel?

Or is it possible to manually CONFIG_VFIO_PCI_VGA=y ​and build the kernel?

yes, in git
https://git.proxmox.com/?p=pve-kernel-3.10.0.git;a=commit;h=33739cab6de3cb61b402a18df325cc567dafdc03

but not yet released in pvetest repository.

A first user report than gpu passthrough is working fine now,
but need qemu 2.0. (so you need pve-qemu-kvm from git too)

http://permalink.gmane.org/gmane.linux.pve.devel/8298
 
Oh noooo :/
If you don't want to wait, why don't you build the necessary packages on your own? Just install latest proxmox as guest os so that you can build the git packages without touching your running machine. You can use the DEV Readme as general guide.
 
Well,

sorry for the delay, when i try to start the VM i get the following error:

kvm: -device vfio-pci,host=01:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,x-vga=on,multifunction=on: vfio: error opening /dev/vfio/1: Device or resource busy
kvm: -device vfio-pci,host=01:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,x-vga=on,multifunction=on: vfio: failed to get group 1
kvm: -device vfio-pci,host=01:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,x-vga=on,multifunction=on: Device initialization failed.
kvm: -device vfio-pci,host=01:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,x-vga=on,multifunction=on: Device 'vfio-pci' could not be initialized
TASK ERROR: start failed: command '/usr/bin/kvm -id 112 -chardev 'socket,id=qmp,path=/var/run/qemu-server/112.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -vnc unix:/var/run/qemu-server/112.vnc,x509,password -pidfile /var/run/qemu-server/112.pid -daemonize -name gamepc -smp 'sockets=1,cores=2' -nodefaults -boot 'menu=on' -vga std -no-hpet -cpu 'host,kvm=off,hv_spinlocks=0xffff,hv_relaxed,+x2apic' -k de -m 4096 -readconfig /usr/share/qemu-server/pve-q35.cfg -device 'usb-tablet,id=tablet,bus=ehci.0,port=1' -device 'vfio-pci,host=01:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,x-vga=on,multifunction=on' -device 'vfio-pci,host=01:00.1,id=hostpci0.1,bus=ich9-pcie-port-1,addr=0x0.1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:88c1f1f0d733' -drive 'file=/mnt/proxmox_vm1/images/112/vm-112-disk-1.raw,if=none,id=drive-virtio0,format=raw,aio=native,cache=none' -device 'virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa' -netdev 'type=tap,id=net0,ifname=tap112i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,romfile=,mac=D2:99:86:C8:06:22,netdev=net0,bus=pci.0,addr=0x12,id=net0' -rtc 'driftfix=slew,base=localtime' -machine 'type=q35' -global 'kvm-pit.lost_tick_policy=discard'' failed: exit code 1

Kernel-Version:
Linux version 3.10.0-3-pve (root@lola) (gcc version 4.7.2 (Debian 4.7.2-5) ) #1 SMP Sat Aug 2 09:30:30 CEST 2014

Settings for VM:
hostpci0: 01:00,x-vga=on,pcie=1,driver=vfio
machine: q35

lspci:

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3 Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:01.1 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x8 Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation C222 Series Chipset Family Server Essential SKU LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
00:1f.6 Signal processing controller: Intel Corporation 8 Series Chipset Family Thermal Management Controller (rev 05)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde XT [Radeon HD 7770 GHz Edition]
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]
02:00.0 Serial Attached SCSI controller: LSI Logic / Symbios Logic SAS2308 PCI-Express Fusion-MPT SAS-2 (rev 05)
03:00.0 PCI bridge: ASPEED Technology, Inc. AST1150 PCI-to-PCI Bridge (rev 03)
04:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 30)
05:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
06:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)

I have another VM where i passthrough a LSI SAS Controller without any problems.

Hmm, if i look into

root@proxmox:/sys/bus/pci/devices/0000:01:00.0/iommu_group/devices# dir
0000:00:01.0 0000:00:01.1 0000:01:00.0 0000:01:00.1 0000:02:00.0

you can see that the LSI Controller and the Radeon are in the same group?! And that causes the error?

How do i get the Radeon in another group?

Edit:
Installed new kernel:

Linux version 3.10.0-4-pve (root@lola) (gcc version 4.7.2 (Debian 4.7.2-5) ) #1 SMP Fri Aug 8 08:44:54 CEST 2014

same error and the devices are still in the same group :/

root@proxmox:/sys/bus/pci/devices/0000:01:00.0/iommu_group/devices# ls -l /sys/bus/pci/devices/0000\:01\:00.0/iommu_group/devices/
total 0
lrwxrwxrwx 1 root root 0 Aug 8 13:29 0000:00:01.0 -> ../../../../devices/pci0000:00/0000:00:01.0
lrwxrwxrwx 1 root root 0 Aug 8 13:29 0000:00:01.1 -> ../../../../devices/pci0000:00/0000:00:01.1
lrwxrwxrwx 1 root root 0 Aug 8 13:29 0000:01:00.0 -> ../../../../devices/pci0000:00/0000:00:01.0/0000:01:00.0
lrwxrwxrwx 1 root root 0 Aug 8 13:29 0000:01:00.1 -> ../../../../devices/pci0000:00/0000:00:01.0/0000:01:00.1
lrwxrwxrwx 1 root root 0 Aug 8 13:29 0000:02:00.0 -> ../../../../devices/pci0000:00/0000:00:01.1/0000:02:00.0
 
Last edited:
Hmpf,

if i start only my "Radeon-VM" the VM starts but i cannot connect via Konsole cause it says: "This VM has no graphic display device"

Does it mean that i cannot use the console if i passthrough a video card???

Edit:

i changed the VM config to

hostpci0: 01:00,pcie=1,driver=vfio

without the "x-vga=on".

Now i have a display via qemu, will see if i can use the VideoCard for my Steam Streaming Server

Edit 2:

I could install the radeon drivers without issues, will see how it goes on now. :)

But I still need the opportunity to run two VM (with the LSI Controller and Radeon Card at the same time)

Edit 3:

The next thing :)) ) ... the HDMI-Audio is shown up in the device list - is there a connected hdmi device needed to enable the audio?

Edit 4:

Well, this really f*** me up :)
If i connect a physical display to the card (with x-vga=on) and start the VM i can see the windows starting screen but then the display doesn't show anyting :/
 
Last edited:
For sure, this will the last post today! :)

My general question is:

Is it possible to use the VGA-Card as the primary card and the qemu/html5/vnc/whatever webconsole as the secondary card (only to manage the host)? I think if i setup a display in proxmox it uses it as primary display and Steam will use it too --> bad performance

I want setup a Windows Gaming Machine with Steam (as a in home streaming host).

Ist this possible?
 
For sure, this will the last post today! :)

My general question is:

Is it possible to use the VGA-Card as the primary card and the qemu/html5/vnc/whatever webconsole as the secondary card (only to manage the host)? I think if i setup a display in proxmox it uses it as primary display and Steam will use it too --> bad performance

I want setup a Windows Gaming Machine with Steam (as a in home streaming host).

Ist this possible?

Hi,
the problem is that the first device is the emulated vga, and passthrough device is second monitor.

Can you try this new qemu-server version ?

http://odisoweb1.odiso.net/qemu-server_3.0-18_amd64.deb


It's disable emulated vga (so no more proxmox console), but put passthrough device as first monitor.
 
Hi,

i'm so happy that you are responding :)

If i install this new qemu-server, the other VM will not be affected? And how can i manage my Gaming-VM? Via VNC (installed on the VM)?

thanks!

Edit:

I fixed the iommu-group issue with the help of XueSheng with the "pcie_acs_override=downstream"-fix!

I already have qemu-server: 3.1-30 (which should be newer?)
 
Last edited:
I fixed the iommu-group issue with the help of XueSheng with the "pcie_acs_override=downstream"-fix!

Ok, thanks, I'll put it in the proxmox wiki

I already have qemu-server: 3.1-30 (which should be newer?)

Oh, I didn't see that Dietmar already push it to pvetest. So yes,it's the same version.
 
Ok, thanks, I'll put it in the proxmox wiki



Oh, I didn't see that Dietmar already push it to pvetest. So yes,it's the same version.

Hi,

to get the option working you need a patched kernel, without this patch it won't work! I hope there will be a release comming up which includes this patch?

And what i don't understand:

1. I did set up my Windows VM with the proxmox console (including gpu passthrough but without "x-vga=on" option).

2. Installed RealVNC Server on the VM

3. Shutdown the VM

4. Added the "x-vga=on" option

5. Booted up the VM but it won't come up to windows (Proxmox shows that the VM is on but no network-response)

In this scenario the VM is a PC without a monitor connected, right? Why it doesn't boot correctly? Maybe x-vga=on disable keyboard/mouse too? But I don't think so.

greets
 
Last edited:
Hi,

to get the option working you need a patched kernel, without this patch it won't work! I hope there will be a release comming up which includes this patch?

And what i don't understand:

1. I did set up my Windows VM with the proxmox console (including gpu passthrough but without "x-vga=on" option).

2. Installed RealVNC Server on the VM

3. Shutdown the VM

4. Added the "x-vga=on" option

5. Booted up the VM but it won't come up to windows (Proxmox shows that the VM is on but no network-response)

In this scenario the VM is a PC without a monitor connected, right? Why it doesn't boot correctly? Maybe x-vga=on disable keyboard/mouse too? But I don't think so.

greets

Why do you want to passthrough your video card, if you don't have any monitor connected ?
 

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!