ESX 4.1 : Failed Boot Recovery

Encore une petite fonction pratique ayant fait son apparition avec la 4.1 :

On retrouve facilement sa trace dans le SDK pour en faire un script powershell :

get-vm | foreach-object {
$vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec
$vmConfigSpec.bootOptions = New-Object VMware.Vim.VirtualMachineBootOptions
$vmConfigSpec.bootOptions.bootRetryDelay = "20000" # in milisec
$vmConfigSpec.bootOptions.bootRetryEnabled = $true
(Get-View $_.ID).ReconfigVM($vmConfigSpec)
}

Que ce soit pour du PXE ou pour des incidents de NFS/iSCSI, cette fonction peut rapidement devenir indispensable…

Tags: , ,

One Response to “ESX 4.1 : Failed Boot Recovery”

  1. [...] Ce billet était mentionné sur Twitter par Alan Renouf et Luc Dekens, raphael schitz. raphael schitz a dit: #PowerCLI script for Failed Boot Recovery new #ESX 4.1 feature http://www.hypervisor.fr/?p=2303 [...]

Leave a Reply