


いままで運用してきたESXi 5.0ですが5.1にUpdateできるものの、どうしてもVMware ToolsのUpdateができない
そこでHost ConfigurationをバックアップしてからESXi 5.1を新規にインストール。Host Configurationをリアストアすることにしました。このため4GBのUSBメモリを別途用意しました
ESXi Host Configuration Bacupは下記の手順で行います
Backup VMware ESXi 5.0 Host Configuration
今回のInstallもいままでのようにVMware Workstation 9のVMとしてVMware-VMvisor-Installer-5.1.0-799733.x86_64.isoからboot、Installを行います
- VMを起動
- Install
- ESXi 5.1のUSBで起動
- VMware vSphere CLI 5.1 Install
- Host Configuration File Restore
VMware-VMvisor-Installer-5.1.0-799733.x86_64.isoからVMを起動して、その後別途用意したUSBメモリをVMに接続、認識させます
USBメモリにESXi 5.1のInstallを行います
新たにInstallしたUSBメモリで5.1を起動し一時的にIPを割り当てます。これでVMware ToolsがUpdateできないESXi 5.1と新規にInstallしたESXi 5.1が同時に稼働している状況です
今回はリストアにVMware vSphere CLI 5.1を使用してみることにしました
VMware vSphere CLI 5.1
https://my.vmware.com/web/vmware/details?downloadGroup=VSP510-VCLI-510&productId=285
からVMware-vSphere-CLI-5.1.0-780721.exeをDownloadしてWindowsパソコンにInstallします
バックアップしたHost Configuration FileをWindowsパソコンにコピーしてCLIでリストアします
C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-cfgbackup.pl -server 192.169.1.20 -l d:\backup\vmesxi51.cfg
Enter username: root
Enter password:
Error connecting to server at ‘https://192.169.1.20/sdk/webService’: Perhaps host is not a vCenter or ESX server
いろいろオプションを変えてみてもエラーになってリストアすることができません
バックアップしたのはFree LicenseのESXi 5.1でリストア先は新規にInstallした評価版のままのESXiなのですが….
ネットで調べても同様のエラーの事例があるのですが、どれを試してもリストアすることができません
試しに他のコマンドを実行してみました
C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-ntp.pl –server 192.168.1.20 -l
Enter username: root
Enter password:
No NTP servers configured.
これはntp設定情報を取得するコマンドですが正常に取得されています
もしかしてこれも有償版ライセンスを購入していないとリストアはできないのでしょうか?
どうする….
参考
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-cfgbackup.pl --helpSynopsis: vicfg-cfgbackup.pl OPTIONS [<backupfile>]Command-specific options:--force-fForce the restore of the configuration.--load-lRestore configuration onto the host--quiet-qDo not prompt for user confirmation.--reset-rResets host, restore to factory settings.--save-sBackup the host configuration.Common VI options:--config (variable VI_CONFIG)Location of the VI Perl configuration file--credstore (variable VI_CREDSTORE)Name of the credential store file defaults to <HOME>/.vmware/credstore/vicredentials.xml on Linux and <APPDATA>/VMware/credstore/vicredentials.xml on Windows--encoding (variable VI_ENCODING, default 'utf8')Encoding: utf8, cp936 (Simplified Chinese), iso-8859-1 (German), shiftjis(Japanese)--helpDisplay usage information for the script--passthroughauth (variable VI_PASSTHROUGHAUTH)Attempt to use pass-through authentication--passthroughauthpackage (variable VI_PASSTHROUGHAUTHPACKAGE, default'Negotiate')Pass-through authentication negotiation package--password (variable VI_PASSWORD)Password--portnumber (variable VI_PORTNUMBER)Port used to connect to server--protocol (variable VI_PROTOCOL, default 'https')Protocol used to connect to server--savesessionfile (variable VI_SAVESESSIONFILE)File to save session ID/cookie to utilize--server (variable VI_SERVER, default 'localhost')VI server to connect to. Required if url is not present--servicepath (variable VI_SERVICEPATH, default '/sdk/webService')Service path used to connect to server--sessionfile (variable VI_SESSIONFILE)File containing session ID/cookie to utilize--url (variable VI_URL)VI SDK URL to connect to. Required if server is not present--username (variable VI_USERNAME)Username--verbose (variable VI_VERBOSE)Display additional debugging information--versionDisplay version information for the script