VMware Cloud Community
Sigi13
Contributor
Contributor
Jump to solution

PowerCLI - Upgrade HW to vmx-15/v15

Hi,

i try to update all vms to the hw version 15 i our next patchwindow, but it seems, that PowerCLI isn't ready to do this..

The version of the Appliance is: 6.7.0.43000

Line |

220 |              Set-VM -VM <vmname> -Version "vmx-15" -Confirm:$false

     |                                              ~~~~~~~~

     | Cannot bind parameter 'Version'. Cannot convert value "vmx-15" to type "VMware.VimAutomation.ViCore.Types.V1.VM.VMVersion". Error: "Unable to match the identifier name vmx-15 to a valid

     | enumerator name. Specify one of the following enumerator names and try again: Unknown, v4, v7, v8, v9, v10, v11, v12, v13, v14"

PS /> Get-VM <vmname> | Group-Object Version

Count Name                      Group

----- ----                      -----

    1 Unknown                   {<vmname>}

PS /> Get-PowerCLIVersion

PowerCLI Version

----------------

   VMware PowerCLI 12.0.0 build 15947286

---------------

Component Versions

---------------

   VMware Common PowerCLI Component 12.0 build 15939652

   VMware Cis Core PowerCLI Component PowerCLI Component 12.0 build 15939657

   VMware VimAutomation VICore Commands PowerCLI Component PowerCLI Component 12.0 build 15939655

Is the Hw-15 only with the newest vCenter Appliance like 6.7.0.44100 possible?

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

That is correct, the current PowerCLI version (12.0) doesn't yet support vmx-15.

You will have to use the API directly for now.

See Re: Script to change Guest OS and version


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

That is correct, the current PowerCLI version (12.0) doesn't yet support vmx-15.

You will have to use the API directly for now.

See Re: Script to change Guest OS and version


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
knikolov
VMware Employee
VMware Employee
Jump to solution

As you can see from the cmdlet documentation (Online Documentation - Cmdlet Reference - VMware {code}​) -Version parameter has been deprecated and -HardwareVersion should be used instead. Version parameter will not be updated any more and the latest version that it supports is v14. You can check example 3 in the documentation for the exact usage of -HardwareVersion parameter.

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Thanks for that feedback Kamen.

But HardwareVersion doesn't come with a set of allowed values it seems.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos