VIX Java Toolkit

vix-java-toolkit

Version: 1.0   |   File Size: 106.1 KB   |   Upload Date: 09/27/2010

This fling is covered under the BSD License.

27,837 views   |  
(10 votes)
  |     |     |  
Tags: , , , , , , ,

The VIX Java Toolkit allows Java developers to take advantage of the VMware VIX API. This is a powerful API that allows for performing in-guest operations on VMs running with vSphere, Workstation, Server, and Player. Java developers who are writing code with the vSphere/VI APIs will find this particularly useful as the vSphere API does not currently provide any functionality for interacting with the guest operating system. In addition, this is helpful for software testing as well as systems administration.

Features

  • Provides Java wrapper for the VIX API
  • Provides VIX objects and utility code to reduce complexities of using the VIX API

VIX Java Toolkit requires JDK 1.6 and the JNA library.

To use VIX Java Toolkit, include jna.jar and vix.jar in your class path.


Comments

  1. Issue VixVmHandle.release()

    Raphael Zamith
    says:

    When i create an VixVmHandle, and then try to release it, apparently it is not releasing the vmhandle, and causing an issue that don't allow me to interate with the VixVmHandle after the 30rd iteration.

    • Raphael Zamith says:

      Solved this problem. Some handles created by the toolkit were never released, so handles were created in the vix that were never released, so that the limit was exceeded for vm handles, which are 30.
      If the developers are interested in the correction of the problem for an update, please contact.
      Regards.

  2. vix.jar

    Akash patel
    says:

    Weather vix.jar support vsphere 5.0 infrastructure?

    m trying to connect to host through vixvsphereHandle but getting error ,.. Null exception.

    i want to know .. weather vix.jar support above infrastructure ??

    Waiting for your response >>

  3. VIX not support x64 JVM

    Victor Papanaga
    says:

    Available for now VIX API not support Java 1.6.x (64 bit).
    Is VMWare plan to support this JVM in the future?

    Thanks

  4. Tuan says:

    I used the utility dependencywalker to determine the dependency of vix.dll. I found the following errors:

    (1) DEVMGR.DLL Error opening file: The system cannot file the find specified.
    (2) MSJAVA.DLL Error opening file: The system cannot file the find specified.

    Warning: At least one delay-load dependency module was not found.

    Any idea?

    Tuan

  5. Tuan says:
    In my class, I define jna.library.path as such:

    static {
    System.setProperty("jna.library.path", "C:\\Software\\VMWare\\VSphere-4.1");
    }

    In Jboss's start-up script. I set the ... Show more

  6. Guy Crumpley says:
    Help!! We've gotten through all hurdles except one: we're having trouble nailing down an NPE. Specifically, we're making VIX RunScriptInGuest calls from EJBs running in JBoss AS 5.0.1 (which itself i... Show more
    • Mike S says:

      In reading this note, seems like you overcame the Windows 7 issue with JNA. Is that true and if so, what was the solution? We are running into the same issue.

  7. Guy Crumpley says:
    Windows 7 seems to also be problematic for development.

    I've tried on 2 physical machines (Intel-based 64-bit Professional & 32-bit Enterprise), and one virtual machine running in a VSphere 4... Show more

    • Dan Parrella says:
      Hi Guy,
      This is a known issue that I've been trying to figure out. I've traced the problem down to anything that calls VixVM_FreeBuffer() (which does get called in the example code). This works fine ... Show more
  8. atrockz says:

    I am trying to run VIX java sample on Ubuntu 10.04 with VIX API 1.10.3 installed on it and it is failing with an exception message "Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'vix': libvix.so: cannot open shared object file: No such file or directory"
    Looks like the JNA Native is not able to load the VIX library.

    • Guy Crumpley says:

      As stated earlier in this thread, I have a working development worksttation.

      Clarification: That working system is running Windows 2003 Enterprise R2, fully patched.

      I expect Windows XP would work fine, too. It's just Windows 7 that has the ntdll problem.

  9. Guy Crumpley says:
    Looking to see if we have a known issue with VSphere 4.1, and if so, should I be looking elsewhere for a supported java toolkit for VIX?

    First time using VIX Java Toolkit in our new VSphere 4.1 arc... Show more

    • Guy Crumpley says:

      FYI - VMRUN works great in the environment, so we're able to rule out infrastructure issues.

    • Guy Crumpley says:

      UPDATE - Re-attempted from a Windows development box (vs Ubuntu) - no issues on Windows. Good to go.

  10. Emerson Farrugia says:

    So will this remain a "fling" or "labs" project, or does VMware have plans to make its Java API for VIX a first-class citizen?

  11. Gavin Gray says:

    You need to make sure you have VIX installed to start. Either the VIX DLL (Windows) or shared object library (Linux) must be present in your path. Hope this helps!

    G

    • Steve says:

      What should the title of the entry in the path be?

  12. Tom says:

    I am trying to run your example code from JAR but i am not able because i am getting eclipse java.lang.unsatisfiedlinkerror 'vix' error. I put jni path to VIX folder in program files but its still not working :/
    Any ideas?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>