VMware Cloud Community
DanielOatesLee
Contributor
Contributor

Powercli and ESXi

It might be a stupid question, but why doesn't Powercli 6 allow me to add new VM's on a ESXi 6.0 hyper visor?

I keep getting the following error;

PowerCLI C:\> new-vm -vmhost 10.0.0.200 -name dc02 -Datastore DataStore1 -DiskMB 10240

new-vm : 18/02/2016 22:11:36    New-VM        Current license or ESXi version prohibits execution of the requested

operation.

At line:1 char:1

+ new-vm -vmhost 10.0.0.200 -name dc02 -Datastore DataStore1 -DiskMB 10 ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [New-VM], RestrictedVersion

    + FullyQualifiedErrorId : Client20_VmServiceImpl_NewVM_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM

Has anyone else seen this?

0 Kudos
3 Replies
vMarkusK1985
Expert
Expert

Are you using free ESXi?

API usage is restricted in this Edition.

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
0 Kudos
DanielOatesLee
Contributor
Contributor

Yes, I am using the free version of ESXi.

I didn't realise there were API restrictions, I will have a read about them thanks.

0 Kudos
grasshopper
Virtuoso
Virtuoso

Hi DanielOatesLee,

Keep in mind that you can also use the 60 day evaluation which unlocks all enterprise features.  It's common for learning and practice to grab a new key every 60 days and reinstall ESXi and point to your existing VMs again.  Just an option, and VMware doesn't mind that.  You need to use a new email every time though.

The best option though is VMUG Advantage which gets you licenses and a bunch of other goodies:

https://www.vmug.com/Advantage

0 Kudos