Yippie!!

16
Nov/06
5

Well normally i try to keep my posts serieus, but sorry I have to express myself tonight. For months I have been wresteling with the VI3 SDK and was only able to write my own apps using PHP and Perl. Which is great, but does also limit what apps I can write for you guys (and girls?).

At VMworld I went to the session “vmotion – apples and oranges” or some thing like that where an engineer explained what features can be an issue for vmotion between boxes. So I asked what is the easiest was to find out what CPU features your actual servers support. The answer was disappointing, some story about inserting a floppy of cdrom in your physical server, rebooting????? and the small app will tell you. So they actually do expect you to go to all your servers with a actual physical notepad and write all those bits and bytes down and then later compare them. Yeah right.

Well I am finding out more and more that the VirtualCenter client is by far not using all the actual functionality of the VI3 product. One of the things the SDK does expose is for every physical server what kind of CPU it has and what features are available. You can even compare if one physical server might have different cpus. So, yes I could write a very easy application in Perl (using the perl toolkit) that shows you all the servers and their cpu features, high light the differences and asking you if you want to set a specific cpu feature mask for a group of selected virtual machines. All automated. Writing that application should take me about one hour. But then all you people need to be able to run that application, meaning you need to have perl installed, add some extra needed modules to perl, download the VI perl toolkit, compile the toolkit and run my small perl app. MMmmmm, far from user friendly. One other option would be to create a Virtual Appliance with linux, all modules installed, and you can just run that. That is easy, but come on, for a simple app, you need to download an entire Virtual Appliance?? mmm. a bit of over kill.

So I have been troubeling with this delimma and every time I think, let’s just write it in Visual Basic. A simple application environment to write win32 application (sorry C#, java, etc all to complicated for me). But how the freak do you program a soap webservice client in VB???? Well no help from VMware, as there are no VB samples and all VMware engineers are diehard C++ programmers, so forget about them touching a low live like Basic. For months I have been trying to get VB using a proper WSDL to work, with no luck…… (even google let me down)

til now!!!!!!!!!!!!!!!!!!!!!!!!!

Yippie, I can not express how happy I am. For 3 nights in a row I have been limiting my sleeping time on trying this challange. But I have done it. I have a working VB application running, where I actually understand the source code and wrote every single line of it myself, I have no slow delay problems (as many other people have using the WSDL file). WOW! Why did no one do this before??

So soon, on www.run-virtual.com, a new application “VmotionIT”, an application that will check physical server diffenrences and automates setting CPU bit mask on all your virtual machines :-)

I can finally go to sleep now, with a big smile on my face :-)

Now I can dream of all the other cool win32 apps I can write:

  • EasyESXSetup – An application that allows you to automate adding ESX servers in your VC environment, configure the right network settings, including enabling vmotion networks, nfs setup profiles, etc.
  • VM_DiskReporter – a win32 service that places and updates actual Virtual Machine disk information into VirtualCenter
  • wmkusage – but then win32 :-)
  • mmmm much to do… need to request a holiday i think :-)

    Sweet dreams.

    Comments (5) Trackbacks (0)
    1. Andrew Phoenix
      11:46 am on November 30th, 2006

      It’s good to hear that somebody has taken the time to look through the SDK. I’ve just started to look into it myself but not being a natural application developer I am finding myself a bit lost in the detail. I work with a bunch of developers but they are only interested in .NET at the moment and not to forth coming with my challenge. So hoping you might be able to help me out with some basic pointers or at least some examples of what you been working on and I can try and build on that..

      Cheers….. :)

    2. Erik Streight
      8:24 pm on December 4th, 2006

      Any chance you have been able to work on building an app to add an ESX host to inventory yet? I have a situation where VirtualCenter is “clustered” (using auto-start) across two different subnets and when it is failed over the admin needs to manually reconnect ALL of the hosts to inventory… seriously painful. A nice front end that allows one to choose the list of hosts from a selectable list, provide the credentials (once), and click execute would be a breath of fresh air :-)

      I too would be very grateful for some examples of your work to give me a leg up on getting some of these types of apps published here.

      Thanks!
      Erik

    3. Jeremy van Doorn
      2:35 pm on December 9th, 2006

      Erik,

      In the VI Perl Toolkit there is a sample that allows you to add hosts to an environment. Just download the toolkit and look for a sample called hostops.pl (or something very similar to that name). This has the option to add a host to your environment.

      Best regards,

      Jeremy

    4. Eric Sloof
      2:44 pm on April 24th, 2007

      I am a huge fan of the website run-virtual.com, on November the 16th 2006 Richard Garthagen yelled Yippie!! in one of his posts and that was for a reason. Richard was able to talk to VirtualCenter via SOAP with his own Visual Basic application. On November the 21th he published his first application with the name VmotionInfo. That was the eye opener for me. I immediately visited the vmware.com website to get my hands on as much SDK info as possible. Unfortunately the VB example folder was empty. During the next months I was struggling with C# and Googeling like crazy but my VB application could not communicate with VirtualCenter. In the beginning of April 2007 I attended the TSX in Nice and got up early to visit the VI3 Perl SDK lab hosted by Jeremy van Doorn. Afterwards I interviewed Jeremy and asked him if VMware is going to release the SDK examples for Visual Basic. His answer was that it will be released this year ? This year I thought. I want to start writing my apps write know. This week I had a breakthrough, only slept for a few ours last night but it paid off. My Visual Basic application is communicating with Virtual Center and “logging on” takes an eye blink. Yippie!!! I only have till Friday to work on my first app because after next weekend I am delivering the VI3 Install and Configure training in The Hague and Eindhoven so I decided that I am going to share my invention. I am going to write a complete “how to” and will publish all the source code and VB project files on my website http://www.ntpro.nl. Stay tuned.

    5. Bill Sheets
      5:37 pm on July 10th, 2008

      Please, please tell me you finished VmotionIT??? I really need it since we are expanding our clusters with new hardware and, of course, new processors. VmotionIT is exactly the product I need to keep Vmotion working for our 300+ VMs.

    Sorry, the comment form is closed at this time.

    No trackbacks yet.