Note: According to VMware documentation, downgrading the hardware version of your vSphere virtual machine is unsupported.
There are three steps to downgrade the VMware hardware version on a template.
- Remove the template from vCenter or host inventory (be careful not to delete it from disk).
- Edit the .vmtx file and .vmdk pointer files.
- Add the template back to the inventory.
In order to downgrade a VM template, you need to edit two files; a vmtx file and the vmdk pointer file. The simplest way to make these changes is from an SSH session on your ESXi host (or the ESXi console). After removing the template from inventory, navigate to the directory containing the VM template and open the .vmtx file in your favorite editor (like vi). Look for this line
virtualHW.version = "8"
and change it to
virtualHW.version = "7"
Save the changes to the vmtx file and find the pointer file to the vmdk. Open it with your editor and look for this line
ddb.virtualHWVersion = "8"
and change it to
ddb.virtualHWVersion = "7"
Now save this file and exit your editor. Add the template back to the inventory and test it out by deploying a VM guest from the template.
If you found this useful or if it didn't work out, leave a comment below.
Thanks for visiting!