[one-users] Trouble with VMWare installation and configuration with vmware support

Tino Vazquez tinova at opennebula.org
Mon Jul 18 08:12:21 PDT 2011


Hi,

Please send through your $ONE_LOCATION/lib/remotes/im/vmware.rb, I cannot
see a reason of the failure in line 61.

Regards,

-Tino

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79


2011/7/18 Juan José Fuentes <Juanjose.Fuentes at sigmaaie.org>

> Hi,****
>
> ** **
>
> I’ve tried to reinstall the libvirt, I’ve downloaded the fonts again, this
> time the 0.9.3 version from
> http://libvirt.org/sources/libvirt-0.9.3.tar.gz, but I get some errors, so
> I’ve executed: “sudo apt-get install libvirt-bin ubuntu-vm-builder
> bridge-utils”, now when I run the command:****
>
> ** **
>
> *virsh –c gsx://sigcloud02.sigmaaie.org?no_verify=1*****
>
> ** **
>
> asks for user/pwd and it connects OK.****
>
> ** **
>
> But the error still there, I’ve deleted the node host, rebooted opennebula
> and add again the node host with the command:****
>
> ** **
>
> *onehost create sigcloud02.sigmaaie.org im_vmware vmm_vmware tm_vmware*
>
> ** **
>
> oneadmin at sigcloud01:~$ onehost list****
>
>   ID NAME              CLUSTER  RVM   TCPU   FCPU   ACPU    TMEM    FMEM
> STAT****
>
>    0 sigcloud02.sigmaa default    0      0      0    100      0K         0K
>              err****
>
> ** **
>
> But a few seconds after that the state of the host becomes “err” and in the
> oned.log appears:****
>
> ** **
>
> *Mon Jul 18 16:21:11 2011 [InM][I]: Monitoring host
> sigcloud02.sigmaaie.org (0)*
>
> *Mon Jul 18 16:21:11 2011 [InM][I]: Command execution fail:
> /var/lib/one/remotes/im/run_probes vmware sigcloud02.sigmaaie.org*
>
> *Mon Jul 18 16:21:11 2011 [InM][I]: STDERR follows.*
>
> *Mon Jul 18 16:21:11 2011 [InM][I]: ./vmware.rb:61: undefined method `+'
> for nil:NilClass (NoMethodError)*
>
> *Mon Jul 18 16:21:11 2011 [InM][I]: Error executing vmware.rb*
>
> *Mon Jul 18 16:21:11 2011 [InM][I]: ExitCode: 1*
>
> *Mon Jul 18 16:21:11 2011 [InM][E]: Error monitoring host 0 : MONITOR
> FAILURE 0 Could not monitor host sigcloud02.sigmaaie.org.*****
>
> ** **
>
> Any ideas?! Thank you,****
>
> ** **
>
> [image: Descripción: Descripción: Descripción:
> http://www.gestionuniversitariasigma.com/images/sigma_logoFirma.png]****
>
> *Juan José Fuentes**
> Responsable de Sistemas***
>
> Telf +34 902 550 733****
>
> [image: Descripción: Descripción: Descripción:
> http://www.gestionuniversitariasigma.com/images/sigma_barraFirma.png]****
>
> ** **
>
> ** **
>
> *De:* Tino Vazquez [mailto:tinova at opennebula.org]
> *Enviado el:* lunes, 18 de julio de 2011 14:42
> *Para:* Juan José Fuentes
> *CC:* Carlos A.; users at lists.opennebula.org
>
> *Asunto:* Re: [one-users] Trouble with VMWare installation and
> configuration with vmware support****
>
> ** **
>
> Hi Juan,****
>
> ** **
>
> That means that the installation of libvirt is broken. How did you install
> it, from source or using a package? In any case, you should try to reinstall
> it.****
>
> ** **
>
> Regards,****
>
> ** **
>
> -Tino****
>
>
> --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor
> www.OpenNebula.org | @tinova79
>
> ****
>
> 2011/7/18 Juan José Fuentes <Juanjose.Fuentes at sigmaaie.org>****
>
> Hi Carlos, ****
>
>  ****
>
> Thank you, I’ve changed the URI, but the the error still.****
>
>  ****
>
> I’ve found a test on the Web using the command VIRSH, so I’ve executed the
> command:****
>
>  ****
>
> *oneadmin at sigcloud01:/etc/one$ virsh gsx://
> sigcloud02.sigmaaie.org?no_verify=1*****
>
> *virsh: error while loading shared libraries: libvirt-qemu.so.0: cannot
> open shared object file: No such file or directory*****
>
>  ****
>
> Where should be those libraries? Where should I indicate the location of
> the libraries?****
>
>  ****
>
> [image: Descripción: Descripción: Descripción:
> http://www.gestionuniversitariasigma.com/images/sigma_logoFirma.png]****
>
> *Juan José Fuentes**
> Responsable de Sistemas*****
>
> Telf +34 902 550 733****
>
> [image: Descripción: Descripción: Descripción:
> http://www.gestionuniversitariasigma.com/images/sigma_barraFirma.png]****
>
>  ****
>
>  ****
>
> *De:* users-bounces at lists.opennebula.org [mailto:
> users-bounces at lists.opennebula.org] *En nombre de *Carlos A.
> *Enviado el:* lunes, 18 de julio de 2011 14:10****
>
>
> *Para:* users at lists.opennebula.org****
>
> *Asunto:* Re: [one-users] Trouble with VMWare installation and
> configuration with vmware support****
>
>  ****
>
> Hello,
>
> if you are using VMWare Server, you should change the LIBVIRT_URI to
>
> *LIBVIRT_URI   = "gsx://@HOST@/?no_verify=1"*
>
> Regards,
> Carlos A.
>
>
> El 18/07/11 13:37, Juan José Fuentes escribió: ****
>
> Hi Tino,****
>
>  ****
>
> I have change the the vmwarerc file setting the creditals, then I rebooted
> OpenNebula, but the error still.****
>
>  ****
>
> The file vmwarerc is right now:****
>
>  ****
>
> *# User configurable variables (Ruby syntax)*****
>
> *LIBVIRT_URI   = "esx://@HOST@/?no_verify=1"*****
>
> *QEMU_PROTOCOL = "qemu"*****
>
> * *****
>
> *# Username and password of the VMware hypervisor*****
>
> *USERNAME      = "oneadmin"*****
>
> *PASSWORD      = "mypassword"*****
>
> * *****
>
> *# Loading the vmware library for mads*****
>
> *# Please leave this uncommented*****
>
> *load ENV['ONE_LOCATION'] + "/lib/ruby/vmwarelib.rb"*****
>
> * *****
>
> *ENV['LANG']='C'*****
>
>  ****
>
> Is everything ok?****
>
>  ****
>
>  ****
>
> [image: Descripción: Descripción: Descripción:
> http://www.gestionuniversitariasigma.com/images/sigma_logoFirma.png]****
>
> *Juan José Fuentes**
> Responsable de Sistemas*****
>
> Telf +34 902 550 733****
>
> [image: Descripción: Descripción: Descripción:
> http://www.gestionuniversitariasigma.com/images/sigma_barraFirma.png]****
>
>  ****
>
>  ****
>
> *De:* tinova79 at gmail.com [mailto:tinova79 at gmail.com <tinova79 at gmail.com>]
> *En nombre de *Tino Vazquez
> *Enviado el:* lunes, 18 de julio de 2011 12:17
> *Para:* Juan José Fuentes
> *CC:* users at lists.opennebula.org
> *Asunto:* Re: [one-users] Trouble with VMWare installation and
> configuration with vmware support****
>
>  ****
>
> Hi Juan,****
>
>  ****
>
> Yes, you need to install VMware Server on the nodes.****
>
>  ****
>
> About the error, did you edit $ONE_LOCATION/etc/vmwarerc accordingly? You
> need to set the credentials of the VMware Server at least.****
>
>  ****
>
> Regards,****
>
>  ****
>
> -Tino****
>
>
> --
> Constantino Vázquez Blanco | dsa-research.org/tinova
> Virtualization Technology Engineer / Researcher
> OpenNebula Toolkit | opennebula.org
>
> ****
>
> 2011/7/15 Juan José Fuentes <Juanjose.Fuentes at sigmaaie.org>****
>
> Hi all,****
>
>  ****
>
> I’m starting configuring OpenNebula and I’m getting some trouble, both
> trying to configure it right and finding documentation, mostly because I
> want to use it with vmware support to still using the vmware server virtual
> machines I already have, at least I hope I could do that, if that’s not
> possible I’ll stop using OpenNebula.****
>
>  ****
>
> Until now I have installed OpenNebula 2.2 on a server (sigcloud01), in this
> server I’ve installed libvirt and the vmware extension
> (vmware-2.2.0.tar.gz). Also I have one host node (sigcloud02) on which I’ve
> installed VMWare Server 2.0.2. According to the posts/docs I read I think
> it’s necessary to install vmware server on the client node or it isn’t, so
> I’m not sure.****
>
>  ****
>
> I also have installed SunStone on the OpenNebula Server.****
>
>  ****
>
> At this point when I add a host to opennebula it always is in ERR status.*
> ***
>
>  ****
>
> The command I use is: *onehost create sigcloud02 im_vmware vmm_vmware
> tm_vmware*****
>
>  ****
>
> The oned.log says:****
>
> Fri Jul 15 17:55:11 2011 [ReM][D]: HostAllocate method invoked****
>
> Fri Jul 15 17:55:18 2011 [ReM][D]: HostPoolInfo method invoked****
>
> Fri Jul 15 17:55:18 2011 [InM][I]: Monitoring host sigcloud02 (2)****
>
> Fri Jul 15 17:55:18 2011 [ReM][D]: VirtualMachinePoolInfo method invoked**
> **
>
> Fri Jul 15 17:55:18 2011 [InM][I]: Command execution fail:
> /var/lib/one/remotes/im/run_probes vmware sigcloud02****
>
> Fri Jul 15 17:55:18 2011 [InM][I]: STDERR follows.****
>
> Fri Jul 15 17:55:18 2011 [InM][I]: ./vmware.rb:61: undefined method `+' for
> nil:NilClass (NoMethodError)****
>
> Fri Jul 15 17:55:18 2011 [InM][I]: Error executing vmware.rb****
>
> Fri Jul 15 17:55:18 2011 [InM][I]: ExitCode: 1****
>
> Fri Jul 15 17:55:18 2011 [InM][E]: Error monitoring host 2 : MONITOR
> FAILURE 2 Could not monitor host sigcloud02.****
>
>  ****
>
> Some help will be wellcome! ****
>
>  ****
>
> Thank you in advance,****
>
>  ****
>
> Juanjo.****
>
>  ****
>
> *De:* users-bounces at lists.opennebula.org [mailto:
> users-bounces at lists.opennebula.org] *En nombre de *Amine Ghrab
> *Enviado el:* miércoles, 06 de julio de 2011 12:12
> *Para:* users at lists.opennebula.org
> *Asunto:* [one-users] OpenNebula OCCI 1.1****
>
>  ****
>
> Hi,
>
> I've successfully installed OpenNebula Express, for test purposes, using 2
> machines.
>
> Now I'm struggling to get the OCCI Server up following this wiki : http://dev.opennebula.org/projects/ogf-occi/wiki/Occi_02
>
> and using this file:
> http://dev.opennebula.org/attachments/download/376/ogf-occi-0.2.zip
>
> occi-server.conf  and occi-one.conf are similar to :
> http://www.mail-archive.com/users@lists.opennebula.org/msg03257.html
>
> occi-one.conf : http://pastebin.com/nAW16qpc
> occi-server.conf : http://pastebin.com/tLpHB12K
>
> When startin gthe server i get :
>
> oneadmin at amine-front:~$occi-server start
> Error executing /usr/lib/one/ruby/cloud/occi/occi-server.rb.
> oneadmin at amine-front:~$ occi-server stop
> occi-server stopped
>
> The only line of the log is : Error starting server: No VM_TYPE defined.
>
> The other problem is :
>
> oneadmin at amine-frontend:~$ occi-compute --username oneadmin --password
> oneadmin list
> Error connecting to server (Connection refused - connect(2)).
> Server: localhost:4567
>
> The installation is system wide, hence I have the following schema:
>
> oneadmin at amine-front:~$ ls /etc/one/
> auth                         im_kvm
> occi-server.conf            tm_lvm
> defaultrc                   im_xen
> occi-server.conf.old      tm_nfs
> ec2query_templates  occi-one.conf
> occi-server.conf.orig     tm_ssh
> econe.conf               occi-one.conf.old
> occi_templates            vmm_ec2
> hm                           occi_one_templates
> oned.conf                    vmm_sh
> im_ec2                     occi_one_templates.old
> tm_dummy                  vmm_ssh****
>
> Best Regards.
>
> Amine****
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org****
>
>  ****
>
>  ****
>
>  ****
>
> _______________________________________________****
>
> Users mailing list****
>
> Users at lists.opennebula.org****
>
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org****
>
>  ****
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org****
>
> ** **
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110718/b11213e7/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 4169 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110718/b11213e7/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 3763 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110718/b11213e7/attachment-0007.png>


More information about the Users mailing list