Unable to find a Gpu partition adapter matching the given criteria.
Opened this issue · 5 comments
Hi,
I get the following errors after running step 2. I'm on Windows 10 Home but I used a script to enable hyper v. I hope that's not the issue.
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\Windows\system32> # change ubuntu to your current vm name
>> $vm = "Ubuntu"
>>
>> # this will remove any current gpu-p adapter then reattach them all
>> Remove-VMGpuPartitionAdapter -VMName $vm
>> $gpu_list = Get-VMHostPartitionableGpu
>> foreach ($k in $gpu_list){
>> $instance_path = $k.Name
>> $instance_path
>> Add-VMGpuPartitionAdapter -VMName $vm -InstancePath $instance_path
>> }
>> Set-VMGpuPartitionAdapter -VMName $vm -MinPartitionVRAM 1
>> Set-VMGpuPartitionAdapter -VMName $vm -MaxPartitionVRAM 11
>> Set-VMGpuPartitionAdapter -VMName $vm -OptimalPartitionVRAM 10
>> Set-VMGpuPartitionAdapter -VMName $vm -MinPartitionEncode 1
>> Set-VMGpuPartitionAdapter -VMName $vm -MaxPartitionEncode 11
>> Set-VMGpuPartitionAdapter -VMName $vm -OptimalPartitionEncode 10
>> Set-VMGpuPartitionAdapter -VMName $vm -MinPartitionDecode 1
>> Set-VMGpuPartitionAdapter -VMName $vm -MaxPartitionDecode 11
>> Set-VMGpuPartitionAdapter -VMName $vm -OptimalPartitionDecode 10
>> Set-VMGpuPartitionAdapter -VMName $vm -MinPartitionCompute 1
>> Set-VMGpuPartitionAdapter -VMName $vm -MaxPartitionCompute 11
>> Set-VMGpuPartitionAdapter -VMName $vm -OptimalPartitionCompute 10
>> Set-VM -GuestControlledCacheTypes $true -VMName $vm
>> Set-VM -LowMemoryMappedIoSpace 1Gb -VMName $vm
>> Set-VM -HighMemoryMappedIoSpace 32GB -VMName $vm
Remove-VMGpuPartitionAdapter : Unable to find a Gpu partition adapter matching the given criteria.
At line:5 char:1
+ Remove-VMGpuPartitionAdapter -VMName $vm
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Remove-VMGpuPartitionAdapter], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.RemoveVMGpuPartitionAdapter
Get-VMHostPartitionableGpu : The term 'Get-VMHostPartitionableGpu' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:6 char:13
+ $gpu_list = Get-VMHostPartitionableGpu
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-VMHostPartitionableGpu:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Set-VMGpuPartitionAdapter : Unable to find a Gpu partition adapter matching the given criteria.
At line:12 char:1
+ Set-VMGpuPartitionAdapter -VMName $vm -MinPartitionVRAM 1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Set-VMGpuPartitionAdapter], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.SetVMGpuPartitionAdapter
Set-VMGpuPartitionAdapter : Unable to find a Gpu partition adapter matching the given criteria.
At line:13 char:1
+ Set-VMGpuPartitionAdapter -VMName $vm -MaxPartitionVRAM 11
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Set-VMGpuPartitionAdapter], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.SetVMGpuPartitionAdapter
Set-VMGpuPartitionAdapter : Unable to find a Gpu partition adapter matching the given criteria.
At line:14 char:1
+ Set-VMGpuPartitionAdapter -VMName $vm -OptimalPartitionVRAM 10
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Set-VMGpuPartitionAdapter], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.SetVMGpuPartitionAdapter
Set-VMGpuPartitionAdapter : Unable to find a Gpu partition adapter matching the given criteria.
At line:15 char:1
+ Set-VMGpuPartitionAdapter -VMName $vm -MinPartitionEncode 1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Set-VMGpuPartitionAdapter], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.SetVMGpuPartitionAdapter
Set-VMGpuPartitionAdapter : Unable to find a Gpu partition adapter matching the given criteria.
At line:16 char:1
+ Set-VMGpuPartitionAdapter -VMName $vm -MaxPartitionEncode 11
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Set-VMGpuPartitionAdapter], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.SetVMGpuPartitionAdapter
Set-VMGpuPartitionAdapter : Unable to find a Gpu partition adapter matching the given criteria.
At line:17 char:1
+ Set-VMGpuPartitionAdapter -VMName $vm -OptimalPartitionEncode 10
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Set-VMGpuPartitionAdapter], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.SetVMGpuPartitionAdapter
Set-VMGpuPartitionAdapter : Unable to find a Gpu partition adapter matching the given criteria.
At line:18 char:1
+ Set-VMGpuPartitionAdapter -VMName $vm -MinPartitionDecode 1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Set-VMGpuPartitionAdapter], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.SetVMGpuPartitionAdapter
Set-VMGpuPartitionAdapter : Unable to find a Gpu partition adapter matching the given criteria.
At line:19 char:1
+ Set-VMGpuPartitionAdapter -VMName $vm -MaxPartitionDecode 11
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Set-VMGpuPartitionAdapter], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.SetVMGpuPartitionAdapter
Set-VMGpuPartitionAdapter : Unable to find a Gpu partition adapter matching the given criteria.
At line:20 char:1
+ Set-VMGpuPartitionAdapter -VMName $vm -OptimalPartitionDecode 10
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Set-VMGpuPartitionAdapter], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.SetVMGpuPartitionAdapter
Set-VMGpuPartitionAdapter : Unable to find a Gpu partition adapter matching the given criteria.
At line:21 char:1
+ Set-VMGpuPartitionAdapter -VMName $vm -MinPartitionCompute 1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Set-VMGpuPartitionAdapter], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.SetVMGpuPartitionAdapter
Set-VMGpuPartitionAdapter : Unable to find a Gpu partition adapter matching the given criteria.
At line:22 char:1
+ Set-VMGpuPartitionAdapter -VMName $vm -MaxPartitionCompute 11
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Set-VMGpuPartitionAdapter], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.SetVMGpuPartitionAdapter
Set-VMGpuPartitionAdapter : Unable to find a Gpu partition adapter matching the given criteria.
At line:23 char:1
+ Set-VMGpuPartitionAdapter -VMName $vm -OptimalPartitionCompute 10
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Set-VMGpuPartitionAdapter], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.SetVMGpuPartitionAdapter
PS C:\Windows\system32>```
what is your GPU?
RTX 3070 (notebook)
Check to see if Windows 10 Home support all Hyper-V Function?
Try this:
`$vm = "Ubuntu"
Add-VMGpuPartitionAdapter -VMName $vm
Set-VMGpuPartitionAdapter -VMName $vm -MinPartitionVRAM 80000000 -MaxPartitionVRAM 100000000 -OptimalPartitionVRAM 100000000 -MinPartitionEncode 80000000 -MaxPartitionEncode 100000000 -OptimalPartitionEncode 100000000 -MinPartitionDecode 80000000 -MaxPartitionDecode 100000000 -OptimalPartitionDecode 100000000 -MinPartitionCompute 80000000 -MaxPartitionCompute 100000000 -OptimalPartitionCompute 100000000
Set-VM -GuestControlledCacheTypes $true -VMName $vm
Set-VM -LowMemoryMappedIoSpace 1Gb -VMName $vm
Set-VM –HighMemoryMappedIoSpace 32GB –VMName $vm`
试试这个: `$vm = "Ubuntu"
添加-VMGpuPartitionAdapter -VMName $vm 设置-VMName $vm -MinPartitionVRAM 80000000 -MaxPartitionVRAM 100000000 -OptimalPartitionVRAM 100000000 -MinPartitionEncode 80000000 -MaxPartitionEncode 100000000 -OptimalPartitionEncode 100000000 - MinPartitionDecode 80000000 -MaxPartitionDecode 100000000 -OptimalPartitionDecode 100000000 -MinPartitionCompute 80000000 -MaxPartitionCompute 100000000 -OptimalPartitionCompute 100000000
设置 VM -GuestControlledCacheTypes $true -VMName $vm 设置 VM -LowMemoryMappedIoSpace 1Gb -VMName $vm 设置 VM –HighMemoryMappedIoSpace 32GB –VMName $vm`
Missing "Add-VMGpuPartitionAdapter -VMName $vm -InstancePath $instance_path" can not be done."instance_path" use "Get-VMHostPartitionableGpu"get it.