Jump to content

[Plugin] Intel-GVT-g


Recommended Posts

Posted

i retry boot ubuntu with gvt-g at 20:03

unraid sys.log

Sep  4 20:02:42 MARIO kernel: pcieport 0000:00:1d.2: Intel SPT PCH root port ACS workaround enabled
Sep  4 20:03:09 MARIO kernel: br0: port 3(vnet2) entered disabled state
Sep  4 20:03:09 MARIO kernel: vnet2 (unregistering): left allmulticast mode
Sep  4 20:03:09 MARIO kernel: vnet2 (unregistering): left promiscuous mode
Sep  4 20:03:09 MARIO kernel: br0: port 3(vnet2) entered disabled state
Sep  4 20:03:22 MARIO kernel: pcieport 0000:00:1d.2: Intel SPT PCH root port ACS workaround enabled
Sep  4 20:03:23 MARIO kernel: pcieport 0000:00:1d.2: Intel SPT PCH root port ACS workaround enabled
Sep  4 20:03:28 MARIO kernel: pcieport 0000:00:1d.2: Intel SPT PCH root port ACS workaround enabled
Sep  4 20:03:33 MARIO kernel: pcieport 0000:00:1d.2: Intel SPT PCH root port ACS workaround enabled
Sep  4 20:03:34 MARIO kernel: pcieport 0000:00:1d.2: Intel SPT PCH root port ACS workaround enabled
Sep  4 20:03:37 MARIO kernel: pcieport 0000:00:1d.2: Intel SPT PCH root port ACS workaround enabled
Sep  4 20:03:37 MARIO kernel: pcieport 0000:00:1d.2: Intel SPT PCH root port ACS workaround enabled
Sep  4 20:03:43 MARIO kernel: intel_vgpu_mdev 68af120f-0815-411f-8a18-28c0811b924c: Adding to iommu group 13
Sep  4 20:03:45 MARIO kernel: br0: port 3(vnet3) entered blocking state
Sep  4 20:03:45 MARIO kernel: br0: port 3(vnet3) entered disabled state
Sep  4 20:03:45 MARIO kernel: vnet3: entered allmulticast mode
Sep  4 20:03:45 MARIO kernel: vnet3: entered promiscuous mode
Sep  4 20:03:45 MARIO kernel: br0: port 3(vnet3) entered blocking state
Sep  4 20:03:45 MARIO kernel: br0: port 3(vnet3) entered forwarding state
Sep  4 20:03:50 MARIO kernel: pcieport 0000:00:1d.2: Intel SPT PCH root port ACS workaround enabled
Sep  4 20:04:31 MARIO flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup update

 

but just find some syslog in ubuntu at this time, hope this is useful. and i just had the same problem in debain🙁

