3、使用vmkfstools.pl遇到如下的错误信息:
Attempting to clone disk [DataStore] XXX/xxx.vmdk
Unable to clone virtual disk :
分析原因:
我是在本机(vc clinet)通过vCli连接vcenter server去管理/操作esxi主机上的vmdk文件。而vmware的cCli文档(vCLI and Lockdown Mode)章节里提到:
Lockdown mode disables all direct root access to ESXi machines. To make changes to ESXi systems inlockdown mode you must go through a vCenter Server system that manages the ESXi system. You can use the vSphere Client or vCLI commands that support the --vihost option. The following commands cannot run against vCenter Server systems and are therefore not available in lockdown mode:
■
vicfg-snmp
■
vifs
■
vicfg-user
■
vicfg-cfgbackup
■
vihostupdate
■
vmkfstools
■
vicfg-ipsec
If you have problems running a command on an ESXi host directly (without specifying a vCenter Server target), check whether lockdown mode is enabled on that host.
解决办法: