VMware {code} Community
red0mark
Enthusiast
Enthusiast

Looking for sample C++ code to create a vm guest

I'm looking for some sample C++ code that creates a vm guest. Anyone work with gSOAP and C++?

Thanks,

-Ron

6 Replies
lamw
Community Manager
Community Manager

You can try browsing around Code Central: http://communities.vmware.com/community/developer/codecentral to see if there are any examples but I don't believe there are much for C++, there are plenty for C#.

If you're new to the VI/vSphere API, this thread will be a good starting place for gSoap & C++ integrate with the VMware API's

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

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

If you find this information useful, please award points for "correct" or "helpful".

heyitspablo
VMware Employee
VMware Employee

We dont really support C++ ;( but we have seen a lot of people use it and were generaly happy with results,,,, Is there a lot of interest in using C++ from the wider community ?

-P

Keep up with latest info on vSphere PowerCLI http://blogs.vmware.com/vipowershell - Follow me on Twitter @heyitspablo
0 Kudos
red0mark
Enthusiast
Enthusiast

I'm not sure how wide the interest is for C++ but for application developers that need to use the VI API(s) it's high on our list. We will need both a Java interface and C++ interface. The C# interface is to limiting for our multi-platform applications.

0 Kudos
hubs
Contributor
Contributor

Provided some other VMware API like the VDDK are made in C, well YES there is a real need for C/C++ which has the advantage to be portable and not dependent on an interpreter (java, C#).

0 Kudos
pk2006
Enthusiast
Enthusiast

I also agree there seems tobe not good support for web service using C++. There should be samples to get started accelerated fashion.

0 Kudos
sgupta12345
Contributor
Contributor

Hi..were you able to Create VM using c++? I have been able to establish a connection and list the available VMs.

0 Kudos