vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
743 stars 602 forks source link

Error when using new-hvpool -spec instantclone with nvidia grid #548

Open cvvcvv opened 2 years ago

cvvcvv commented 2 years ago

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

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