VMware

This Question is Answered

2 "helpful" answers available (6 pts)
16 Replies Last post: Nov 4, 2009 1:11 AM by paul_xtravirt   1 2 Previous Next

ovfManager and obtaining reference to posted: Nov 2, 2009 1:51 PM

Click to view paul_xtravirt's profile Hot Shot 162 posts since
Feb 16, 2007

I have been trying to use the OVFManager through the SDK to import an OVF VM. I am using vb.net and c#. However, I cannot see how to connect to the OVFManager (cannot see it anywhere).

Does anyone have some example code on how to do this?

Re: ovfManager and obtaining reference to

1. Nov 2, 2009 2:25 PM in response to: paul_xtravirt
Click to view lamw's profile Champion 2,803 posts since
Nov 27, 2007
You'll need to get a reference to the Service Content to get access to the ovfManager as explained: http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.OvfManager.html

There's actually quite a bit you need to implement to either export or import VM in ovf. Let me see if I can find the thread that had all this info


=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
vGhetto Script Repository
VMware Code Central - Scripts/Sample code for Developers and Administrators
VMware Developer Comuunity
Getting Started with the vMA (tips/tricks)
Getting Started with the vSphere SDK for Perl
Twitter: @lamw

http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

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

Re: ovfManager and obtaining reference to

4. Nov 2, 2009 5:04 PM in response to: paul_xtravirt
Click to view lamw's profile Champion 2,803 posts since
Nov 27, 2007
I assume you're using vSphere? I believe the OVF manager might only be available with vCenter ... not 100% sure, you might want to double check to see which system you're connecting to.

=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
vGhetto Script Repository
VMware Code Central - Scripts/Sample code for Developers and Administrators
VMware Developer Comuunity
Getting Started with the vMA (tips/tricks)
Getting Started with the vSphere SDK for Perl
Twitter: @lamw

http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

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

Re: ovfManager and obtaining reference to

5. Nov 2, 2009 7:33 PM in response to: paul_xtravirt
Click to view AngelaS's profile Enthusiast 43 posts since
Sep 28, 2009

Hi,

OvfManager is the new managed object which has been added in vSphere. So, if you are using SDK 2.5 or earlier, this managed object would not be available. Please refer to vSphere API reference guide for the complete list of new managed objects that has been added since vSphere 4.0.

http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/index.html

OvfManager is available both through vCenter and ESX 4.0. You can also crosscheck through MOB if the OvfManager managed object is set or not, by connecting to vCenter or an ESX 4.0.

Hope this helps.

Re: ovfManager and obtaining reference to

9. Nov 3, 2009 4:59 AM in response to: paul_xtravirt
Click to view AngelaS's profile Enthusiast 43 posts since
Sep 28, 2009

I wanted to check that are you using vim 2.0 namespace to connect to the vSphere server?

As mentioned earlier, the OvfManager is the new managed object that has been added in vSphere. So, all the new managed objects are defined in vim25 namespace and this vim 25 is also backward compatible with vim 2.0. So please doublecheck on this.


Re: ovfManager and obtaining reference to

11. Nov 3, 2009 5:40 AM in response to: paul_xtravirt
Click to view AngelaS's profile Enthusiast 43 posts since
Sep 28, 2009

You need to use Vim25Service.dll, Vim25Service.XmlSerializers.dll in order to use OvfManager as these dlls correspond to vim 25 namespace. From your attached dlls i can make out that you using vim 2.0 namespace only. Please refer vSphere developer's setup guide on how to compile the correct version dlls and also make sure you are using the vSphere SDK GA release.

http://www.vmware.com/support/developer/vc-sdk/

Hope the information is helpful.

Re: ovfManager and obtaining reference to

14. Nov 3, 2009 3:11 PM in response to: paul_xtravirt
Click to view c_shanklin's profile Master 754 posts since
Dec 3, 2007
Paul,

I think your best bet is to break out wireshark and see how vSphere Client does it. This particular interface is one of the hardest ones to deal with.

=====
Carter Shanklin
Read the PowerCLI Blog
Follow me on Twitter

Developer Social Media

Communities