Sunday, August 6, 2017

ESXi configuration

資料來源: How to back up ESXi host configuration (2042141)

由於我裝左 PowerCLI for  Windows, 咁就用番佢黎 backup:

首先打開 VMware vSphere PowerCLI, 然後輸入呢句野 connect 去 server:

無論你想 backup 定係 restore, 都要先 connect 左去 server.

Connect-VIServer -Server ESXi_host_IP_address -User root -Password {root_Password}



 Backup configuration

Get-VMHostFirmware -VMHost ESXi_host_IP_address -BackupConfiguration -DestinationPath output_directory





Restore configuration:

Set-VMHost -VMHost ESXi_host_IP_address -State 'Maintenance'
Set-VMHostFirmware -VMHost ESXi_host_IP_address -Restore -SourcePath backup_file -HostUser username -HostPassword password 


No comments:

Post a Comment