October 6, 20241 yr I had my p2000 bound to my dockers and specifically my Plex ever since I set this Unraid server up, and the dashboard GPU box always gave me the utilization of the GPU. I recently unbound it from my dockers and Plex server so that I can use it in a VM. I set it in the VM settings, and an application that requires a graphics card that wasn't working with the VM default is now working with the p2000 attached. But now the GPU info box on the dashboard says "GPU not available bound to VFIO or inuse in a VM." It absolutely is "in use" as verified by the application on my VM that wouldn't run without it, and in the box it does show p2000 as the device, so it seems like it's at least detecting its existence. I have the Nvidia driver installed, and I've pointed the "GPU Statistics" plugin I have installed which shows up in the device dropdown, so it does know about the card and is pointed to it. Is there something in Unraid that I'm missing that I need to set up to get the dashboard GPU data working? Something in the plugin? When I refresh the dashboard it shows what's in the attached image for a second, but that disappears and shows the above error after a second. Edited October 6, 20241 yr by Squirreljester
October 6, 20241 yr Community Expert 3 minutes ago, Squirreljester said: I had my p2000 bound to my dockers and specifically my Plex ever since I set this Unraid server up, and the dashboard GPU box always gave me the utilization of the GPU. I recently unbound it from my dockers and Plex server so that I can use it in a VM. I set it in the VM settings, and an application that requires a graphics card that wasn't working with the VM default is now working with the p2000 attached. But now the GPU info box on the dashboard says "GPU not available bound to VFIO or inuse in a VM." It absolutely is "in use" as verified by the application on my VM that wouldn't run without it, and in the box it does show p2000 as the device, so it seems like it's at least detecting its existence. I have the Nvidia driver installed, and I think that GPU box on the dashboard comes from the "GPU Statistics" plugin I have installed, but it's been so long I don't remember if it came from the plugin or if it's stock to the dashboard. Is there something in Unraid that I'm missing that I need to set up to get the dashboard GPU data working? Something in the plugin? If you have the GPU in a VM and it is bound to vfio then the host cannot see it as it states bound to vfio or in use in a VM. Nvidia driver is not bound to the card at a host level as it is isolated to the VM hence no output in GPU stats.
October 6, 20241 yr Author 4 minutes ago, SimonF said: If you have the GPU in a VM and it is bound to vfio then the host cannot see it as it states bound to vfio or in use in a VM. Nvidia driver is not bound to the card at a host level as it is isolated to the VM hence no output in GPU stats. I read a little bit about the vfio binding. I don't know what that is, but it sounds like I need to install a plugin for it. How can I get this showing the correct information? Do I need to install that plugin? Run some commands on the console? Are you saying that this plugin won't work if the card is assigned to a VM like I have it? I also edited my post to include a little more info. Edited October 6, 20241 yr by Squirreljester
October 6, 20241 yr Community Expert Just now, Squirreljester said: I read a little bit about the vfio binding. I don't know what that is, but it sounds like I need to install a plugin for it. How can I get this showing the correct information? Do I need to install that plugin? Run some commands on the console? Are you saying that this plugin won't work if the card is assigned to a VM like I have it? gpu stat needs the host drivers. The card is in effect isolated from the host so GPU stat will not work. In system devices have you checked next to the GPU to bind to vfio? Even if you have not it will be bound to vfio when the VM starts otherwise it cannot use the GPU.
October 6, 20241 yr Author 6 minutes ago, SimonF said: gpu stat needs the host drivers. The card is in effect isolated from the host so GPU stat will not work. In system devices have you checked next to the GPU to bind to vfio? Even if you have not it will be bound to vfio when the VM starts otherwise it cannot use the GPU. The VM is definitely using the card, I'm running an application it the VM that wouldn't work until I gave the VM access to the gpu. Per the images, the gpu is attached to the vm, and is checked in the gpu statistics plugin. Doesn't that mean it should be in vfio and should be working? Where is "system settings"? GPU Statistics plugin: VM settings: Edited October 6, 20241 yr by Squirreljester
October 6, 20241 yr Author 9 minutes ago, SimonF said: gpu stat needs the host drivers. The card is in effect isolated from the host so GPU stat will not work. In system devices have you checked next to the GPU to bind to vfio? Even if you have not it will be bound to vfio when the VM starts otherwise it cannot use the GPU. I found this in System Devices. Is this what you're talking about?
October 6, 20241 yr Community Expert Solution Yes. Your Nvidia card is bound to the VM so will not get any results in GPU stat. Here are my NV and AMD cards. AMD is inuse with the VM and bound to vfio not the amdgpu driver. NV is seen by the host and bound to the NV driver. GPU Stats shows the following. GPU stats cannot show any data if it is in use in a VM.
October 6, 20241 yr Author 9 minutes ago, SimonF said: Yes. You Nvidia card is bound to the VM so will not get any results in GPU stat. Here are my NV and AMD cards. AMD is inuse with the VM and bound to vfio not the amdgpu driver. NV is seen by the host and bound to the NV driver. GPU Stats shows the following. GPU stats cannot show any data if it is in use in a VM. It sounds and looks like I can't display it in GPU Statistics if it's bound to a VM, even if I check that box to bind it to vfio, right? Edited October 6, 20241 yr by Squirreljester
October 6, 20241 yr Community Expert 1 minute ago, Squirreljester said: It sounds and looks like I can't display it in GPU Statistics if it's bound to a VM, even if I check that box to bind it to vfio, right? Correct you cannot display in GPU stats if in use in a VM. You will need to run a tool in the VM to see GPU stats like MSI afterburner
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.