VMware Aria Automation Orchestrator

 View Only
Expand all | Collapse all

How to turn on Fault Tolerance for VM in Automation

  • 1.  How to turn on Fault Tolerance for VM in Automation

    Posted Mar 17, 2025 11:37 AM

    Hi,

    how can i turn on fault tolerance for a vm in automation?

    Thanks, Daniel



  • 2.  RE: How to turn on Fault Tolerance for VM in Automation

    Posted Mar 18, 2025 10:07 AM

    By "automation" you mean using Orchestrator?



    ------------------------------
    If you find the answer helpful, please click on the RECOMMEND button.

    Please visit my blog to get more information: https://clouddepth.com
    ------------------------------



  • 3.  RE: How to turn on Fault Tolerance for VM in Automation

    Posted Mar 19, 2025 03:45 AM

    Thats not really important for me, its good in orchestrator as good as directly at provisioning. But as i see, its only possible with powershell... (!?)




  • 4.  RE: How to turn on Fault Tolerance for VM in Automation

    Posted Mar 19, 2025 09:39 AM

    Nope. Can be done with Javascript as well. I can take a look if I have a code somewhere. I think I did something similar a few years ago.



    ------------------------------
    If you find the answer helpful, please click on the RECOMMEND button.

    Please visit my blog to get more information: https://clouddepth.com
    ------------------------------



  • 5.  RE: How to turn on Fault Tolerance for VM in Automation

    Posted Mar 19, 2025 09:39 AM

    Ok. I think I have a raw working code. I will prepare it and publish the link later, so you can use it.



    ------------------------------
    If you find the answer helpful, please click on the RECOMMEND button.

    Please visit my blog to get more information: https://clouddepth.com
    ------------------------------



  • 6.  RE: How to turn on Fault Tolerance for VM in Automation

    Posted Mar 19, 2025 11:49 AM

    Would be very helpfull, thanks!




  • 7.  RE: How to turn on Fault Tolerance for VM in Automation

    Posted Mar 24, 2025 10:39 AM

    Hi @Cashi,

    Please: https://clouddepth.com/how-to-enable-fault-tolerance-with-orchestrator-the-apollo-13-way/



    ------------------------------
    If you find the answer helpful, please click on the RECOMMEND button.

    Please visit my blog to get more information: https://clouddepth.com
    ------------------------------



  • 8.  RE: How to turn on Fault Tolerance for VM in Automation

    Posted Mar 24, 2025 10:40 AM
    /* Inputs
    host : VC:HostSystem
    vm : VC:VirtualMachine
    turnOn : boolean
    */
    System.log("VM's fault tolerance info:" + vm.config.ftInfo);
    if ( vm.config.ftInfo != null ) {
    	if ( vm.config.ftInfo.role == 1 ) {
    		System.log("VM's fault tolerance secondary VM: " + vm.config.ftInfo.secondaries[0]);
    		task = vm.enableSecondaryVM_Task(vm.config.ftInfo.secondaries[0], host);
    	} else {
    		throw "The VM: " + vm.name + " is not a primary VM!";
    	}
    } else if (turnOn){
    	task = vm.createSecondaryVM_Task(host);
    } else {
    	throw "Fault tolerance is not switched on!";
    }
    actionResult = System.getModule("com.vmware.library.vc.basic").vim3WaitTaskEnd(task,true,3) ;



  • 9.  RE: How to turn on Fault Tolerance for VM in Automation

    Posted Mar 24, 2025 06:03 PM

    Hi Mayank,

    for some reason I am getting that error: `Error in (Dynamic Script Module name : vim3WaitTaskEnd#21) Task 'createSecondary' error: The requested operation is not implemented by the server.`  I didn't use this `ftInfo` method before, but it is looks like its missing something.



    ------------------------------
    If you find the answer helpful, please click on the RECOMMEND button.

    Please visit my blog to get more information: https://clouddepth.com
    ------------------------------



  • 10.  RE: How to turn on Fault Tolerance for VM in Automation

    Posted Apr 02, 2025 05:18 PM

    I will look into it. Thanks.




  • 11.  RE: How to turn on Fault Tolerance for VM in Automation

    Posted Mar 18, 2025 01:46 PM

    Use PowerCLI Runtime and pick a PowerShell Script to turn on FT on VM. http://vniklas.djungeln.se/2012/02/25/vmware-vsphere-ft-fault-tolerance-function-for-powercli/

    You can add a subscription to vRA as well, just like what I did here for enabling vTPM. https://cloudblogger.co.in/2025/03/17/enabling-vtpm-in-vsphere-vms-using-orchestrator/