Intel Flex 140 error on passthrough

Hi all

so i have inherited an issue at work from the IT guy who has left the company mid project…

We have two HPE DL380 Gen10 servers which run Windows Server 2022, Hyper-V to host all the companies VMs. We have the intel Flex 140 cards installed and drivers installed, the cards work perfectly in windows server 2022, when i go through the GPU pass through method the cards appear in the Windows 11 and 10 VMs.

When i install the drivers on the first VM, the intel installer software detected the GPU and installed the drivers, the GPU showed up in Task manager and Devise manager as a Intel Flex 140 then i had to restart the VM and we got the Blue Screen on boot up, nothing i could do would make the VM boot.

The second and third VM i installed the GPU on crashed during installation of the drivers with the same Blue Screen.

Hyper-v reporting the following error: ‘vm-gpu’ has encountered a fatal error. The guest operating system reported that it failed with the following error codes: ErrorCode0: 0x7E, ErrorCode1: 0xFFFFFFFFC0000005, ErrorCode2: 0xFFFFF80780791A2F, ErrorCode3: 0xFFFFF40C3E8A6548, ErrorCode4: 0xFFFFF40C3E8A5D80. PreOSId: 0. If the problem persists, contact Product Support for the guest operating system. (Virtual machine ID 8D5FD152-6A3D-4431-948F-D5E37528697E)

The GPU are unmounted from the VM and then they are available for use by the host OS

Any help will be much appreciated.
Steve

2 Likes

Sr iov on. in bios and iommu enabled not auto?

was it working and stopped of is this a new config?

1 Like

Hey Wendell

new config, i installed the cards fresh out of the box at the weekend. I will check the bios config tonight once everyone has finish work, the power profiles are set to “Virtualization High Power” which should turn on all features.

Cheers

1 Like

Did you configure the GPU to pass back to host, and does the host have drivers installed?

Additionally, did you soft restart the VM or poweroff then back on?

Did you configure VM to shutoff and never save?

We experience this regularly in deployments. Our protocol is install base drivers on host and VM’s. This way the GPU never reverts/drops out when passed back to host.

Then configure VM from powershell to accept and cleanly pass back.

Quick update it turned out the Server was having issues in the PCIE riser / lanes, this server has been sent back for review / repair. In the mean time we are installing the cards into a DEll RX740, hopefully these should be fine.

2 Likes

Nice thanks for keeping us up to date

Thanks for your advice TryTwiceMedia.

So im finally back in the office and have tried to pass the gpu to the VM and we are having similar problems again.

The Dell r740XD has setup for virtualization, SR-IOV and MMIO is all enabled, the GPUs are installed into the correct slots

We are using Win Server 2022 desktop with Hyper-V

To pass through the GPU we used DDA, the script is below

Set-VM -Name VM-gpu -AutomaticStopAction TurnOff
Set-VM -GuestControlledCacheTypes $true -VMName VM-gpu
Set-VM -LowMemoryMappedIoSpace 3Gb -VMName VM-gpu
Set-VM -HighMemoryMappedIoSpace 33280Mb -VMName VM-gpu
Dismount-VMHostAssignableDevice -force -LocationPath “PCIROOT(D7)#PCI(0000)#PCI(0000)#PCI(0000)#PCI(0000)#PCI(0800)#PCI(0000)#PCI(0100)#PCI(0000)”
Add-VMAssignableDevice -LocationPath “PCIROOT(D7)#PCI(0000)#PCI(0000)#PCI(0000)#PCI(0000)#PCI(0800)#PCI(0000)#PCI(0100)#PCI(0000)” -VMName VM-gpu

I have used this process on my homelab using Nvidia cards and never had an issue with them like we have with the intel flex 140.

The GPU gets passed through to the VM, we install the drivers and it runs fine or a an hour or two, this morning i was encoding a video and watching a 4k video at the same time and all was good, an hour later whilst the vm was idling it blue screened on me IGDKMD64.SYS which i beleive is a GPU driver error.

After an uninstall and reinstall of GPU and drivers all works fineuntil a restart or shutdown of the Windows 11 VM, on reboot we get the same blue screen.

Did you configure the GPU to pass back to host, and does the host have drivers installed? HOST DRIVERS ARE INSTALLED,

Additionally, did you soft restart the VM or poweroff then back on? THE RESTART WAS FROM WITHIN WINDOWS 11

Did you configure VM to shutoff and never save? We have them set to Turn OFF

1 Like

What’s your power plan in the VM and HV?

Gotta Disable PCIe power management EVERYWHERE. From the UEFI up. Sounds like the Win 11 machine disabled the GPU which with hardware passthrough on Hyper-V puts it into this strange in-between state between hypervisor and vm.

The HV power plan is Balanced, i tried high performance with no difference in the outcome.

The VM power plan is Performance.

Since my last post i have been very busy with other projects and have kept this going with no success. I tried the new Server 2025 and this was interesting, so using a new build VM window 10 we can pass the GPU through to it however when you start the VM and go into device manager and then properties for the GPU we get a DRIVER_POWER_STATE_FAILURE in the device status. This does not occur in Server 19 or 22…

We have had to go back to Server 2022 as this server has had to go into the production environment.

We are still having the BCOD when we restart the VM after installation.

I believe this is a power issue to the GPU and i am now completely lost…

Just a quick update i switched over to Proxmox and the cards passthrough perfectly without any problems, we have been running them for 3 weeks without a single issue, looks like this was a Windows Server issue.

Thanks for all your help guys

This topic was automatically closed 273 days after the last reply. New replies are no longer allowed.