WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / vSphere 5.5 / Quick Tip - Using the CLI to upgrade to a specific VM virtual hardware version in vSphere 5.5

Quick Tip - Using the CLI to upgrade to a specific VM virtual hardware version in vSphere 5.5

10.30.2013 by William Lam // 4 Comments

For those of you who usually use the "legacy" vSphere C# Client to perform virtual machine virtual hardware upgrade (also known as Virtual Machine Compatibility) should know that the default behavior is to automatically upgrade to the latest supported version. This is usually not an issue, however with vSphere 5.5 if you do perform this upgrade, one caveat to be aware of that you will NOT be able to edit the virtual machine configurations using the vSphere C# Client afterwards. A confirmation dialog is even presented to warn the user before performing this operation and that the virtual machine can only be manage through the vSphere Web Client.

Note: Even though the virtual machine settings can not be managed/configured using the vSphere C# Client, you can still use the various vSphere API/CLIs to manage the virtual machine and those are fully supported.

I had noticed a couple of comments on Twitter the other day and even at VMworld Barcelona that this was not ideal that the vSphere C# Client automatically upgraded to the latest version. I know there are some folks that would have liked to upgrade to a specific version of virtual hardware. Luckily, you can easily do so by using the vSphere API/CLI such as PowerCLI for example if you have paid vSphere license.

You can use the Set-VM cmdlet and  specify the -Version property, here is the syntax for the command:

Set-Vm -VM (Get-VM -Name [VM-NAME]) -Version v[HW-VERSION]

Here is a screenshot of upgrading a VM called "Duncan" from vHW8 to vHW9:

Now this is great for customers who have a vSphere license that allows for both read/write access to the APIs which PowerCLI and other CLIs leverage. For customers using Free ESXi or just want a quick and simple way of upgrading to a specific virtual hardware version, you can leverage vim-cmd utility which is found in the ESXi Shell.

You can use the following command to upgrade to a specific virtual hardware version (you will need to specify the VM-ID by using vim-cmd vmsvc/getallvms):

vim-cmd vmsvc/upgrade [VM-ID] vmx-[HW-VERSION]

Here is a screenshot of upgrading a VM called "Cormac" from vHW7 to vHW9:

More from my site

  • Edit Virtual Hardware 10 VMs using vSphere 5.5 Update 2 C# Client
  • Heads Up: OVF/OVA always deployed as Thick on VSAN when using vSphere Web Client
  • Configuring VCSA 6.0 as vSphere Web Client Server for vSphere 5.5
  • A killer custom Apple Mac Mini setup running VSAN
  • Does VSAN work with Free ESXi?

Categories // vSphere 5.5 Tags // ESXi 5.5, virtual hardware, virtual hardware 10, vmx-10, vSphere 5.5, vsphere C# client, vsphere web client

Trackbacks

  1. VMware Link Collection | Life says:
    10/31/2014 at 4:10 am

    […] to 5.5 (The Lone Sysadmin) How to Upgrade the VMware vCenter Server Appliance 5.5 (The Virtual Way) Quick Tip: Using the CLI to upgrade to a specific VM virtual hardware version in vSphere 5.5 (Virtually Ghetto) How to upgrade to vSphere 5.5 (VMGuru.nl) How to update your standalone host to […]

    Reply
  2. Quick Tip: Upgrading ESXi Virtual Hardware with SSH | TD Sheridan Lab says:
    06/06/2015 at 7:27 pm

    […] are a few different ways to upgrade the the virtual hardware on the VM and virtuallyghetto goes through a couple of them. I prefer the direct approach with SSH. This way you don't have […]

    Reply
  3. Upgrade Virtual Machine Hardware and VMware Tools – Virtual Reality says:
    08/23/2017 at 4:18 am

    […] William Lam has mentioned upgrading hardware version using power cli in his Blog […]

    Reply
  4. Devs4Ops Resources | IT Should Just Work says:
    01/18/2018 at 5:49 am

    […] Upgrading VM Hardware using PowerCLI- https://www.williamlam.com/2013/10/quick-tip-using-cli-to-upgrade-to.html […]

    Reply

Thanks for the comment!Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • VMUG Connect 2025 - Minimal VMware Cloud Foundation (VCF) 5.x in a Box  05/15/2025
  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025
  • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025
  • vCenter Identity Federation with Authelia 04/16/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025