> Connect-VIServer -Server 10.0.0.100 -User root -Password password
> Get-VMhost | Select name, ConnectionState, Version, Build
[code lang=’plain’]Name ConnectionState Version Build
—- ————— ——- —–
10.0.0.100 Connected 5.1.0 2323236[/code]
> Set-VMhost -State Maintenance
[code lang=’plain’]Name ConnectionState PowerState NumCpu CpuUsageMhz CpuTotalMhz MemoryUsageGB MemoryTotalGB Version
—- ————— ———- —— ———– ———– ————- ————- ——-
10.0.0.100 Maintenance PoweredOn 4 137 9040 1.527 43.991 5.1.0
> Get-Datastore
Name FreeSpaceGB CapacityGB
—- ———– ———-
maildatastore1 328.009 1,672.750
datastore1 265.133 274.000[/code]
> New-PSDrive -name "mounteddatastore" -Root \ -PSProvider VimDatastore -Datastore (Get-Datastore datastore1)
[code lang=’plain’]Name Used (GB) Free (GB) Provider Root CurrentLocation
—- ——— ——— ——– —- —————
mounted… VimDatastore \10.0.0.100@443\ha-datacenter\da…[/code]
> Copy-Datastoreitem C:\Users\umarz\Downloads\ESXi510-201605001.zip -Destination mounteddatastore:
SSH ke ESXi dan taip
# esxcli software vib install -d /vmfs/volumes/datastore1/ESXi510-201605001.zip
# esxcli system shutdown reboot --reason patch