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?
Most script execute and write operations are disable in the free version.
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:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
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?
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:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
thanks lamw.
it works with 1.6.2.
I think the simple operations such as power on and power off shouldn't be disabled for the free version.