Get-VM X | Get-View | % { $_.CreateSecondaryVM($null) }
Get-VM X | Select -First 1 | Get-View | % { $_.TurnOffFaultToleranceForVM() }
# Enable or disable FT logging.
$esxHost = "192.168.1.11"
$vmKernel = "vmk0" # You can get these out of Get-VMHostNetwork
$enable = $true
$hView = Get-VMHost $esxHost | Get-View -Property configManager
$nicManager = Get-View $hView.configManager.virtualNicManager
if ($enable -eq $true) {
$nicManager.SelectVnicForNicType("faultToleranceLogging", $vmKernel)
} else {
$nicManager.DeselectVnicForNicType("faultToleranceLogging", $vmKernel)
}
Online access to the latest VMworld Sessions & Labs and online services.
Learn morePurchase credits to redeem training and consulting services online.
Buy Now