25 marzo 2013

Disable VAAI with POWERCLI


Concept : "VMware vSphere® Storage APIs – Array Integration (VAAI), also referred to as hardware acceleration or hardware offload APIs, are a set of APIs to enable communication between VMware vSphere ESXi™ hosts and storage devices." kb.vmware.com/kb/1021976

VERIFY VAAI STATUS:
Get-VMHost * -Name | Get-VMHostAdvancedConfiguration -Name DataMover*, VMFS3.HardwareAcc*

DISABLE VAAI (3 parameters)
Set-VMHostAdvancedConfiguration -VMHost * -Name DataMover.HardwareAcceleratedMove -Value 0 
Set-VMHostAdvancedConfiguration -VMHost * -Name DataMover.HardwareAcceleratedInit -Value 0
Set-VMHostAdvancedConfiguration -VMHost * -Name VMFS3.HardwareAcceleratedLocking -Value 0

Enable SSH with POWERCLI


VERIFY SSH STATUS:
Get-VMHost | Get-VMHostService | Where { $_.Key -eq "TSM-SSH" } |select VMHost, Label, Running

ENABLE SSH:
Get-VMHost | Foreach { Start-VMHostService -HostService ($_ | Get-VMHostService | Where { $_.Key -eq “TSM-SSH”} )}

DISABLE WARNING SSH:
Get-VMhost * | Set-VMHostAdvancedConfiguration UserVars.SuppressShellWarning 1


Image by http://vninja.net/