Sep  4 20:03:05 ubuntu22s systemd[1]: unattended-upgrades.service: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopping Session 1 of User megumi...
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopping Session 3 of User megumi...
Sep  4 20:03:05 ubuntu22s systemd[1]: Removed slice Slice /system/modprobe.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped target Cloud-init target.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped target Graphical Interface.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped target Host and Network Name Lookups.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped target Timer Units.
Sep  4 20:03:05 ubuntu22s systemd[1]: apt-daily-upgrade.timer: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped Daily apt upgrade and clean activities.
Sep  4 20:03:05 ubuntu22s systemd[1]: apt-daily.timer: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped Daily apt download activities.
Sep  4 20:03:05 ubuntu22s systemd[1]: dpkg-db-backup.timer: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped Daily dpkg database backup timer.
Sep  4 20:03:05 ubuntu22s systemd[1]: e2scrub_all.timer: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped Periodic ext4 Online Metadata Check for All Filesystems.
Sep  4 20:03:05 ubuntu22s systemd[1]: fstrim.timer: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped Discard unused blocks once a week.
Sep  4 20:03:05 ubuntu22s systemd[1]: fwupd-refresh.timer: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped Refresh fwupd metadata regularly.
Sep  4 20:03:05 ubuntu22s systemd[1]: logrotate.timer: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped Daily rotation of log files.
Sep  4 20:03:05 ubuntu22s systemd[1]: man-db.timer: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped Daily man-db regeneration.
Sep  4 20:03:05 ubuntu22s systemd[1]: motd-news.timer: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped Message of the Day.
Sep  4 20:03:05 ubuntu22s systemd[1]: systemd-tmpfiles-clean.timer: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped Daily Cleanup of Temporary Directories.
Sep  4 20:03:05 ubuntu22s systemd[1]: update-notifier-download.timer: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped Download data for packages that failed at package install time.
Sep  4 20:03:05 ubuntu22s systemd[1]: update-notifier-motd.timer: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped Check to see whether there is a new version of Ubuntu available.
Sep  4 20:03:05 ubuntu22s systemd[1]: lvm2-lvmpolld.socket: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Closed LVM2 poll daemon socket.
Sep  4 20:03:05 ubuntu22s systemd[1]: systemd-rfkill.socket: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopping Availability of block devices...
Sep  4 20:03:05 ubuntu22s systemd[1]: cloud-final.service: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped Execute cloud user/final scripts.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped target Multi-User System.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped target Login Prompts.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopping Modem Manager...
Sep  4 20:03:05 ubuntu22s ModemManager[779]: <info>  caught signal, shutting down...
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopping LSB: automatic crash report generation...
Sep  4 20:03:05 ubuntu22s dockerd[1006]: time="2024-09-04T20:03:05.482724141+08:00" level=info msg="Processing signal 'terminated'"
Sep  4 20:03:05 ubuntu22s systemd[1]: cloud-config.service: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped Apply the settings specified in cloud-config.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped target Cloud-config availability.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopping Regular background program processing daemon...
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopping Docker Application Container Engine...
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopping Create final runtime dir for shutdown pivot root...
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopping Getty on tty1...
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopping irqbalance daemon...
Sep  4 20:03:05 ubuntu22s ModemManager[779]: <info>  ModemManager is shut down
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopping LVM event activation on device 252:3...
Sep  4 20:03:05 ubuntu22s dockerd[1006]: time="2024-09-04T20:03:05.487896793+08:00" level=info msg="Daemon shutdown complete"
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopping Dispatcher daemon for systemd-networkd...
Sep  4 20:03:05 ubuntu22s systemd[1]: plymouth-quit.service: Deactivated successfully.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopped Terminate Plymouth Boot Screen.
Sep  4 20:03:05 ubuntu22s systemd[1]: Stopping System Logging Service...

 

Posted
On 9/4/2024 at 2:15 PM, ich777 said:

Oh sorry this was a typo…

It‘s meant to say „xe“ driver.

after I changed the vgpu pci address on the vm xml to the physical address, the vm finally worked properly.

  • Like 1
Posted (edited)

I am using modprobe i915 in the go file for Plex acceleration.

Since GVT-g is asking for a blacklist, I assume I can't use both... Docker Plex + VM Windows? (Images below)

 

I currently have all 3 plugins installed.

  • Intel GVT-g
  • Intel GPU TOP
  • GPU Statistics

With the following CPU:

  • Intel® Xeon® E-2126G Processor with integrated Intel® UHD Graphics P630

 

image.png.be2cbceedc275a803986eccb597b7b47.png

image.thumb.png.e56b505d8bfcce44a7830b33f416feb8.png

Edited by sdballer
Posted
2 hours ago, sdballer said:

 

I am using modprobe i915 in the go file for Plex acceleration.

 

Please post your Diagnostics.

I don‘t know whats going on on your system.

 

BTW please remove that few lines from the go file and reboot, that is not necessary anymore, the plugins will handle all on it‘s own.

Posted (edited)

