[one-users] Setting up OpenNebula 2.0 beta 1 with Vmware driver

Tino Vazquez tinova at fdi.ucm.es
Fri Aug 27 04:36:07 PDT 2010


Hi Jonathan,

There are no differences setup-wise between OpenNebula v1.4 y v2.0
regarding the VMware drivers.

In order to correctly configure the VI SDK 2.5, I recommend you follow
the guide at [1], more precisely section "Setup Instructions for Java
Development". You need to compile the jar files from the VI SDK 2.5,
the errors you are experience comes from the lack of needed jar files
in your CLASSPATH. Remember that java treats the jar files as
directories, so you need to specify them explicitly in the CLASSPATH
variable. Assuming your VI SDK and AXIS install resides at /opt/, a
correct CLASSPATH looks like

--
/opt/axis-1_4/lib/axis-ant.jar:/opt/axis-1_4/lib/axis-schema.jar:/opt/axis-1_4/lib/axis.jar:/opt/axis-1_4/lib/commons-discovery-0.2.jar:/opt/axis-1_4/lib/commons-logging-1.0.4.jar:/opt/axis-1_4/lib/jaxrpc.jar:/opt/axis-1_4/lib/log4j-1.2.8.jar:/opt/axis-1_4/lib/log4j.properties:/opt/axis-1_4/lib/saaj.jar:/opt/axis-1_4/lib/wsdl4j-1.5.1.jar:/System/Library/Frameworks/JavaVM.framework/Home/lib:/System/Library/Frameworks/JavaVM.framework/Home/lib/tools.jar:/opt/Vim25-SDK/samples/Axis/java/vim.jar:/opt/Vim25-SDK/samples/Axis/java/lib/activation.jar:/opt/Vim25-SDK/samples/Axis/java/lib/mailapi.jar:/opt/Vim25-SDK/samples/Axis/java/vim25.jar:/opt/Vim25-SDK/samples/Axis/java/vim25.jar:/opt/Vim25-SDK/samples/Axis/java/samples.jar:/opt/Vim25-SDK/samples/Axis/java/apputils.jar:/opt/Vim25-SDK/samples/Axis/java/vim25.jar:/opt/Vim25-SDK/samples/Axis/java/samples.jar:/opt/Vim25-SDK/samples/Axis/java/apputils.jar:/opt/Vim25-SDK/samples/Axis/java:/opt/axis-1_4/lib/axis-ant.jar:/opt/axis-1_4/lib/commons-logging-1.0.4.jar:/opt/axis-1_4/lib/saaj.jar:/opt/axis-1_4/lib/axis.jar:/opt/axis-1_4/lib/jaxrpc.jar:/opt/axis-1_4/lib/wsdl4j-1.5.1.jar:/opt/axis-1_4/lib/commons-discovery-0.2.jar:/opt/axis-1_4/lib/log4j-1.2.8.jar:/lib/wbem.jar:/opt/Vim25-SDK/samples/Axis/java/lib/activation.jar:/opt/Vim25-SDK/samples/Axis/java/lib/jaxen-core.jar:/opt/Vim25-SDK/samples/Axis/java/lib/jaxen-jdom.jar:/opt/Vim25-SDK/samples/Axis/java/lib/jdom.jar:/opt/Vim25-SDK/samples/Axis/java/lib/mailapi.jar:/opt/Vim25-SDK/samples/Axis/java/lib/saxpath.jar:/opt/Vim25-SDK/samples/Axis/java/lib/smtp.jar:/opt/Vim25-SDK/samples/Axis/java/lib/wbem.jar:/opt/Vim25-SDK/samples/Axis/java/lib/xalan.jar:/opt/Vim25-SDK/samples/Axis/java/lib/xerces.jar:/opt/Vim25-SDK/samples/Axis/java/lib/xml-apis.jar
--

Best regards,

-Tino

[1] http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/visdk25setupguide.pdf
--
Constantino Vázquez Blanco | dsa-research.org/tinova
Virtualization Technology Engineer / Researcher
OpenNebula Toolkit | opennebula.org



On Thu, Aug 26, 2010 at 5:52 PM, Jonathan Kelley <jkelley at vm-labs.com> wrote:
> Additional info on the errors I see when running ./install_vmware.sh:  My
> classpath is
> CLASSPATH=:/opt/axis-1_4/lib/:/opt/vi-2.5.0/SDK/samples/Axis/java/:/opt/vi-2.5.0/SDK/samples/Axis/java/lib
> Installing VMWare drivers.DeployVM.java:125: cannot access
> org.apache.axis.AxisFault
> class file for org.apache.axis.AxisFault not found
>                 = cb.getConnection().getService().registerVM_Task(
>                                                                  ^
> DeployVM.java:235: unreported exception
> com.vmware.vim.InsufficientResourcesFault; must be caught or declared to be
> thrown
>             = cb.getConnection().getService().reconfigVM_Task(
>                                                              ^
> /opt/vi-2.5.0/SDK/samples/Axis/java/com/vmware/apputils/vim/ServiceConnection.java:51:
> cannot access org.apache.axis.client.Service
> class file for org.apache.axis.client.Service not found
>       _locator = new VimServiceLocator();
>
> Thanks,
> Jon
>
>
> On Thu, Aug 26, 2010 at 3:55 PM, Jonathan Kelley <jkelley at vm-labs.com>
> wrote:
>>
>> Just curious if there are any differences to getting the VMware driver to
>> work with OpenNebula 2.0.
>>
>> I am curious whether it is necessary to compile the VI SDK 2.5 or the
>> packaged jar files are enough.
>>
>> If anyone has some exact steps on getting the VISDK up and running
>> properly that would be great.
>>
>> I am setting this up on Ubuntu 10.04.
>>
>> Thanks in advance,
>> Jon
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>



More information about the Users mailing list