VSphere APIs and compatibility ESX

I've implemented the backup of a VMWare VM and application of recovery with vSphere API and VDDK. The development has been done entirely on 5.0 ESX servers. The following discussion provides an overview of how I implemented the restoration.

http://communities.VMware.com/message/2130483#2130483

When another person has tested my application, he noted the rollback feature does not work. When I've debugged, I found parameter spec unit to CreateVM_Task behaves differently 5.0 Esx to Esx 4.0. In the case of Esx 5.0, it works perfectly, where as in the case of Esx 4.0, none of the devices that I fill before the CreateVM_Task is created and the restore fails because of this.

How can I understand the compatibility of the Esx and the vSphereAPI versions? I assumed that the SDK should be retro-compatible with Esx Server? Can someone shed some light how this problem can be solved?

Thank you

. / Siva.

Hi Siva,

That sounds good, maybe, we'll get you going even faster than I expected:

As already noted William

lamw wrote:
but in general, the more recent editions of vSphere will support previous editions of vSphere. vSphere 5.1 supports vSphere 4.x and 5.0

the only thing being that if new properties are added to a data in 5.1 object then you can not use in 4.x or 5.0.

It seems to me that your code is based on 5.0 WSDL generated by gsoap stubs. It is ultimately you generate SOAP requests that are supposed to work with 5.0, 5.1, 6.x one as well now. Yet, when he delivers the SOAP messages to 4.x, it is likely that you include a property that is not defined in the WSDL of 4.x.

Attached is a diff of the definition WSDL VirtualMachineConfigSpec of 4.0 to 5.0 Quick. Look at line 27 and following


27              
====
      !>      
====
28              

Here, you can see that numCoresPerSocket property was not available in 4.0, but was added in 5.0. It is also what we said the documentation centre: for vSphere API 5.0.

You declare that numCPUs is affected but memoryMB not. Between the two numCoresPerSocket has been inserted to 5.0. It seems that the 4.0 Server reads your VirtualMachineConfigSpec until numCPUs then encounter numCoresPerSocket and abandoned.

So far my theory.

What I don't understand is that this seems to happen in silence as you don't declare any exception. Yet, says William

wlam wrote:
As you know, there will be new properties in new versions of vSphere such as 5.1, that if you try to assign to an older version of vSphere, it will throw an unknown error...

As you can learn from the attached diff we serveral more properties that have been added to the 5.0. Might well want to comment on all those in your current code and re-run CreateVM_Task against server 4.0.

Perhaps this might solve the problem.

Tags: VMware