il y aurait un tutoriel pour linux ubuntu ou debian peu importe sur windows tout fonctionne sous linux il détecte bien l'igpu mais continue d'utiliser le qxl comme affichage principal donc je n'ai pas d'accélération 3D, je suis sur mint 22 mate, avec xrdp, j'aimerais avoir l'accélération 3D en rdp puis par la suite installer parsec.

image.png.3b9abd5b2cb900921d203b57d7d34b1d.png

Edited by solidrago
Posted
13 hours ago, solidrago said:

 

il y aurait un tutoriel pour linux ubuntu ou debian peu importe sur windows tout fonctionne sous linux il détecte bien l'igpu mais continue d'utiliser le qxl comme affichage principal donc je n'ai pas d'accélération 3D, je suis sur mint 22 mate, avec xrdp, j'aimerais avoir l'accélération 3D en rdp puis par la suite installer parsec.

 

First of all to make our lifes easier, please only use english in the main forums (use google translate or your prefered translator, english isn‘t my main language too).

 

I never played around with Linux and GVT-g however AFAIK you actually have to have the same Kernel version as on the host to be able to use GVT-g properly.

Sorry but I can‘t help with that request.

However some of the last posts in the tread where from a user who had GVT-g running with Linux, granted I‘m not 100% sure what Distribution he was running.

Posted

Hey @ich777,

 

ich habe mal eine kleine Verständnisfrage.
Soll es mit dem Plugin möglich sein mehrere VM's gleichzeit damit laufen lassen zu können oder funktioniert das so nicht?

 

Ich habe bei mir folgende Konstellation.

 

VM1: Läuft mit Intel GVT-g - funktioniert
VM2: Start mit Intel GVT-g - funktioniert nicht

 

VM2: Läuft mit Intel GVT-g - funktioniert
VM1: Start mit Intel GVT-g - funktioniert nicht

 

Ich kann also beide Maschinen mit der iGPU "ausstatten" aber dann nur eine zur gleichen Zeit laufen lassen.
Ist das so korrekt oder passt da was bei mir nicht?

 

Danke im Voraus.

 

Grüße Patty

 

 

(Translate vom deepl.com)

 

Hey,

I have a small comprehension question.
Should it be possible to run several VMs at the same time with the plugin or does it not work that way?

 

I have the following constellation.

 

VM1: Runs with Intel GVT-g - works
VM2: Start with Intel GVT-g - does not work

 

VM2: Runs with Intel GVT-g - works
VM1: Start with Intel GVT-g - does not work

 

So I can “equip” both machines with the iGPU but then only run one at a time.
Is this correct or is there something wrong?

 

Thanks in advance.

 

Regards Patty

Posted
5 hours ago, Patty92 said:

So I can “equip” both machines with the iGPU but then only run one at a time.
Is this correct or is there something wrong?

Depends on your hardware and also the vGPU that you've created in the plugin which you've assigned to the VM.

You should get warnings in your syslog when your hardware isn't capable starting a second VM that you are running out of memory on your iGPU IIRC.

 

However some users where able to run two or even three VMs (and the iGPU on the Host for Docker) with GVT-g but on most Motherboards only one or maybe two simultaneous VMs will work with GVT-g.

 

Maybe @alturismo can add something here.

Posted
20 hours ago, Patty92 said:

Ist das so korrekt oder passt da was bei mir nicht?

Nope, not correct 

 

I always had 2++ simultaneously running, even my Mainboard only allowed 256mb vram, even BIOS is set to 1024mb.

 

may look at your VM configs in XML view that the passed vgpu's have unique uid's.

 

or look at your logs (syslog and/or VM log) if there are any decent errors when starting the 2nd VM.

  • Like 1
Posted

I had already checked that there are different id's in the XML, which is fine.

I haven't looked at the logs yet, when starting the 2nd vm I already get a pop up error during startup. 
Should I perhaps open a separate thread here?


Greetings Patty

Posted
8 minutes ago, Patty92 said:

Should I perhaps open a separate thread here?

