new1234.jpg

Archive

Posts Tagged ‘Patch 1’

VMware: Install vSphere 5 update 1 with PowerCLI

March 22nd, 2012 1 comment

Today I’ve updated my vSphere 5 hosts witch patch 1 released one week ago. Before I started the build number was VMware ESXi 5.0.0 469512:

image

To update the host I used PowerCLI, the code:

Get-VMHost esx02.vmpros.lan | Set-VMHost -State Maintenance
$DataStore = Get-VMHost esx02.vmpros.lan | Get-Datastore ESX02_VMFS01
Copy-DatastoreItem C:\vmpros\patch1\ $DataStore.DatastoreBrowserPath -Recurse
Get-VMHost esx02.vmpros.lan | Install-VMHostPatch -Hostpath "/vmfs/volumes/ESX02_VMFS01/patch1/metadata.zip"

The script will upload the content of the update-from-esxi5.0-5.0_update01.zip located at your local computer (which runningĀ  PowerCLI) to the selected datastore. Then the update installation will start.

Update installation process:

image

WARNING: The update completed successfully, but the system needs to be rebooted for the changes to be effective.

Read more…