Similar Questions

  • Linked Clone with vSphere api and VIClient 2.5

    I'm trying to create Clone bound using vSphere Web services api (c#) and it always end like full clone.

    My question is, is it possible to create Linked clone using vSphere api with VIClient 2.5.

    I know that vShpere supports version 2.5 VIClient. vShpere has the ability to create Linked clone.

    I try to know why it does not create Linked clone from my environment.

    I am ready to explain if you need more details.

    Thank you.

    Yes, you can vMotion Linked Clones... sVmotion may work, but I have not tested, probably not a good idea to move them.

    Don't forget to assign points if you found useful answers

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

    William Lam

    VMware vExpert 2009,2010

    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".

  • Possibility of setting up new vSphere 4 and pass the ESX 3.5 hosts?

    The upgrade path makes me nervous (am I too paranoid?).

    In any case, I have enough material and storage SAN to configure a new vSphere environment.

    Is it possible to install a new enviornemnt and separate vSphere 4 and then migrate the 3.5 environment hosts? The doc has always start with VC upgrade to version 4 and be careful not to break stuff...

    I actually finished a project a few days ago in this respect. I deleted the machine virtual old inventory, moved with the former VM of the LUN to the storage for the new environment group and added to the inventory again. Of course, if you do not use the same storage, it will be more in depth, but it certainly can be done. The plan was to do what weinstein said in his post, regarding the old host to the new Victoria Cross add, but I move the first LUN and had to finish like I did. It went well and I don't have problems with the virtual machine again.

  • Supported and compatibility against Win Server 2008R2 and Win Server 2012R2

    Hey VMware,

    I'm looking for some information like support and compatibility of the product for Win Server 2008R2 and Win Server 2012R2 platforms below.

    Here is the application name and version:

    VMware vSphere Client 4.1.0.32733

    VMware vSphere Client 4.1.0.17435

    VMware vSphere Client 4.1.0.14766

    VMware vSphere Client 4.1.0.12319

    VMware vSphere Client 4.1.0.34274

    Please provide the results of the support and compatibility for above mentioned OS platforms, also you can provide details if all other support/contact channels are available.

    Thanks in advance.

    VMware KB: Supported operating systems hosts for vSphere Client (Windows) installation

  • VSphere API is available in VMware vSphere Essentials Kit?

    Hello

    TL; DR: I would like to know if the vSphere API is available in VMware vSphere Essentials Kit.

    We evaluated VMware vSphere to build an environment very small test & dev to work. Since vSphere worked well during our assessment, we will buy vSphere licenses.

    We only need to operate a single ESXi host and we don't much care our virtual machines because they are used for testing only. Thus, we don't need features such as vMotion.

    However, take us pictures and we depend on the vSphere API, because we use pyVmomi to administer our virtual machines.

    Because we only run an ESXi host, need for API vSphere vCenter but did not need features such as vMotion, I think that the Kit Essentials fits our needs. But I'm not sure it provides the vSphere API. If anyone can confirm?

    Kind regards

    Yes, vSphere API are available in the Essentials kit.

    Please see KB

    Ref: KB VMware: vSphere 6.x products offer

  • vSphere replication and RDM

    Hello

    I have a site that I put in place which has Windows 2012 R2 invited with RDM in physical compatibility mode.  When I go through the wizard of replication vSphere for these servers I can configure replication for the comments and as expected I can not set up for the RDM (which is fine, I have those covered by the SRA) but on the last stage it errors with the following:

    Configure a virtual machine for replication

    VRM Server runtime error. Please check the

    documentation for troubleshooting information. The

    detailed exception: "HMS can't put disc UUID for"

    VM disks: ManagedObjectReference: type =

    VirtualMachine, vm-34 = value, serverGuid is C5ABE757 -.

    9697-4C6A-A36B-F98F72EFB5GG'.

    Contoso\tdaley

    VC1.contoso.com

    02/09/2014 14:49:40

    02/09/2014 14:49:40

    02/09/2014 14:49:41

    Is it not possible to ignore the RDM or is not my problem?

    Thank you

    Thom

    Physical RDM mode is not supported by vSphere replication and there is a known issue, you cannot configure replication for VM with RDM physical mode even if you exclude this record of replication.

    Check the release notes: VMware vSphere replication 5.5.1 Release Notes

    Cannot configure a virtual machine with disc RDM in physical mode even if the disk is excluded from replication.

    If you configure a replication of a virtual machine with the physical mode, the following error message may appear:

    VRM Server generic error. Check the documentation for any troubleshooting information. The detailed exception is: HMS can not set disk UUID for disks of VM : MoRef: type = VirtualMachine, value = , serverGuid = null'.
    

    Workaround: No.

  • feature of vSphere API licensed on vSphere Essentials kit

    I have a few doubts about the level of licesement to apply to our laboratory. We do snapshots via API against our stand-alone ESXi, so we need the "vSphere API' active feature. Is this feature included on the license "vSphere Essentials kit '?

    Thank you.

    Hello

    all editions of vSphere paid has full access to vSphere API only vSphere Hypervizor free edition is limited to only read the API.

    If you need backups through third-party solutions 3rd you will need API vStorage for the Protection of data which is also included

    overall paid kits and vSphere editions.

    Detailed Essentials see features:

    http://www.VMware.com/files/PDF/products/vSphere/VMware-vSphere-Essentials-kits-datasheet.PDF

    Concerning

    P.

  • Question so that the migration of the VM using the vSphere API

    Hello

    I am having some problems during the migration of a virtual machine using vSphere SDK.

    I have install the vSphere environment as there are two hosts esxi installed on different physical machines with multiple virtual machines above them.

    Now I want to migrate one say the virtual macines VM1 fron host1 to host2. I did it via vCenter uses the vSphere client and it worked fine. Now, I have to perform the same task using the vSphere API. For this I use the template of "VMotion" located in the com/vmware/vm directory. I run the command as follows:

    targethost $ run.bat url username password, shows targetpool

    I'm not sure of the targetpool argument and I need advice on what I need to specify a name of pool of resources here. Acorrding to:

    http://www.VMware.com/support/developer/VC-SDK/visdk400pubs/ReferenceGuide/Vim.virtualmachine.html#migrate

    If the pool parameter remains disabled, current pool of the virtual machine is used as target the pool. I tried specifying the pool of resources such as:

    [- targetpool]

    but it gives the error:

    Error: List of resources target not found.

    Looking forward to all the advice. Thank you.

    Even if you do not have resource pools, it is actually a 'root' list of resources"which will be still exists. Try to specify 'Resources' as the name of the targetpool and allow you to migrate your VM.

  • vSphere 5 and local IIS Web server

    Hi all

    Sorry for my English, I'm Italian and I'm new to this community, but I have a problem with my vsphere 5.

    I created a host with vsphere 5, inside of this host, I have 1 Small Business Server 2011 Microsoft VM and 2 virtual machines Windows 7 Professional.

    Infrastructure is:

    1 Fritzbox router attached to an hp proliant server.

    Inside of the server I have 5 and within esx esx vmware, I have 3 virtual machines

    Now, I have installed a local Web server in 1 virtual machine with Windows 7 Professional and IIS 7

    I have a static IP and I have configured the router to forward traffic from the static ip address to my internal LAN to a specific IP (the ip of my local web server)

    I open in my router port 80 for web traffic and open port 80 also in my firewall windows 7, but when I try to join my vm from the outside, the local web server virtual machine does not work. Is there any configuration, I need firewall configuration ESX?

    Thanks a lot for the replies

    Valentina Bombelli

    To the internet:

    Telnet 80 using a Windows command prompt. It seems that you do not specify a port 80, as it is said "... port 23, failed connection.

    / Rubeck

  • vSphere API, PowerCLI... on free ESXi, vCLI, vMA

    Hi friends:

    Is there any script tool for ESX (vSphere API, vMA, vCLI, PowerCLI,...) available in the free version of ESXi 4.0?

    Thank you!

    You can use vCLI but most of the commands are not available without at least Essentials license.

    http://blog.peacon.co.UK

    Please give points for any helpful answer.

    Unofficial list of transfer USB devices work

  • Mix of ESX 3.5 and VMware ESX in the same cluster

    Hello

    I'm currently involved in ESX 3.5 Migrating virtual machines to a new vSphere environment.  All ESX 3.5 hosts running on obsolete kit and will be decomm had at the end of the project.  All hosts are managed by the same server vCenter.

    The only problem is, I have to add an additional ESX4 server, but there is not enough available physical switch ports.  I have decomm one ESX3.5 servers in order to free ports, but they run at 2 knots, and I will lose redundancy if a hardware problem arises.

    My proposed Solution: -.

    I think decomming ESX3.5 host 1 and move it to the new vSphere cluster.  The type of brand/model/CPU is different between the old and the new servers and I am not concerned by VMs DRS'ing between 2 environments, however, I understand that I have would be protected by HA if anything disastrous happened.  All hosts are connected to the same storage.

    You don't see any problem with that?

    You can have a mixed cluster, but this must be managed by vCenter 4.x.

    And you also need a license for the former hosts of 3.x server.

    HA will work.

    If the CPU is compatible VCA, then as VMotion, DRS, VCA will work.

    André

  • What is the main difference between VMware vSphere 4 and VMware Infrastructure 3

    Hello friends,

    What is the main difference between VMware vSphere 4 and VMware Infrastructure 3?

    Kind regards

    Mustafa Rashid

    Take a look at the following documents, there are so many out there:

    http://communities.VMware.com/community/VMTN/vSphere (there is a new features pdf doc)

    http://blogs.VMware.com/VMTN/vmware_infrastructure_3/

    http://www.VMware.com/products/vSphere/small-business/features.html

    http://www.yellow-bricks.com/2009/04/21/vSphere-linkage/

    Here twopages which shows some of the different features and takes what licenses are supported which: http://www.vmware.com/products/vsphere/buy/editions_comparison.html and http://www.vmware.com/products/vi/buy.html

    Yet once if you just browse some of these links, you will get everything you are looking for and the wait is the product GA will tomorrow so look on release notes, etc.

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

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    http://Twitter.com/lamw

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

  • Issue of Python API and profile of Stimulus

    Hello

    I am using IronPython with Visual Studio 2010 to create automated tests of a PXI system I have. Most of my knowledge API (and Python) so far has been coming to this thread of Iron Python . Although very useful. I am not able to get the parts of profile of Stimulus work. I have command over the line, forcing the acquisition of basic data output voltage, but I was hoping that use the far more high-level control provide by VeriStand.

    My methodology so far has been 1) create a profile of Stimulus in the Editor (something simple like a shifted sine wave) 2) I do not specify a specific channel in the profile (because I want to use the same waveform on several channels, in order) 3) record 4) Point the Python script to the sinewave.nivstest of the file Run 5). Is there something wrong with this process?

    The problem is that 'running' is really doing nothing. I'll have to study this more within my reach, but the result is something (it begins almost at work!) but for something that should be hard about 20 seconds, it ends immediately after the first 'blip '.

    I use Iron Python 2.7, VS 2010 Shell. If it's important for some reason, I use a custom material OR and card FPGA DAQ. And I would say force SetChannelValue (X) works for all outputs.

    Thank you very much!

    It's probably because you're playing a stimulus that has no mapping. The same thing happens if you specify a mapping in the profile?

    Unfortunately, there is no API in NI VeriStand in 2010 to change the mapping. So that's all that you specify when you create with the GUI. However, the nivstest file is actually just XML so that you can use any XML parsing and API for editing to change the mapping. If you don't want to use an API for XML editing, you can try to use the technique in the VI posted on this thread to change the mapping.

  • Download pots API and source

    Is there a place to download the API and source of pots for the lib of RIM? I find the API behind online a lot, and it would be good to have a source JAR to work in my IDE.

    The BlackBerry development environment is not a platform open source so RIM does not publish the source for what in the net_rim_api.jar.  They include that jar in the jde/lib directory, so you can compile against this in your IDE.  They also include the javadocs in the jde under docs/api directory download (so late on, you mean slow access on the net).

  • Automation and scripts data flow using ODI API AND SDK in Oracle Data Integrator (ODI) 11g

    Hi team,

    We have a requirement of scripts and automation of stream using ODI API and SDK. The requirement must use source ODI API and SDK to target cards in Excel (mapping map) is read and can use the SDK to create interfaces for Excel sheets. I am a novice to Groovy and Java script. Please help me on what should be the approach.


    I am able to create individual objects of ODI as 'Projects', 'Models', 'Interfaces' and 'Packages' by using the 'Groovy' editor that comes with ODI 11 g.

    Thank you very much in advance!

    Best regards

    Dos Santos.

    Take a look at the post by Dave Allen who will in the sense of what you're trying to achieve:

    https://blogs.Oracle.com/warehousebuilder/entry/odi_11g_interface_builder

