Easy-GPU-PV icon indicating copy to clipboard operation
Easy-GPU-PV copied to clipboard

Get-WmiObject : Invalid namespace "ROOT\virtualization\v2"

Open mcalvondea opened this issue 3 years ago • 7 comments

help. what should i do?

mcalvondea avatar Jan 22 '22 22:01 mcalvondea

I'm having this issue as well, did you figure it out?

ahrebel avatar Feb 01 '22 14:02 ahrebel

have you enabled hyperv in control panel?

MingyaoLiu avatar Feb 08 '22 19:02 MingyaoLiu

I'm getting this issue as well. Hyper-V is enabled in Control Panel.

PeterTucker avatar Feb 15 '22 12:02 PeterTucker

PS C:\Users\USER\Desktop\Easy-GPU-PV-main> .\PreChecks.ps1 System Compatible Printing a list of compatible GPUs...May take a second Copy the name of the GPU you want to share... Get-WmiObject : Invalid namespace "root\virtualization\v2" At C:\Users\USER\Desktop\Easy-GPU-PV-main\PreChecks.ps1:49 char:17

  • ... $Devices = (Get-WmiObject -Class "Msvm_PartitionableGpu" -ComputerNam ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Get-WmiObject], ManagementException
    • FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand

PeterTucker avatar Feb 15 '22 13:02 PeterTucker

@anthonyhrebel , it's working now. Try rebooting your system a couple of times.

PeterTucker avatar Feb 15 '22 13:02 PeterTucker

running this command fixed it for me Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

adsau59 avatar Apr 01 '22 11:04 adsau59

I did that but it did not fix the problem. Still getting Invalid namespace "rootvirtualizationv2"

trboomer avatar May 02 '22 16:05 trboomer

Are you running a WIndows virtual machine? Because I get the same problem on WIndows running on Proxmox with GPU passthrough

mehditlili avatar Feb 06 '23 13:02 mehditlili