Here is a bit of interesting evidence to help you get to the heart of the problem. I took your command and changed the variables to match a configuration in the lab, here is the command I used:

./vmcontrol.pl --server 152.14.17.230 --username root --password password_here --operation poweroff --vmname vdc

This command successfully turns on a host when executed on a linux box wit viperl installed and running from the /usr/lib/vmware-viperl/apps/ vm/ directory.

Here's another consideration, when I look at at the Licensed Features of my ESX 3i servers, I don't have any "Add-Ons," but I notice that yours have VMware Consolidated Backup which is installed with the "Evaluation License," when one first turns on an unlicensed ESX 3i box. When the license file from vmware.com is installed, it removes this Add-On capability. Yours is not removed, so this leads me to believe that your license configuration is not correct.

Have you reproduced the problem on a different physical hypervisor?
When licensing an ESX server, what exactly is your procedure?
There is a prompt you are asked for during the licensing process, what is your response to that?

In short, take another look at it, because that command works great on our end, and we're using commodity ESX 3i with a license from vmware.com

Best,
Brian


Brian Bouterse
Secure Open Systems Initiative
919.698.8796




On May 17, 2009, at 9:22 AM, 杨杰 wrote:

There are two conditions:
1. The free license is installed correctly( which has been confirmed today).

When checking the licensed features, i get the information as follows:

Licensed Features


Licensed Source

Serial Number:     [the SN got from the website]


ESX Server Edition

ESX Server Standalone       Licensed for 2 CPUs

 NAS Usage

 iSCSI Usage

 Up to 4-way virtual SMP

 SAN Usage


Add-Ons

[Nothing here because no addons are installed]


On the condition, the CMD i typed and the ERROR is:

[r...@management vm]# ./vmcontrol.pl --server 192.168.4.202 -- username
root --password xjtudlc --operation poweroff --vmname Redh5


Error in 'Redh5' under host esxi2.p12.edu.cn: VM 'Redh5' can't be powered
off


SOAP Fault:

-----------

Fault string: fault.RestrictedVersion.summary


2. No license is installed:

After the former operation, i deleted the license and checked the licensed
features, i get the information as follows:

Licensed Features


Licensed Source

    Evaluation    30 day(s) remaining



ESX Server Edition

ESX Server Standalone       Licensed for 2 CPUs

 NAS Usage

 iSCSI Usage

 Up to 4-way virtual SMP

 SAN Usage


Add-Ons

VMware Consolidated Backup   Licensed for 2 CPUs


Then i started the vm with the VIClient and executed the same cmd through the remote command console. The operation is successful without any error or
warnings. The target vm is also stopped as the cmd.

We have checked the installation of the license and the error is indeed
here. i dont know how to solve it.


virtual machine 'Redh5' under host esxi2.p12.edu.cn powered off
2009/5/16 Brian Bouterse <[email protected]>

The ESX 3i license given to you from the website, is that installed? You can check under Configuration -> Licensed Features to make sure you have
your stuff licensed for N CPUs.

I've used vmcreate and vmcontrol operations with the ESX 3i and it worked fine for me. Could you provide the commands which are problematic? I don't
see them in the e-mail thread below.

Best,
Brian


Brian Bouterse
Secure Open Systems Initiative
919.698.8796





On May 15, 2009, at 11:11 PM, 杨杰 wrote:

HI, I have one more question, which is a problem in our experiment. We are
now using the esxi with free license. When trying to take the operations like vmcreate or vmcontrol, we receive an error command saying that we are
trying a restricted operation. The cmds are as shown:

Error in 'Redh5' under host esxi2.p12.edu.cn: VM 'Redh5' can't be
powered
off


SOAP Fault:

-----------


Fault string: fault.RestrictedVersion.summary



The question has been submitted to the mailing list some days before. As the reply, we confirmed the reason on the both conditions of non- license
and
free-license, but the operations still succeeded without license and
failed
with a free license. Some discussions in the vmware official forum show
that
the free license is restricted from modification operations.

Have you encountered the problem ? And is there any way to solve the
problem
?


--
Yang Jie(杨杰)

Team of MRMSS, Xi'an Jiaotong University

Department of Computer Science and Technology, Xi’an Jiaotong University

TEL: +8613468883723;029-82665263 EXT.24

MSN: [email protected]

E-mail: [email protected]
Laurence J. Peter<
http://www.brainyquote.com/quotes/authors/l/laurence_j_peter.html>
- "Originality is the fine art of remembering what you hear but
forgetting
where you heard it."





--
Yang Jie(杨杰)

Team of MRMSS, Xi'an Jiaotong University

Department of Computer Science and Technology, Xi’an Jiaotong University

TEL: +8613468883723;029-82665263 EXT.24

MSN: [email protected]

E-mail: [email protected]
P. J. O'Rourke<http://www.brainyquote.com/quotes/authors/p/p_j_orourke.html >
- "Never fight an inanimate object."

Reply via email to