VMWare Plugin - Linux

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

VMWare Plugin - Linux

Keith Kowalczykowski-2

First off, I want to thank Stephen Connolly for all the work he has put into the VMware plugin. It is something that I have needed and have been thinking about writing myself, but have not yet gotten the time to do it. I would like to talk more about what the future plans are for this plugin, as well as how I may be able to contribute some additional features. On that note, I will get to the real point of my email. The documentation that comes with the plugin states that it has only been tested under windows. I have spent the past couple of days getting the plugin setup under my linux build environment, and would like to share the problems I’ve encountered in case they hare helpful to anyone on the list.

 

1)       The version of JNA that the VMware plugin is using is built against glibc version 2.4+. This is problematic for some distros (debian in my case), as they are still on the older 2.3.x version. Fortunately, JNA has updated their Jars to be built against 2.3+. These new jars can be found at: https://jna.dev.java.net/source/browse/jna/trunk/jnalib/dist/ Stephen, can you please update your builds to use the newer jars? For those that want it now, you can simply over-write the existing jar in the extracted hpi directory with the new jar.

2)       When Stephen says you need to be using the exact same version of the VMware VIX libraries as your VMware server install, he’s not kidding. The problem with this, is that you can no longer download these directly from the VIX website if you want to install them on a machine other than your VMware server. Therefore, I found it easiest to simply copy over the necessary files. The files that are required are:

/usr/lib/vmware-vix/*

/usr/lib/libvmware-vix*

/usr/include/vmware-vix/*

 

Other than this, everything seems to work quite well in a linux environment. Once again, thanks for Stephens work.

 

            --Keith

Reply | Threaded
Open this post in threaded view
|

Re: VMWare Plugin - Linux

Kohsuke Kawaguchi
Administrator
I'm hoping that Stephen would still chime in, but in the mean time,
I'm thinking about using VMWare myself, mostly on my Ubuntu servers,
so I'm really looking forward to the progress in this area.

I think it would be good if the information like this that you are
describing gets captured in Wiki.


2007/11/2, Keith Kowalczykowski <[hidden email]>:

> First off, I want to thank Stephen Connolly for all the work he has put into
> the VMware plugin. It is something that I have needed and have been thinking
> about writing myself, but have not yet gotten the time to do it. I would
> like to talk more about what the future plans are for this plugin, as well
> as how I may be able to contribute some additional features. On that note, I
> will get to the real point of my email. The documentation that comes with
> the plugin states that it has only been tested under windows. I have spent
> the past couple of days getting the plugin setup under my linux build
> environment, and would like to share the problems I've encountered in case
> they hare helpful to anyone on the list.
>
>
>
> 1)       The version of JNA that the VMware plugin is using is built against
> glibc version 2.4+. This is problematic for some distros (debian in my
> case), as they are still on the older 2.3.x version. Fortunately, JNA has
> updated their Jars to be built against 2.3+. These new jars can be found at:
> https://jna.dev.java.net/source/browse/jna/trunk/jnalib/dist/
> Stephen, can you please update your builds to use the newer jars? For those
> that want it now, you can simply over-write the existing jar in the
> extracted hpi directory with the new jar.
>
> 2)       When Stephen says you need to be using the exact same version of
> the VMware VIX libraries as your VMware server install, he's not kidding.
> The problem with this, is that you can no longer download these directly
> from the VIX website if you want to install them on a machine other than
> your VMware server. Therefore, I found it easiest to simply copy over the
> necessary files. The files that are required are:
>
> /usr/lib/vmware-vix/*
>
> /usr/lib/libvmware-vix*
>
> /usr/include/vmware-vix/*
>
>
>
> Other than this, everything seems to work quite well in a linux environment.
> Once again, thanks for Stephens work.
>
>
>
>             --Keith


--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: VMWare Plugin - Linux

Stephen Connolly-2
In reply to this post by Keith Kowalczykowski-2
Keith Kowalczykowski wrote:

First off, I want to thank Stephen Connolly for all the work he has put into the VMware plugin.

Cool!

I've been waiting to hear that somebody is using this on Linux

It is something that I have needed and have been thinking about writing myself, but have not yet gotten the time to do it. I would like to talk more about what the future plans are for this plugin, as well as how I may be able to contribute some additional features.

There are some issues I have logged on the issue tracker to outline my immediate plans for this plugin.

Kohsuke said he was interested in extending this plugin to allow starting hudson slaves on demand, but I think he's been too busy with other tasks to make any progress.

My next major task is to work on allowing VMware machines to pass back information to the build. (e.g. their IP address, etc)

How I see this working is that when the VMware machine starts up it would make a HTTP GET request of an url like

<a class="moz-txt-link-freetext" href="http://hudson-server:port/hudson-url/plugins/vmware/SOMEUNIQUEKEY/192.168.122.44">http://hudson-server:port/hudson-url/plugins/vmware/SOMEUNIQUEKEY/192.168.122.44

The VMware plugin would wait for a HTTP GET request to be received and set a build environment variable to the passed back value

SOMEUNIQUEKEY=192.168.122.44

On that note, I will get to the real point of my email. The documentation that comes with the plugin states that it has only been tested under windows. I have spent the past couple of days getting the plugin setup under my linux build environment, and would like to share the problems I’ve encountered in case they hare helpful to anyone on the list.

 

It would be great if you could update the WIKI with your experience

1)        The version of JNA that the VMware plugin is using is built against glibc version 2.4+. This is problematic for some distros (debian in my case), as they are still on the older 2.3.x version. Fortunately, JNA has updated their Jars to be built against 2.3+. These new jars can be found at: https://jna.dev.java.net/source/browse/jna/trunk/jnalib/dist/ Stephen, can you please update your builds to use the newer jars? For those that want it now, you can simply over-write the existing jar in the extracted hpi directory with the new jar.

Not a problem, I want to update the JNA dependency anyway (as the new one fixes the extracted DLL deletion problem on windows) but I have not got around to it yet.

2)        When Stephen says you need to be using the exact same version of the VMware VIX libraries as your VMware server install, he’s not kidding. The problem with this, is that you can no longer download these directly from the VIX website if you want to install them on a machine other than your VMware server. Therefore, I found it easiest to simply copy over the necessary files. The files that are required are:

/usr/lib/vmware-vix/*

/usr/lib/libvmware-vix*

/usr/include/vmware-vix/*

 

Other than this, everything seems to work quite well in a linux environment. Once again, thanks for Stephens work.

 

            --Keith