PowerCLI-Example-Scripts
PowerCLI-Example-Scripts copied to clipboard
Error when using new-hvpool -spec instantclone with nvidia grid
Describe the bug
using new-hvpool -spec \path to json... instantclone with nvdia grid, get error.
Exception calling "Desktop_Create" with "2" argument(s): "ExceptionType : VMware.Hv.InvalidArgument ErrorMessage : vGPU Grid Profile must be set for instant clone pool as vGPU is enabled. ParameterName : desktopSettings.displayProtocolSettings.pcoipDisplaySettings.vGPUGridProfile" At C:\Program Files\WindowsPowerShell\Modules\VMware.Hv.Helper\VMware.HV.Helper.psm1:4983 char:7
-
$id = $desktop_helper.Desktop_create($services,$desktopSpecObj)
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [], MethodInvocationException
- FullyQualifiedErrorId : VimException
part of the json
"DisplayProtocolSettings": { "SupportedDisplayProtocols": [ "BLAST", "PCOIP", "RDP" ], "DefaultDisplayProtocol": "BLAST", "AllowUsersToChooseProtocol": true, "PcoipDisplaySettings": { "Renderer3D": "MANAGE_BY_VSPHERE_CLIENT", "EnableGRIDvGPUs": true, "VGPUGridProfile": "grid_m10-1b", "VRamSizeMB": null, "VRamSizeKB": null, "MaxNumberOfMonitors": 1, "MaxResolutionOfAnyOneMonitor": "WSXGA_PLUS" },
Reproduction steps
1.none
2.
3.
...
Expected behavior
Pool is created with enabled grid gpu.
Additional context
Using same json with "EnableGRIDvGPUs": false the pool is created fine.
Json is created with Get-hvpool -PoolName $pool | Get-HVPoolSpec -FilePath $fileloc$pool.json