Disable/Enable VM Methods on Virtual Appliances in vCenter

March 27, 2020 4 By Allan Kjaer

Most appliances that comes from different vendors, does not support upgrade of VMware Tools, upgrade of compatibility/Virtual Hardware or take a snapshot.

And some Vendors does not support vMotion/Storage Migration on there appliances.

I have earlier create a script in this blog on how to disable vMotion/Storage migration here.

The scripts can also be changed to disable/enable upgrade of VMware Tools, upgrade of compatibility/Virtual Hardware, and create snapshot.

NOTE: Disabling “Create Snapshot” also make usage of image backup impossible, and VM replication like Veeam Replication. But that will for the most part also not be support by the Appliance vendor, when they do not support VM Snapshot.

NOTE: This only works i vCenter, this does not disable this methods on the ESXi host!

Disclaimer: The use of internal APIs are not officially supported by VMware and can change at any time. Please use at your own risk.

Disable/enable upgrade of VMware tools

change the line of:

 $method = "RelocateVM_Task" 

And to:

 $method = "UpgradeTools_Task"

Disable/enable upgrade of Compatibilty

change the line of:

 $method = "RelocateVM_Task" 

And to:

$method = "UpgradeVM_Task"

Disable/enable create snapshot

change the line of:

 $method = "RelocateVM_Task" 

And to:

$method = "CreateSnapshot_Task"

I have only tested this on vCenter 6.7 Update 3.

Please share this page if you find it usefull: