Unable to initiate intel gvt-g with ProxmoxVE 6.2

everwisher

Member
Jun 23, 2019
15
0
6
39
I can't bring up intel gvt-g following the official documentation. No matter what I do, I can't see the /sys/bus/pci/devices/0000:00:02.0/mdev_supported_types folder being created. What have I done wrong? Please help.

Hardware info:
Intel 8700t with Intel UHD graphics 630 iGPU

Here's my /etc/default/grub
Code:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Proxmox Virtual Environment"
GRUB_CMDLINE_LINUX_DEFAULT="vfio-pci.ids=1002:67ff,1002:aae0,1106:3483,8086:a170 vfio_iommu_type1.allow_unsafe_interrupts=1 iommu=pt pcie_acs_override=downstream,multifunction i915.enable_gvt=1 kvm.ignore_msrs=1 irqpoll drm.debug=0 intel_iommu=on,igfx_off"
GRUB_CMDLINE_LINUX="quiet resume=UUID=6edb496b-2378-427a-a7b1-fb4d2f05a964"

# Disable os-prober, it might add menu entries for each guest
GRUB_DISABLE_OS_PROBER=true

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

Here's my /etc/modules
Code:
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

kvmgt
vfio
vfio_mdev
vfio_pci
vfio_iommu_type1
vfio_virqfd

Here's all the conf files in /etc/modprobe.d/
Code:
# This file contains a list of modules which are not supported by Proxmox VE 

# nidiafb see bugreport https://bugzilla.proxmox.com/show_bug.cgi?id=701
blacklist nvidiafb
blacklist amdgpu
blacklist snd_hda_intel
# enable this to passthrough devices by vendor:device id
options vfio-pci ids=1002:67ff,1002:aae0,1106:3483

# enable this to passthrough on-board audio
options vfio-pci ids=8086:a170

# enable this to passthrough on-board sata controller
# options vfio-pci ids=8086:a102

# enable unsafe interrupts
# options vfio_iommu_type1 allow_unsafe_interrupts=1

# enable nested virtualization
options kvm_intel nested=1

# MSRS check
options kvm ignore_msrs=Y

update-initramfs and update-grub were done on every change to grub or module settings.

Weirdly, when I typed modprobe kvmgt, this was the response:
modprobe: ERROR: could not insert 'kvmgt': No such device
 
I have the same problem (no such device, etc). I wasn't able to get PCIe passthrough working either (Intel 630 driver error 43 in Win10 guest).

everwisher - did you ever figure out how to get it working?
 
can you post the output of 'dmesg' ?
 
You are missing the module "kvmgt" in your /etc/modules
Also remember to run "update-initramfs -u -k all"
after updating /etc/modules and reboot the server.
 
It's in /etc/modules and the initramfs is updated. I also set intel_iommu to igfx_off. The issue is that kvmgt will not load - it seems to fail at boot, and also fails when I try to load it manually:

Code:
# modprobe -v kvmgt
insmod /lib/modules/5.4.78-2-pve/kernel/drivers/gpu/drm/i915/gvt/kvmgt.ko
modprobe: ERROR: could not insert 'kvmgt': No such device

Updated dmesg output attached.
 

Attachments

It's in /etc/modules and the initramfs is updated. I also set intel_iommu to igfx_off. The issue is that kvmgt will not load - it seems to fail at boot, and also fails when I try to load it manually:

Code:
# modprobe -v kvmgt
insmod /lib/modules/5.4.78-2-pve/kernel/drivers/gpu/drm/i915/gvt/kvmgt.ko
modprobe: ERROR: could not insert 'kvmgt': No such device

Updated dmesg output attached.
Sorry, missed that it was at the top. :)
 
maybe there is some bios switch you have to enable?
 
mhmm... i we do not have this exact hardware to test... maybe there is a bios update that could help?
 
Just an update in case anyone runs into the same issue. I removed my second Nvidia GPU and reinstalled pve on the host and now it's working fine.
Hi, I have the same problem right now. Can you return the NVIDIA card after that? Or you can not use it because of it? I mean does he interfere with it?
 
Hi, I have the same problem right now. Can you return the NVIDIA card after that? Or you can not use it because of it? I mean does he interfere with it?
Yes - once I got the gvt-g running comfortably, I was able to reinstall the nvidia card and actually use PCI pass through to send it to the same vm.
 

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!