VMware {code} Community
Graham9527
Contributor
Contributor

pyVmomi PowerOn Licence problem for VMware vSphere 7 Hypervisor

Hi,

We're trying to use Python's pyVmomi PowerOn function to power on virtual machine in VMWare Esxi 7.0.0 but got exception below.

error message: (vim.fault.RestrictedVersion) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
msg = 'Current license or ESXi version prohibits execution of the requested operation.',
faultCause = <unset>,
faultMessage = (vmodl.LocalizableMessage) [] }

 

Our license is VMware vSphere 7 Hypervisor.

ESXi version: 7.0.0

Does our license support PowerOn function?
Do we need to upgrade ESXi version to the newest version?
Could you help clarify this problem and provide the suggestion?

Thanks,

Graham

Labels (2)
Reply
0 Kudos
8 Replies
doskiran
Enthusiast
Enthusiast

vSphere 7.0 release is a major vSphere release.
All major vSphere releases require new license keys.
The existing 6.x license should not be valid for vSphere 7.0.

I observed the same error in my vCenter setup , after updating to 7.0 license it started working for me.

Refer below link if you are running pyVmomi directly on ESX:
 https://github.com/vmware/pyvmomi/issues/625

Reply
0 Kudos
Graham9527
Contributor
Contributor

Hi doskiran,

 

The following is our license on VMWare ESXi web, but it doesn't show the license version.

Graham9527_0-1661238118112.png

Do you know how to check the version of our license?
Do you have any command or where could I find my license version?


Thanks,

Graham

Reply
0 Kudos
doskiran
Enthusiast
Enthusiast

Command to check the ESXi license info:

~ # vim-cmd vimsvc/license --show

Reply
0 Kudos
Graham9527
Contributor
Contributor

Hi doskiran,

Here is our license information.

./vim-cmd vimsvc/license --show
[200] Sending request for installed licenses...[200] Complete, result is:
serial: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
vmodl key: esx.hypervisor.cpuPackageCoreLimited
name: VMware vSphere 7 Hypervisor
total: 0
used: 1
unit: cpuPackage:32core
Properties:
[ProductName] = VMware ESX Server
[ProductVersion] = 7.0
[count_disabled] = This license is unlimited
[feature] = vsmp:8 ("Up to 8-way virtual SMP")
[FileVersion] = 7.0.0.6

 

It seems our FileVersion(license version?) is 7.0.0.6.

Do we still need to update license?

 

Thanks,

Graham

Reply
0 Kudos
doskiran
Enthusiast
Enthusiast

This fault is the license check of API restrictions based on the product version.
Looks like the current license on the host doesn't have the vimapi feature or has expired.
 
> vim-cmd vimsvc/license --show | grep vimapi
     [feature] = vimapi ("vSphere API")

 

Reply
0 Kudos
Graham9527
Contributor
Contributor

Hi doskiran,

Does the new license have the vimapi ("vSphere API") feature?

If so, what version of license should we update to?

 

Thanks,

Graham

Reply
0 Kudos
doskiran
Enthusiast
Enthusiast

Hi Graham,

vimapi feature is not available in VMware vSphere 7 Hypervisor license.

Its available from VMware vSphere 7 Foundation / Essentials / Standard / Enterprise.. license 

Thanks,
Kiran

 

Reply
0 Kudos
Graham9527
Contributor
Contributor

Thanks for your clarification!

Graham

Reply
0 Kudos