Upgrading virtual machine compatibility

To upgrade virtual machine compatibility, you can use the Set-VM cmdlet that you have seen before in the Modifying the settings of virtual machines section. You have to use the -Version parameter and specify the new compatibility version as a parameter value. At the time of writing this book, the only valid versions are v4, v7, v8, v9, v10, and v11.

New features in virtual machines compatible with version 9 or higher can no longer be edited with the vSphere C# client. Some devices may not appear in the devices list, and the settings of some devices may appear as Restricted. You will have to use the vSphere web client or PowerCLI to edit the configuration for these virtual machines.

The following example will ...

Get Learning PowerCLI - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.