Re: The VGA passthrough club - did you succeed, and how?
Some updates from my side. I've successfully tested Ubuntu 14.04 Beta2 with Xen 4.4 and an AMD 6450 card for VGA passthrough (AMD 7770 for dom0) using the xl toolstack.
It looks like Xen 4.4 and the 3.13 kernel have improved things a lot over previous releases, particularly with passing through AMD cards. There has been a issue hunting AMD GPU cards when using the xl toolstack that would either cause performance loss or prevent a reboot of the domU, or even crash the dom0. With Ubuntu 14.04 and Xen 4.4 I wasn't able to reproduce this issue and everything worked as it should.
The xl toolstack still requires the old qemu-xen-traditional as device model version in the domU configuration file, the new qemu-xen (upstream) would allow installation of a Windows guest but not support VGA passthrough.
Some of the software updates on older Ubuntu or Linux Mint releases could break VGA passthrough support when using the xm toolstack - the "error 22" problem, but in this case it seems like a new bug (the old "error 22" bug was fixed long ago). Since xm is deprecated and Xen 4.4 works well with xl, it doesn't make much sense to beat a dead horse.
While Xen and xl worked fine with Ubuntu 14.04, I discovered some nasty bugs in other applications:
1. xtightvncviewer: doesn't allow empty password strings . The workaround is to define a 6-8 letter password in the /etc/xen/guest.cfg file.
2. vnc4viewer: It crashes randomly after startup. At some point I couldn't get it to start up at all.
3. Ubuntu 14.04 detects both VGA cards and automatically sets up dual screen, which is not what I want. In addition I had problems installing the proprietary fglrx driver under Xen. To solve problem #1 I removed the second VGA card before installing Ubuntu, and only after I created an initramfs with the (not yet installed) graphics card bound to pciback did I shut down and install the card.
Problem #2 requires shutting down the X server and running a initialisation routine of the AMD driver to set up a configuration file for the screen(s).
More on that here.
Pop!_OS 19.10 (Ubuntu 19.10) with a Windows 10 Pro 64 bit kvm guest using VGA passthrough
Bookmarks