在 VMWare vSphere Hypervisor 中启用管理 API

Enable Management API in VMWare vSphere Hypervisor

我使用的是免费版的 vmWares vSphere Hypervision 6。 我遇到的问题是我想使用管理 API.

我想启动和停止虚拟机,也想通过脚本获取和重置快照,但 API 对于免费版本是只读的。 我使用了 https://github.com/vmware/pyvmomi 中的示例脚本 具有写访问权限的脚本失败

Caught vmodl fault : Current license or ESXi version prohibits execution of the requested operation.

有没有办法启用此功能或以其他方式访问此功能api,或者我是否必须购买标准许可证?

您必须付费才能在 vSphere API 中使用任何写入模式操作。如果您 运行 演示模式下的主机系统可以工作 60 天,您可以使用完整的 API,vCenter 也是如此,但是在这 60 天结束后,您将失去写入模式 API 特点。

编辑 这是一篇知识库文章。它很旧但仍然有效,这部分今天适用:http://kb.vmware.com/kb/1023990

Notes:
vCLI, PowerCLI, and vSphere SDK for Perl are limited to read-only access for the free vSphere Hypervisor edition. To enable full functionality of vCLI on a VMware ESXi host, the host must be licensed with vSphere Essentials, vSphere Essential Plus, vSphere Standard, vSphere Advanced, vSphere Enterprise, or vSphere Enterprise Plus.

它说的 Perl 应该只是 vSphere SDK。