[one-users] onehost problem with kvm

Andrea Turli andrea.turli at eng.it
Thu Jun 24 06:17:39 PDT 2010


Thank you guys for your quick answers.

As Gyula suggested the

nodeinfo_text = `virsh -c qemu:///system nodeinfo`

and the NETINTERFACE were not correct.

Thank you,
Andrea


On 06/23/2010 08:30 PM, Csom Gyula wrote:
> Hi,
>
> We met a similar problem and it turned out that the IM MAD responsible for KVM-specific
> monitoring is kvm.rb<http://dev.opennebula.org/projects/opennebula/repository/revisions/master/entry/src/im_mad/kvm/kvm.rb>. Unfotunately the script found in the ONE v.1.4 download was not in
> synch with the codebase, namely the virsh call at the begining was erroneous...
>
> You may check whether kvm.rb of your installation contains the following line at the
> begining:
>
>    nodeinfo_text = `virsh -c qemu:///system nodeinfo`
>
> if not then you may simple correct it...
>
> Note that: kvm.rb is found in the ONE lib directory within the im_probes subdir.
>
>
> You may also check whether NIC names used in the hosts are in synch with the kvm.rb
> setting, otherwise NETRX, NETTX might not receive monitoring values at all. kvm.rb looks
> for network monitoring values through the eth1 interface by default. If this is not your case
> you might change the setting, eg.:
>
>    NETINTERFACE = "real nic name"
>
> Cheers,
> Gyula
>
> ________________________________
> Feladó: users-bounces at lists.opennebula.org [users-bounces at lists.opennebula.org] ; meghatalmazó: Andrea Turli [andrea.turli at eng.it]
> Küldve: 2010. június 23. 17:04
> Címzett: users at lists.opennebula.org
> Tárgy: [one-users] onehost problem with kvm
>
> Dear all,
>
> I'm starting today a new installation of OpenNebula 1.4 with the really useful OpenNebula Express guide at http://dev.opennebula.org/projects/opennebula-express/wiki
> Unfortunately it seems to be a communication problem between my front-end (Ubuntu 10.04 - KVM - NFS) and my node (Ubuntu 10.04 - KVM - NFS)
>
> Here some outputs from the frot-end:
>
> $ onehost list
>    ID NAME                      RVM   TCPU   FCPU   ACPU    TMEM    FMEM STAT
>     2 grids21.eng.it              0      0      0    100       0 7891240   on
>
>
> oneadmin at lisa:~$ onehost show 2
> HOST 2 INFORMATION
> ID                    : 2
> NAME                  : grids21.eng.it
> STATE                 : MONITORED
> IM_MAD                : im_kvm
> VM_MAD                : vmm_kvm
> TM_MAD                : tm_nfs
>
> HOST SHARES
> MAX MEM               : 0
> USED MEM (REAL)       : 547284
> USED MEM (ALLOCATED)  : 0
> MAX CPU               : 0
> USED CPU (REAL)       : 0
> USED CPU (ALLOCATED)  : 0
> RUNNING VMS           : 0
>
> MONITORING INFORMATION
> ARCH=x86_64
> CPUSPEED=
> FREECPU=0.0
> FREEMEMORY=7891364
> HOSTNAME=bart
> HYPERVISOR=kvm
> MODELNAME=Intel(R) Xeon(R) CPU            5130  @ 2.00GHz
> NETRX=0
> NETTX=0
> TOTALCPU=
> TOTALMEMORY=
> USEDCPU=0.0
> USEDMEMORY=547284
>
> Here also my oned.conf:
>
> Wed Jun 23 16:54:52 2010 [InM][I]: --Mark--
> Wed Jun 23 16:54:52 2010 [InM][D]: Host 2 successfully monitored.
> Wed Jun 23 16:55:30 2010 [ReM][D]: HostInfo method invoked
> Wed Jun 23 16:55:36 2010 [ReM][D]: HostPoolInfo method invoked
> Wed Jun 23 16:55:52 2010 [InM][I]: Monitoring host grids21.eng.it (2)
> Wed Jun 23 16:56:17 2010 [InM][D]: Host 2 successfully monitored.
> Wed Jun 23 16:56:28 2010 [ReM][D]: HostInfo method invoked
> Wed Jun 23 16:57:22 2010 [InM][I]: Monitoring host grids21.eng.it (2)
> Wed Jun 23 16:57:47 2010 [InM][D]: Host 2 successfully monitored.
> Wed Jun 23 16:58:52 2010 [InM][I]: Monitoring host grids21.eng.it (2)
> Wed Jun 23 16:59:17 2010 [InM][D]: Host 2 successfully monitored.
> Wed Jun 23 17:00:22 2010 [InM][I]: Monitoring host grids21.eng.it (2)
> Wed Jun 23 17:00:47 2010 [InM][D]: Host 2 successfully monitored.
> Wed Jun 23 17:01:52 2010 [InM][I]: Monitoring host grids21.eng.it (2)
>
>
> I think there is a problem in retrieving the CPUSPEED, TOTALCPU and TOTALMEMORY and for this reason I cannot run any VM.
> It seems really similar to this post http://lists.opennebula.org/pipermail/users-opennebula.org/2010-February/001453.html but I cannot find there a solution.
>
> Thank you in advance for your help and suggestions,
> Andrea
>
>
>
>
> --
> Andrea Turli
> Ricercatore
> Direzione Ricerca e Innovazione
> andrea.turli at eng.it<mailto:andrea.turli at eng.it>
>
> Engineering Ingegneria Informatica spa
> Via Riccardo Morandi, 32 00148 Roma (RM)
> Tel. +39 06 8307 4710
> Fax +39 06 8307 4200
> www.eng.it<http://www.eng.it>
>
>
>
>
>    


-- 
Andrea Turli
Ricercatore
Direzione Ricerca e Innovazione
andrea.turli at eng.it

Engineering Ingegneria Informatica spa
Via Riccardo Morandi, 32 00148 Roma (RM)
Tel. +39 06 8307 4710
Fax +39 06 8307 4200
www.eng.it




More information about the Users mailing list