Intel GVT-g Passthrough

BradCart

New Member
Mar 17, 2019
1
0
1
36
Hi

I'm running Proxmox 5.3 and was pretty excited to hear about
  • vGPU/MDev and PCI passthrough. GUI for configuring PCI passthrough and also enables the use of vGPUs (aka mediated devices) like Intel KVMGT (aka GVT-g) or Nvidias vGPUS.

I'm running a Xeon E3-1245 v6 Kaby Lake CPU and have been able to configure a mediated device to passthrough to a VM. However when I connect up the server to a monitor I only receive output from the host and not the VM. Is there a way to switch the display between the host and vm? According to Intel's guides on KVMGT the VM id can be echoed to /sys/kernel/vgt/control/foreground_vm however I cannot find this directory.

I did notice an error with dmesg | grep i915
Code:
[   11.411374] i915 0000:00:02.0: Direct firmware load for i915/gvt/vid_0x8086_did_0x591d_rid_0x04.golden_hw_state failed with error -2

Is this expected or is there something incorrect with my configuration?

/etc/modules is below
Code:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
vfio-mdev
kvmgt
intel_agp
i915

and I have my the following set in /etc/default/grub
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on pcie_acs_override=downstream i915.enable_gvt=1"

Thanks for your assistance!
 
no, kvm-gt is only for accelerating vms, there is no display output and you have to use a remote desktop software to use that
if you need output on a physical monitor, you have to pass through a whole graphics card

the foreground thing is probably outdated, because it is not featured in any of the current guides (https://github.com/intel/gvt-linux/wiki/GVTg_Setup_Guide)
 
how do I enable Mediated Device?

currently, shown , /sys/bus/pci/devices/0000:00:02.0/mdev_supported_types/': No such file or directory

is there a command to able Mediated Device function?
 
  • Like
Reactions: zakhounet

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!