addVMAdvParamOption.pl

Version 1

    This script allows you to add/modify advanced parameter configuration for a given VM such as vmsafe.enable, monitor_control.restrict_backdoor, vmx.allowNested and other advanced configuration keys. This script can execute against vCenter or individual ESX(i) host.

     

    Requirement:

    ESX(i) 3.5+ or 4.0

    VIMA 1.0/vMA 4.0

     

    Sample Execution:

     

    Adding a new param called vmsafe.enable with value false to a VM against vCenter:

    [vi-admin@scofield ~]$ ./addVMAdvParamOption.pl --server reflex.primp-industries.com --username primp --vmname kate --key vmsafe.enable --value false
    Enter password:
    Reconfiguring "kate" with advanced parameter configuration: "vmsafe.enable=>false" ...
    Sucessfully updated advanced parameter configuration for "kate"!
    
    

     

     

    Adding a new param called vmx.allowNested with value true to a VM against ESX host:

    [vi-admin@scofield ~]$ ./addVMAdvParamOption.pl --server himalaya.primp-industries.com --username root --vmname ESX3.5u4 --key vmx.allowNested --value true
    Enter password:
    Reconfiguring "ESX3.5u4" with advanced parameter configuration: "vmx.allowNested=>true" ...
    Sucessfully updated advanced parameter configuration for "ESX3.5u4"!
    

     

    Ensure your VM is powered off before trying to modify any advanced parameters, else script will error out with a warning.