Maybe you are looking for

  • Why Firefox keep resetting my homepage to Google? I DON'T LIKE TO HAVE TO ADDRESS WHY EACH TIME I PULL UP OF FIREFOX

    I don't want Google as my home page, or use it as my default search engine. WHY IS that Firefox is constantly reset my homepage to Google? I hope no more Google, so I DON'T want TO HAVE IT as MY HOMEPAGE. It's really pissing me off to have to return

  • Toshiba Places Notifications will appear on the screen

    Hello. Can anyone help please?When I click on the flashing icon for Toshiba Places my notifications appear off the screen (lower-right) and I can't read them. I don't see the beginning of the window and the first 2 letters of the message. Thank you i

  • RAM upgrade for HP-G064NL laptop

    Hello everyone! My question is simple. Is it possible to upgrade the RAM in my laptop HP - G064NL 4 GB to 8 GB or more? If it is possible, how can I do this? Thank you.

  • Create application communicating with smartphone BlackBerry PlayBook

    I want to build apps PlayBook that communicates with the smartphone BlackBerry. For example, create the document or something using BlackBerry smartphone while I'm out, change it with PlayBook when I went back to the office. My questions are: * PlayB

  • UI messed up on Storm

    My application works well on BlackBerry non-touch screen devices. But problems happened on Storm. 1. I customized my own ScreenManager and use int screen_width = graphics.getScreenWidth(); to get screensize, however, the screen width and height that