VMware Cloud Community
levinpeng
Contributor
Contributor

Is there an API to operate the VMs residing on ESXi?

I tried to power on the VMs residing on ESXi host with VIX API, but fialed to execute the action and the bellow error shows.

This operation is not supported with the current license.

I wonder if VIX API doesn't support the free version ESXi. If so, how should I operate the VMs in code?

0 Kudos
6 Replies
DSTAVERT
Immortal
Immortal

Most script execute and write operations are disable in the free version.

-- David -- VMware Communities Moderator
0 Kudos
lamw
Community Manager
Community Manager

Here's more information about the read-only access and VIX access:

With the latest version of VIX (which has been fixed), it will not allow you to perform simple VM operations against ESXi 3.5 or 4.0 free version. Though, if you download VIX 1.6.2, you will have access to perform the simple VIX VM operation. Take a look at the thread posted above for more information, else as mentioned, the APIs are generally read-only with the use of free version of ESXi

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos
levinpeng
Contributor
Contributor

thanks.

what operations belong to the simple VIX VM operation? I am using VIX 1.7.

are 'power on', 'power off' and 'revert to a snapshot' the simple operations?

0 Kudos
lamw
Community Manager
Community Manager

Please read over the documentation and I just mentioned that anything other than 1.6.2 will NOT work

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

If you find this information useful, please award points for "correct" or "helpful".

levinpeng
Contributor
Contributor

thanks lamw.

it works with 1.6.2.

0 Kudos
levinpeng
Contributor
Contributor

I think the simple operations such as power on and power off shouldn't be disabled for the free version. Smiley Happy

0 Kudos