Skip to content

Category Archives: VMware

How to run Java samples from VMware SDK on Ubuntu 10.04

There are subtle differences in all Linux platforms and when I got to run VMware SDK Java samples on Ubuntu 10.04 I found there is something that is worth to share in addition to my first post about it. First of all, there are very convenient “default” packages for JRE and JDK that have openjdk-6-jre [...]

How to Assign Task Description

In one of comments the following code did not set a task description (shown in vSphere Client in Details column): LocalizableMessage lm = new LocalizableMessage(); lm.setMessage(“Hello World”); myTask.getTaskInfo().setDescription(lm); The problem is in missing key property of the newly created LocalizableMessage: it must be assigned from the task itself. This is how it’s suppose to be [...]

VMware Host IP Address

VMware host IP address is something of a phantom property: everybody knows it exists and use it all the time, but nobody knows where it is. Well, this is probably because its location in the model changes depending on the host version and current network configuration. This is how I get it. 1. For ESX [...]

How to Retrieve Task Info

This is how to retrieve a task info in you have the task MOR: ObjectContent[] objs = connection.Service.RetrieveProperties( connection.ServiceContent.propertyCollector, new PropertyFilterSpec[] { new PropertyFilterSpec() { objectSet = new ObjectSpec[] { new ObjectSpec() { obj = taskMOR } }, propSet = new PropertySpec[] { new PropertySpec() { all = false, allSpecified = true, type = “Task”, [...]

VMware APIs

Currently there are a few APIs and this post is a short summary of them. – vSphere Web Services SDK a.k.a. VMware VI API, last version is 4.0, released May 21st, 2009. This is a SOAP over HTTP/S protocol that exposes everything you can do on a virtual data center: configure resources, manipulate with virtual [...]

How to run Java samples from VMware SDK

VMware SDK a.k.a. vSphere Web Services SDK 4.0 comes with Java and C# samples. This is what it took me to get them running on Ubuntu 8.10. 1. Download the SDK from vmware.com into a separate directory: > mkdir vi-sdk-4.0.0-161137 2. Install Java and Axis: > apt-get install sun-java5-bin sun-java5-demo sun-java5-doc \ sun-java5-fonts sun-java5-jdk sun-java5-jre [...]

Soft & Virt is Digg proof thanks to caching by WP Super Cache