Reader small image

You're reading from  Mastering PowerCLI

Product typeBook
Published inOct 2015
Reading LevelIntermediate
PublisherPackt
ISBN-139781785286858
Edition1st Edition
Languages
Right arrow
Author (1)
Sajal Debnath
Sajal Debnath
author image
Sajal Debnath

Sajal Debnath is a highly certified Cloud computing technocrat with more than 12 years of experience in virtualized data center design, Cloud computing, and BC/DR solutions. He is an EMCISA, VCAP-DCD/DCA, VCAP-CID/CIA, RHCE 4/5/6, RHCVA, Openstack, and ITIL certified person. He is presently associated with VMware Software India Pvt. Ltd. as a senior system engineer. Previously, he worked with France Telecom, Hewlett Packard, and many more in multiple roles. He is involved in prestigious Indian government projects, such as National Cloud, Digital Locker, and so on.
Read more about Sajal Debnath

Right arrow

Configuring Fault Tolerance


In this section, we will discuss how we can use vSphere API's to configure FT through PowerCLI. For this, let's explore the methods and properties that we need to access.

If we access the APIs, we can see that there are two methods, CreateSecondaryVMEx_Task and CreateSecondaryVM_Task, which we can use to configure Fault Tolerance (FT). If we check, we can see that CreateSecondaryVM_Task is the deprecated method. So for this example, we will use the CreateSecondaryVMEx_Task method.

If we check the CreateSecondaryVMEX_Task method, we can see that it takes two different parameters, host and spec. The host parameter is for specifying a host system where the secondary VM should be placed, and spec is a Data Object of type FaultToleranceVMConfigSpec and is used for specifying the values for fault tolerance VM configuration. If we check, we can see that it takes two parameters: disks of type FaultToleranceDiskSpec and vmConfig of type ManagedObjectReference to a datastore...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering PowerCLI
Published in: Oct 2015Publisher: PacktISBN-13: 9781785286858

Author (1)

author image
Sajal Debnath

Sajal Debnath is a highly certified Cloud computing technocrat with more than 12 years of experience in virtualized data center design, Cloud computing, and BC/DR solutions. He is an EMCISA, VCAP-DCD/DCA, VCAP-CID/CIA, RHCE 4/5/6, RHCVA, Openstack, and ITIL certified person. He is presently associated with VMware Software India Pvt. Ltd. as a senior system engineer. Previously, he worked with France Telecom, Hewlett Packard, and many more in multiple roles. He is involved in prestigious Indian government projects, such as National Cloud, Digital Locker, and so on.
Read more about Sajal Debnath