ESX 4.1 : Failed Boot Recovery
Posted by NiTRo | Filed under HowTo, VMware
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: PowerCLI, powershell, scripting
July 29th, 2010 at 14:11
[...] 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 [...]