Disable/Enable VM Methods on Virtual Appliances in vCenter
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.
I just want to disable Export System Logs options on a VM. Is it possible?
I don’t see any method for disabling this feature. I think the only posibility is to modify some files on the vCenter, not sure where or what, and the proberly need to changed after a update.
You can try to post it as an idea here: https://vsphere.ideas.aha.io/
If it can be done through access control then its better.
I have never see a option in a role property for doing this.