No just post here.
However just to make it clear, not every hardware supports multiple vGPUs, that always depends how it's implemented in the Firmware (BIOS) and since GVT-g is almost abonded from Intel most manufacturers don't bother to implement it correctly, one user in this thread did even a deep dive and said that some settings in the BIOS even doesn't take effect for GVT-g which the usually should.

  • 3 weeks later...
Posted (edited)

Hi there!

I have the plugin installed on a Core i9-9900K machine, which Intel's website states has GVT-g support, and I also made sure to blacklist the i915 driver in the modprobe.d directory, but I am getting a message from the plugin stating that GVT-g is not supported on my system, and diagnostics still show the i915 driver in use on the onboard graphics chip.

My server also has an Intel Arc A770 card installed for Plex media transcoding. Is it possible that this is causing a conflict? I do see on Intel's website that Alchemist cards do not have SR-IOV or GVT-g support.

I tried to mitigate this by specifying the onboard graphics device ID in the modprobe file as such:
 

blacklist i915 pci:v00008086d3E98sv1462sd7B17bc03sc80i00


See attached diagnostics file. Appreciate any help and thank you for making this plugin!
 

bungeenas-diagnostics-20241012-1803.zip

Edited by Bungeetaco
Posted
7 hours ago, Bungeetaco said:

I tried to mitigate this by specifying the onboard graphics device ID in the modprobe file as such:

This shouldn't be necessary since the plugin handles everything on its own, however it could be the case that it doesn't go very well with a Arc card and that's the cause of the issue.

 

The plugin was created back then where Intel didn't even had dGPUs and from your syslog I see many issues that are not easily solvable so to speak I don't think that it will properly work when having a Arc card installed and you want to use GVT-g.

 

Sorry for the bad news... :/

 

7 hours ago, Bungeetaco said:

My server also has an Intel Arc A770 card installed for Plex media transcoding.

May I ask why? The iGPU should be well enough...

As long as you are not concerned with power draw it doesn't make any difference but the Arc Cards are very inefficient at idling.

Posted
1 hour ago, ich777 said:

This shouldn't be necessary since the plugin handles everything on its own, however it could be the case that it doesn't go very well with a Arc card and that's the cause of the issue.

 

The plugin was created back then where Intel didn't even had dGPUs and from your syslog I see many issues that are not easily solvable so to speak I don't think that it will properly work when having a Arc card installed and you want to use GVT-g.

 

Sorry for the bad news... :/

 

May I ask why? The iGPU should be well enough...

As long as you are not concerned with power draw it doesn't make any difference but the Arc Cards are very inefficient at idling.


Ah, well that sucks...

I mainly got the Arc card as it performs well with AV1 decoding, which the iGPU doesn't support unfortunately.
But I also use my Unraid machine as a VM Host, thus the need for GVT-d to run certain applications well.

If you don't mind me asking, what are some of the other unresolvable issues that you noticed?

Thank you for the quick reply!

Posted
2 hours ago, Bungeetaco said:

I mainly got the Arc card as it performs well with AV1 decoding, which the iGPU doesn't support unfortunately.

Do you already have AV1 files? I would recommend that you stay with h265 a few years longer until it‘s well established and more devices support the format since it is really inefficient to always have to transcode the files to h264 or h265 because devices don‘t support it and not to speak of degraded quality because auf aleays having to transcode files.

 

2 hours ago, Bungeetaco said:

If you don't mind me asking, what are some of the other unresolvable issues that you noticed?

The i915 driver is responsible for both the Arc and the iGPU and in case for your configuration you have a Kernel Panic right at boot because of that.

  • 4 weeks later...
Posted

Just installed the Intel  GVT-g plugin, hoping for better VM performance.

 

The first line of the description is "Intel-GVT-g is a technology that provides mediated device passthrough for Intel iGPUs (Broadwell and newer).", then a load of benefits.

 

I had no idea what generation a Broadwell CPU is, so had to look it up- it's 5th gen, I have 12th gen. Sounds good, let's go.

 

So I installed it and it got me to reboot after checking the existence of a line in a file on the boot drive.

All good, rebooted, checked the plugin's settings again and there's this message:

 

GVT-g not supported

GVT-g is currently only supported on:

Client platforms: 5th, 6th, 7th, 8th, 9th and 10th Generation Intel® Core Processor Graphics
Server platforms: E3-v4, E3_v5, E3_v6, E-2xxx, W-12xx, W10xxx Intel® Processor Graphics
".

 

It would be really good if this information was included in the App description to avoid us wasting our time.

 

Also, is there an equivalent for > 10th gen CPUs?

 

Thanks

 

Posted
26 minutes ago, -C- said:

It would be really good if this information was included in the App description to avoid us wasting our time.

 

may sometimes check the forum entries if you are not sure, from page 1 here ;)

 

image.png.587c06c7a8aae08cf3620243fc3209e2.png

 

also helpful about how to use it ... same for sr-iov, also not just plug & play, rather take a look at the forum thread there how the recommended usage is and how to get it fully functional, before you waste your time again ... ;)

  • Like 1
Posted
2 hours ago, ich777 said:

SR-IOV:

 

Thanks, I'll give it a whirl.

 

2 hours ago, alturismo said:

may sometimes check the forum entries if you are not sure

I had no reason to doubt the accuracy of the description which said it was from 5th gen and newer.

Posted (edited)
On 10/28/2021 at 6:56 PM, trurl said:

Set your appdata, domains, system shares to Prefer: NVME pool

 

On 11/7/2024 at 11:02 PM, -C- said:

 

Thanks, I'll give it a whirl.

 

I had no reason to doubt the accuracy of the description which said it was from 5th gen and newer.

Hi, I tried Sr-IOV plugin and it works, I was able to passthrough my igpu to windows 11 vm, everything recognised perfectly fine in windows and no 403 driver error. My issue was that unraid host behaved not as expected with S3 standby mode, I could not wake up the server. I think when you virtualise the GPU kind of prevents system to go to sleep and this is a must for me as I dont need the server up 24/7, where I live electricity is bloody expensive so I keep it up during weekends and weekdays from 16-24.

 

Then plugin has not been updated since february though so I don't know if it is still maintained.

Edited by Kraizel
Posted
3 hours ago, Kraizel said:

Then plugin has not been updated since february though so I don't know if it is still maintained.

The driver plugins actually work completely different since they download precompiled packages with the drivers for your running Unraid version.

 

If something is not working then please let me know but actually all driver plugins are well maintained.

 

However this is the wrong place to say that because you are in the GVT-g thread.

  • Like 1
Posted (edited)

hi, ohh ok I didn not see the GTV-g thread, I only posted because I read a couple of post above referring to the SR-IOV plugin. 

I only wanted to point out that the plugin works very well, just in my case the server did not wake up from sleep if plugin was enabled and vgpu passed through other than this it was working perfectly fine.

thanks

Edited by Kraizel
Posted (edited)

Hi ich777, and thank you for this plugin.

I can see the iGPU and the VNC card on Windows, and everything is OK.


If I undestand, it is not possible to "passthru" this iGPU on a VM to use with a external monitor like a real PC ?
I wanted to use the iGPU (UHD630) with Windows 10, with a mouse, a keyboard and an external monitor. I must use another card for that ? Am I understand ?

 

Just for information, my test machines are :

-Lenovo M720q with i7-8700T,

-Lenovo P340 with i7-10700T.

Twice with Intel UHD Graphics 630.

 

Thanks ! ;)

Edited by PicPoc
Posted
24 minutes ago, PicPoc said:

If I undestand, it is not possible to "passthru" this iGPU on a VM to use with a external monitor like a real PC ?

It is possible but only if you have a DisplayLink™ device that is connected/passed through to the VM and you mirror the GVT-g accelerated display to this DisplayLink™ device.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...