Upgrade to vSphere 6 perl SDK, SOAP errors

After the successful upgrade of vSphere 6u2, I can no longer run scripts API:


vmcreate.pl - url https://${vcenter}: 443/sdk / webService < parameters >

Results in:

Error creating the VM 'testVM ':

Fault SOAP:
-----------
Fault string: refused permission to perform this operation.
Fault of details: NoPermissionFault

I updated and tried the last SDK perl as well, the same error.

I have administrator rights on vCenter level, all objects of multiplication.

Suggestions more than welcome!

Thank you!

Just an update for those who also have this problem.

Looks for from vmcreate.pl API call requires privileges of grater on object of data than those fixed in vSphere 5.5 Center,.

I have documented more details in my blog. http://www.virtualflow.NET/2016/05/vSphere-6u2-permissions-vs-Perl-SDK-API-calls/

Hope that helps! This thread can be closed.

Tags: VMware

Similar Questions

  • vSphere 4 perl SDK with ESX 3.5?

    I start a project with the ESX 3.5, although we can upgrade to vsphere in a near future. Is it safe to use perl vsphere SDK with ESX 3.5 for now, or I'm better with the 1.6 VIPerl sdk until I can upgrade to vsphere 4?

    Thank you

    SDK for Perl 4.0 will work against ESX 3.5. There is a compatibility chart in the Installation Guide.

  • ticket MKS in Perl SDK - vSphere 4.1

    Hi all

    I try to write the script for AcquireTicket of MKS in perl SDK 4.1 vSphere

    Pleas see an attached Perl file.

    AcquireTicket info:

    http://www.VMware.com/support/developer/VC-SDK/visdk41pubs/ApiReference/Vim.virtualmachine.html#acquireTicket

    I have the answer:

    ./ticketmks.pl --server IP --username User --password Pass --vmname vm_name_fromvCenter --operation ticket
    Get AcquireTicket "vm_name_fromvCenter" ticket Type: mks ...
    Error:
    SOAP Fault:
    -----------
    Fault string: A specified parameter was not correct.
    ticketType
    Fault detail: InvalidArgumentFault
    

    What I am doing wrong?
    Why can I not get the MKS?
    Help, please

    The SOAP fault is always the more descriptive message, but usually when you get "a specified parameter was not correct", this means that you do not pass parameters to a method of giving. If you take a look at the reference for the API for the AcquireTicket() method, you will notice that it accepts a single parameter ticketType and it is of type string. Looking at your script, you try to instantiate the object VirtualMachineTicketType, which is incorrect.

    You must update the execution of the method as follows:

    My = $vm $task-> AcquireTicket (ticketType-online "mks");

    and must now return back VirtualMachineTicket

  • Cannot install VMware-vSphere-Perl-SDK - 5.0.0 on Debian

    HI -.

    I try to install the latest version of the SDK VMware Perl (VMware-vSphere-Perl-SDK-5.0.0-422456.x86_64.gz) on a Debian GNU/Linux "lenny" release.

    root: / usr/local/nagios/vmware-vsphere-cli-distrib #./vmware-install.pl
    Create a new vSphere CLI installer using the tar4 format.
    Installation of vSphere CLI 5.0.0 build-422456 for Linux.
    You must read and accept the vSphere CLI end-user license agreement for
    continue.
    Press ENTER to display it. q
    Do you accept? (yes/no) Yes
    Thank you.
    Cat: / etc / *-output: no such file or directory
    SH: rpm: command not found
    OpenSSL-devel is not installed on the system.
    OpenSSL-devel-0.9.7 is required for encrypted connections.
    Please install openssl-devel version 0.9.7 or higher.
    SH: rpm: command not found
    e2fsprogs is not installed on the system
    e2fsprogs-1.38 is required for the UUID.
    Please install e2fsprogs 1.38 or higher.
    root: / usr/local/nagios/vmware-vsphere-cli-distrib # dpkg-l e2fsprogs
    II e2fsprogs 1.41.3 - 1 ext2/ext3/ext4 file system utilities

    Clearly the Setup is broken.

    So, my question is - is the installer deliberately broken (IE, no support for Debian) or is it a perl error code that needs fixing?

    Thank you

    Chris

    As William, he will not be supported, but you can use the SDK Software VMware Perl quite easily on any platform of Perl (I did it with window as well).  I did specifically on Ubuntu and OS X over the years.

    Install the requirements of the module as shown in "vSphere SDK Perl Source Code installation on Linux".  In the source package, copy the folder VMware vmware vsphere-cli-distrib/lib/VMware/sharing of archive download Perl Linux SDK to your path to Perl.

    For required modules, you can use PPM, CPAN or apt get the packages.

    I ran this way for years without any problem, but this obviously isn't an official support statement

    You should be able to simply do not put a proxy during Setup.  It's there in case it is necessary to download the module dependencies.

  • Perl SDK - get/set vSphere 5.1 tags?

    My apologies if this has been requested and we responded, but I'm exhausted with the search.  5.1 introduced tags for the custom attributes, but I can't find a way to access the tags in the Perl SDK.  Am I missing something?  It has been extremely frustrating to have a new feature touted with great potential that is being wasted for most, appearing only in the web client.

    Thanks in advance!

    The new "Tagging" feature introduced in vSphere 5.1 is currently not available today in the vSphere API, you can use the new vSphere Web Client to run on the tags.

  • What is the difference between "vShpere SDK ro Perl"and "vSphere Web Services SDK (for Java or c#)"?

    Hello world! I'm new to "VMware vSphere API", and I have a question to ask you to help:

    What is the difference between "vShpere SDK ro Perl"and "vSphere Web Services SDK (for Java or c#)"?

    -What are the different programming language? Is there another difference?

    I'm looking forward to your reply.

    Thank you!

    If you are new on the VMware API/SDK, highly recommend you take a look at the following: Getting Started with vSphere SDK - Update for SDK 4.1 release

    vSphere SDK for Perl is just one of the many client SDK for vSphere API that is flush with vcenter times and ESX (i) as a standard Web service.

    vSphere SDK for Java - SDK Java to vSphere API for Java developers

    vSphere SDK for Perl - Perl SDK for vSphere API for Perl developers

    vSphere SDK for c# - c# SDK for vSphere API for c# developers

    PowerCLI - PowerShell SDK for vSphere API for developers of Powershell

    I hope that makes a bit more sense

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

    William Lam

    VMware vExpert 2009,2010

    VMware VCP3, 4

    VMware VCAP4-DCA

    VMware scripts and resources at: http://www.virtuallyghetto.com/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • Support for Perl SDK for ESXi vmclone.pl without vCenter

    I try to use version 5.5 of SDK Perl vmclone.pl.  I have an ESXi with VM Server I want to clone remote.  However, when I try to invoke the perl scipt, I get an error "Operation is not supported by the current agent.

    I was led to believe that the Perl SDK works on ESXi without vCenter Server.  Is this correct?  My mistake for another reason?

    vSphere SDK for Perl can run on ESXi and vCenter, this is just an interface with the API. However, in the case of cloning that is a feature, it is only exposed when vCenter Server is in the picture. You cannot issue a clone operation directly on an ESXi host and this is why the fault was lifted.

  • a few questions on the perl sdk

    I've been using perl sdk for 3.5.1 for awhile and I sued to connect with the virtual Center as follows

    Vim::login (service_url = & gt; "https://lbz0893/sdk/vimService", user_name = & gt;... .

    This no longer works on the new vsphere. can someone help me get started with this.

    (2) is there any sdk perl for Mrs. that I can use to create recovery plans and execute them?

    Thank you.

    In fact, there is an API of SRM , but there seems to be any client-side stubs. You may be able to use SOAP::Lite, however, not sure. The API is also quite minimal in its current form.

    =====

    Carter Shanklin

    Read the PowerCLI Blog
    [Follow me on Twitter |] http://twitter.com/cshanklin]

  • SQL Transaction Log Corruption since upgrade to vSphere 6.0

    Since we have upgraded to vSphere 6.0, we've received damaged trans errors in the log while taking transactions log backups of a SQL instance running on a virtual machine. The SQL error message is: backup detected corruption newspaper in the Department database. Context is arglist. LogFile: 2 "F:\Sqldata\Department_log.ldf" I can work around this problem by assigning to the DB SQL mode to Simple recovery, then again in full and taking a new backup complete, followed by a backup of logfile trans did it restart the chain. This error happens every night and seems to be launched by our nightly VM-level backups taken by CommVault who takes a snapshot, supports the VMDk and then deletes the snapshot. However, I can reproduce this problem without our backup solution by a storage vMotion followed of a backup in SQL of the transaction logs that will be error with trans log corruption. It was non-existent before the upgrade to vSphere 6.0 5.5. I have ensured that the VM tools are updated as well as the hardware version of the virtual machine. I hope someone has an idea of what could happen here because I am confused and would not go back to vSphere 5.5.

    The VM and vSphere news

    VM

    Windows 2008 R2

    SQL Server 2008 R2 - SP3 (10.50.6220.0)

    VM tools 9536

    VM hardware v11

    vSphere

    Blade C7000 enclosure with 3 x BL460c Gen8

    VMware ESXi, 6.0.0 2494585 (HP Custom image)

    Get your vSphere 6.0 servers patched as soon as POSSIBLE.

    The same thing happens to us, we had several SQL Server databases that have been become corrupted.

    This is a known issue with vSphere 6.0 that has since been corrected (I think it was related to snapshots and CBT).  The latest patch for vSphere 6.0/build is "ESXi, 6.0.0 2809209.

  • Perl SDK for VM API storage policy

    I understand that it has Java SDK API of VM storage, but we mainly use Perl SDK for vSphere for monitoring before any decision on the integration of strategies of VM storage and virtual infrastructure together in what I would like to ask if there is a plan to release Perl for Vm Storage Policy API SDK? Anoyone know what Perl SDK plan in this area is?

    Thanks in advance for any thoughts,

    DRB

    Well, anyone interested, so made myself... Thanks anyway!

    DRB

  • Deployment example vsphere-wssdk-provider of service error

    While other service samples were imported and deplayed OK, VSPHERE-WSSDK-PROVIDER generated this error:

    [16:17:24.489 2013-01-15] [ERROR] Installation of 64 - 127.0.0.1 TCP connection failed for 'com.vmware.samples.wssdkprovider' in ' 1.0.0 version".  [16:17:24.499 2013-01-15] [ERROR] 64 TCP connection - 127.0.0.1 cannot install the application of URI "file:/C:/VMware/vSphereWebClient/server/stage/vsphere-wssdk-provider.jar". "Cannot satisfy the constraints of in 'com.vmware.samples.wssdkprovider' release ' 1.0.0 '. Could not resolve: com.vmware.samples.wssdkprovider report of resolver: an import package cannot be resolved. Caused by the missing in the bundle constraint constraint:. "org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: unable to satisfy dependencies of the package 'com.vmware.samples.wssdkprovider' to release ' 1.0.0 ': could not resolve: com.vmware.samples.wssdkprovider report of resolver: an import package cannot be resolved. Caused by the missing in the bundle constraint constraint: to org.eclipse.virgo.kernel.install.pipeline.stage.resolve.internal.QuasiResolveStage.process(QuasiResolveStage.java:45) to org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessTree(StandardPipeline.java:62) to org.eclipse.virgo.kernel.install.pipeline.internal.CompensatingPipeline.doProcessTree(CompensatingPipeline.java:72) to org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipelineStage.process(AbstractPipelineStage.java:41) to org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessTree(StandardPipeline.java:62) to org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipelineStage.process(AbstractPipelineStage.java:41) to (org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.driveInstallPipeline(PipelinedApplicationDeployer.java:285) at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.doInstall(PipelinedApplicationDeployer.java:164) at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.install(PipelinedApplicationDeployer.java:136) at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(PipelinedApplicationDeployer.java:203) at org.eclipse.virgo.kernel.deployer.management.StandardDeployer.deploy(StandardDeployer.java:52) at sun.reflect.GeneratedMethodAccessor96.invoke (unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke) Method.java:597) to com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenReturn(ConvertingMethod.java:167) to com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:96) to com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:33) to com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208) to com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120) to com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262) to com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) to com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) to javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1454) to javax.management.remote.rmi.RMIConnectionImpl.access$ 300 (RMIConnectionImpl.Java :74) to javax.management.remote.rmi.RMIConnectionImpl$ PrivilegedOperation.run (RMIConnectionImpl.java:1295) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1387) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:818) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303) at sun.rmi.transport.Transport$ 1.run(Transport.java:159) at java.security.AccessController.doPrivileged (Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:155) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) to sun.rmi.transport.tcp.TCPTransport$ (TCPTransport.java:790) ConnectionHandler.run0 to sun.rmi.transport.tcp.TCPTransport$ ConnectionHandler.run (TCPTransport.java:649) to java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:886) to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)

    Did you follow the instructions in this sample? (located in vsphere-client-sdk/docs/samples-doc/vsphereviews.html#vsphere-ui)

    This example uses WSSDK library vim25.jar of the VMware, located in/vsphereviews/vsphere-wssdk-provider/lib. So that the blank server load this library during development it must first copied into the/server/repository/usr directory, see the FAQ 'How to use 3rd-party libraries' for more details. (The other library, commons-logging - 1.1.1.jar is already part of the repository Virgo.)

  • after upgrade to vsphere 5 - email does not send

    Hi all

    with vsphere 4 and ghettovcb, I had no problem in using the experimental feature of sending the mails after backup completion.

    Now after the upgrade to vsphere 5 and upgraded ghettovcb in the mail last version (esxi 5 incl. support), sent to the internal mail server lacks.

    Nothing else was changed.

    Error:

    2011-09-07 03:04:02 - info: = ghettoVCB JOURNAL END =.

    2011-09-07 03:05:17 - info: ERROR: can't send the log to 192.168.1.11:25 output to emailuser

    2011-09-07 03:05:18 - info: exit log by e-mail will not be erased and is stored in /tmp/ghettoVCB-email-474241.content

    Anything I could provide or check to fix this or help in any resolution?

    Can you check to see if the firewall is on, what's new with ESXi 5 and make sure that port 25 is open.

  • The implementation of RunProgramInGuest of VIX using the vSphere Web Services SDK?

    Hello

    A few months ago I developed a python API for VIX, but as I needed to extend the functionality of this API (performance monitoring, host management, etc.) I moved the vSphere Web Services SDK.

    However, I did find a way to implement some comments VIX as LoginInGuest or RunProgramInGuest functions using only the Web Services SDK.

    Is there a way to do this? I thought that each function VIX has been translated internally to a soap request, but now I think that is not the case for these functions of comments, if so, how VIX inwardly does them?

    Thanks for your help!

    Sebastian Tello

    Currently, if you must implement specific comments operations running a specific script/application or by connecting to a guest, you must use the VIX API. This feature is not currently exposed in the vSphere API, you will need to use a combination of both, until VMware them integrates in the vSphere API core. For more details on the future of VIX, take a look at this blog post - http://www.virtuallyghetto.com/2010/11/what-is-vmware-vix-api-and-its-future.html

  • Host CPU is Incompatible - car Upgrade to vSPhere 4

    We have 4 ESX host with identical hardware and CPU (they were purchased at the same time). Since the upgrade to vSphere 4 I can't using vMotion to migrate specific VMS between hosts.

    I get the error in the attached photo.

    Anyone has any ideas, I'm a bit confused because the CPU is all identical, I have even doubled checked with "VMWare CPU Info".

    HI Marc P

    You are probably affected by this specific bug ESX(I) 4:

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalID=1011294

    "VMotion stops working after upgrade to vSphere 4.0 with a host processor is not compatible error"

  • What I can do about it: after upgrading to firefox 6, I get this error. TypeError: Components.classes['@ [cid] is undefined?

    What I can do about it:
    After the upgrade to firefox 6, I get this error.
    When I click to open Firefox, a box opens with the following error message:
    JAVASCRIPT application
    TypeError: Components.classes['@ [cid] is undefined?
    When I click close in the box, then Firefox start. I just want to really get fixed error so that when I open firefox, I can't see this box.

    You need to understand what add-on is causing that error and disable it until the developer of this add-on fixes it. There may be an error on this issue in the Console error, accessible through the developer menu item Web or {Ctrl + Maj + J}.

    See also this:

    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+themes

Maybe you are looking for