<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi Ruben,<br><br>I am using the OpenSUSE package (installed through 
YaST). Just to make sure that I did the configurations right (I'm sure I
 didn't):<br><br>At (I quote from the documentation): "To be able to use
 the images copied by OpenNebula, change also the user and group under 
which the libvirtd is run to “oneadmin”", what exactly needs to be done?
 I am a Linux-noob (or at least, not at all an expert), so forget me 
this question, but how do I set the user and group under which a daemon 
is run? I have checked under which user is the libvirtd daemon is 
currently running, and indeed it is root (since I probably set it and 
put it in init.d as the root user).<br><br>Also: "(typically  <code><oneadmin></code>) has to pertain to the <libvirtd> and <kvm> groups in order to use the daemon and be able to launch VMs."<br>What are the
 <libvirtd> and <kvm> groups? And how how do I achieve the necessary configuration?<br><br>I did some configuration, but I just want to make sure that I'm not missing anything (which I probably do).<br><br>Ruben? Anyone? <br><br>Thank you,<br>Lehel.<br><br>--- On <b>Fri, 3/9/12, Ruben S. Montero <i><rsmontero@opennebula.org></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Ruben S. Montero <rsmontero@opennebula.org><br>Subject: Re: [one-users] Monitoring issue right after host creation [No Monitoring Information | OpenNebula 3.2.0]<br>To: "biro lehel" <lehel.biro@yahoo.com><br>Cc: users@lists.opennebula.org<br>Date: Friday, March 9, 2012, 11:42 AM<br><br><div id="yiv132919786">Hi<div><br></div><div>It seems that a libvirt problem, either is not running at pcls or it is misconfigured. You have a couple of hints about configuring libvirt for KVM at
 [1].</div><div><br></div><div>My other concern is your permissions problem. Are you using the OpenSUSE package or installing from source?</div>

<div><br></div><div>[1] <a rel="nofollow" target="_blank" href="http://www.opennebula.org/documentation:rel3.2:kvmg#configuration">http://www.opennebula.org/documentation:rel3.2:kvmg#configuration</a></div><div><br></div><div>Thanks</div><div><br></div>

<div>Ruben<br><br><div class="yiv132919786gmail_quote">On Fri, Mar 9, 2012 at 7:58 AM, biro lehel <span dir="ltr"><<a rel="nofollow" ymailto="mailto:lehel.biro@yahoo.com" target="_blank" href="/mc/compose?to=lehel.biro@yahoo.com">lehel.biro@yahoo.com</a>></span> wrote:<br><blockquote class="yiv132919786gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top"><div><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;font-family:arial;font-size:10pt;">

Hello,<br><br>I checked your suggestions, and although the scripts existed inside kvm.d, I didn't have execution permissions on them. I also run 'onehost sync'.<br><br>However, now I get a monitoring error while running 'onehost show pcls', oned.log containing the following:<br>

<br>Fri Mar  9 08:45:45 2012 [InM][I]: Monitoring host pcls (6)<br>Fri Mar  9 08:45:50 2012 [InM][I]: Command execution fail: 'if [ -x "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes kvm 6 pcls;
 else                              exit 42; fi'<br>Fri Mar  9 08:45:50 2012 [InM][I]: WARNING: no socket to connect to<br>Fri Mar  9 08:45:50 2012
 [InM][I]: error: authentication failed: authentication failed<br>Fri Mar  9 08:45:50 2012 [InM][I]: error: failed to connect to the hypervisor<br>Fri Mar  9 08:45:50 2012 [InM][E]: Error executing kvm.rb<br>Fri Mar  9 08:45:50 2012 [InM][I]: ExitCode: 255<br>

Fri Mar  9 08:45:50 2012 [InM][E]: Error monitoring host 6 : MONITOR FAILURE 6 Error executing kvm.rb<br><br>On the other hand, running run_probes on pcls result in the same warning, but also outputs the expected  data:<br>

<br># /var/tmp/one/im/run_probes kvm 6 pcls<br>WARNING: no socket to connect to<br>ARCH=x86_64 MODELNAME="Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz" HYPERVISOR=kvm TOTALCPU=400 CPUSPEED=3301 TOTALMEMORY=16446744 USEDMEMORY=724860 FREEMEMORY=15721884 FREECPU=381.6 USEDCPU=18.4 NETRX=0 NETTX=0 HOSTNAME=pcls<br>

<br>I did check the documentation at [1], the only thing missing is that I didn't perform the following line:<br><ul><li><div>
 <code>/etc/default/libvirt-bin</code> : add <strong>-l</strong> option to <code>libvirtd_opts<br><span style="font-family:arial;"></span></code></div></li></ul>, since I didn't have the mentioned file on my machine (I'm running OpenNebula 3.2.0 on an openSUSE 12.1 machine).<br>

<br>I was curious, and I run 'virsh -c qemu' command, resulting in the following:<br><br># virsh -c qemu<br>WARNING: no socket to connect to<br>error: internal error unexpected Xen URI path 'qemu', try ///var/lib/xen/xend-socket<br>

error: failed to connect to the hypervisor<br><br>Since I want to use KVM, and not Xen, as my hypervisor for OpenNebula, I smell a problem here. What am I missing? Any help?<br><br>[1]: <a rel="nofollow" target="_blank" href="http://opennebula.org/documentation:rel3.2:kvmg">http://opennebula.org/documentation:rel3.2:kvmg</a><br>

<br><br><br>--- On <b>Thu, 3/8/12, Ruben S. Montero <i><<a rel="nofollow" ymailto="mailto:rsmontero@opennebula.org" target="_blank" href="/mc/compose?to=rsmontero@opennebula.org">rsmontero@opennebula.org</a>></i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px;">

<br>From: Ruben S. Montero <<a rel="nofollow" ymailto="mailto:rsmontero@opennebula.org" target="_blank" href="/mc/compose?to=rsmontero@opennebula.org">rsmontero@opennebula.org</a>><br>Subject: Re: [one-users] Monitoring issue right after host creation [No Monitoring Information | OpenNebula 3.2.0]<br>

To: "biro lehel" <<a rel="nofollow" ymailto="mailto:lehel.biro@yahoo.com" target="_blank" href="/mc/compose?to=lehel.biro@yahoo.com">lehel.biro@yahoo.com</a>><br>Cc:
 <a rel="nofollow" ymailto="mailto:users@lists.opennebula.org" target="_blank" href="/mc/compose?to=users@lists.opennebula.org">users@lists.opennebula.org</a><br>Date: Thursday, March 8, 2012, 7:04 PM<br><br><div>Yes,<div><br></div><div>I mean the contents of the directory. run_probes, just executes the scripts in /var/tmp/one/im/kvm.d (in your case). The reason for no output of run_probes is an empty kvm.d. Could you check the contents of that directory (and execute any script there....)? </div>



<div><br></div><div>BTW run_probes is a very simple shell script (similar to run_parts) you may want to execute it with bash -xv /var/tmp/one/im/run_probes kvm 4 pcls</div><div><br><div>On Thu, Mar 8, 2012 at 5:57 PM, biro lehel <span dir="ltr"><<a rel="nofollow">lehel.biro@yahoo.com</a>></span> wrote:<br>



<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top">Hello Ruben,<br><br>

as I mentioned at the bottom of my previous email, I already run /var/tmp/one/im/run_probes with the necessary parameters on pcls (my only host), which resulted in the same (empty) output. The file exists, it just doesn't produce the expected (or any) output, and I couldn't find the reason so far.<br>



<br>I didn't try 'onehost sync', but I could try tomorrow morning (since I got home already, and I'm not at the respective computers), if you consider that it might help.<br><br>Any other suggestions?<br>


<br>
Cheers,<br>Lehel.<br><br>--- On <b>Thu, 3/8/12, Ruben S. Montero <i><<a rel="nofollow">rsmontero@opennebula.org</a>></i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px;">



<br>From: Ruben S. Montero <<a rel="nofollow">rsmontero@opennebula.org</a>><br>Subject: Re: [one-users] Monitoring issue right after host
 creation [No Monitoring Information | OpenNebula 3.2.0]<br>To: "biro lehel" <<a rel="nofollow">lehel.biro@yahoo.com</a>><br>Cc: <a rel="nofollow">users@lists.opennebula.org</a><br>

Date: Thursday, March 8, 2012, 6:17 PM<br><br><div>Hi,<div><br></div><div>Could you please check the contents of  /var/tmp/one/im/ at pcls? It seems that there are no probes there. If that's the case you can copy them by hand or use onehost sync and wait for a monitoring action on the host.</div>





<div><br></div><div>Cheers</div><div><br></div><div>Ruben<br><br><div>On Thu, Mar 8, 2012 at 4:25 PM, biro lehel <span dir="ltr"><<a rel="nofollow" target="_blank" href="http://mc/compose?to=lehel.biro@yahoo.com">lehel.biro@yahoo.com</a>></span> wrote:<br>





<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top"><div><table border="0" cellpadding="0" cellspacing="0">





<tbody><tr><td style="font:inherit;font-family:arial;font-size:10pt;"><div><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;font-family:arial;font-size:10pt;">Hello,<br><br>I tried to add my one and only host, by executing on the front-end:<br>





<br>> onehost create pcls im_kvm vmm_kvm tm_shared dummy<br><br>Issuing the 'onehost list' command, the result seems to be the one expected. However, issuing 'onehost show pcls' command results in zero values and NO monitoring information:<br>





<br>oneadmin@linux-4dsu:~/remotes/im> onehost show pcls<br>HOST 6
 INFORMATION                                                              <br>ID                    : 6                   <br>NAME                  : pcls                <br>STATE                 :
 MONITORED           <br>IM_MAD                : im_kvm              <br>VM_MAD                : vmm_kvm             <br>VN_MAD                : dummy               <br>TM_MAD                : tm_shared           <br>LAST MONITORING TIME  : 1331219173          <br>





<br>HOST
 SHARES                                                                     <br>MAX MEM               : 0                   <br>USED MEM (REAL)       : 0                   <br>USED MEM (ALLOCATED)  : 0                   <br>





MAX
 CPU               : 0                   <br>USED CPU (REAL)       : 0                   <br>USED CPU (ALLOCATED)  : 0                   <br>MAX DISK              : 0                   <br>USED DISK (REAL)      : 0                   <br>





USED DISK (ALLOCATED) :
 0                   <br>RUNNING VMS           : 0                   <br><br>MONITORING INFORMATION   <br><br>(the report ends here, without monitoring information).<br><br>I had some errors before, oned.log having:<br><br>





Thu Mar  8 15:49:03 2012 [InM][I]: Command execution fail: 'if [ -x "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes kvm 4 pcls; else                              exit 42; fi'<br>Thu Mar  8 15:49:03 2012 [InM][I]: ExitCode: 42<br>





Thu Mar  8 15:49:03 2012 [InM][E]: Error monitoring host 4 : MONITOR FAILURE 4 -<br><br>However, I
 fixed this by simply adding execution permission to the run_probes file mentioned above (since, it didn't have one). At this moment, oned.log contains no errors (to be precise, it says,<br><br>Thu Mar  8 17:16:12 2012 [ReM][D]: HostPoolInfo method invoked<br>





Thu Mar  8 17:16:12 2012 [ReM][D]: VirtualMachinePoolInfo method invoked<br>Thu Mar  8 17:16:12 2012 [ReM][D]: AclInfo method invoked<br>Thu Mar  8 17:16:13 2012 [InM][I]: Monitoring host pcls (6)<br>Thu Mar  8 17:16:18 2012 [InM][I]: ExitCode: 0<br>





Thu Mar  8 17:16:18 2012 [InM][D]: Host 6 successfully monitored.<br>Thu Mar  8 17:16:19 2012 [ReM][D]: UserPoolInfo method invoked<br>Thu Mar  8 17:16:19 2012 [AuM][D]: Message received: LOG I 874 ExitCode: 0<br><br>).<br>





<br>Firing the respective command on the host (  /var/tmp/one/im/run_probes kvm 4 pcls ) also results in no output and no errors (it simply puts a space on a new line in the CLI).<br><br>I don't
 think that this is the expected behavior and I think that there is a problem somewhere. What am I missing? Any suggestions?<br><br>Thanks,<br>Lehel.<br></td></tr></tbody></table></div></td></tr></tbody></table></div></td>





</tr></tbody></table><br>_______________________________________________<br>
Users mailing list<br>
<a rel="nofollow" target="_blank" href="http://mc/compose?to=Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><span class="yiv132919786HOEnZb"><font color="#888888"><span><font color="#888888"><div><br></div>-- <br>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br>



<a rel="nofollow" target="_blank" href="http://www.OpenNebula.org">www.OpenNebula.org</a> | <a rel="nofollow" target="_blank" href="http://mc/compose?to=rsmontero@opennebula.org">rsmontero@opennebula.org</a> | @OpenNebula<br>






</font></span></font></span></div><span class="yiv132919786HOEnZb"><font color="#888888">
</font></span></div></blockquote></td></tr></tbody></table></blockquote></div><span class="yiv132919786HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>

OpenNebula - The Open Source Solution for Data Center Virtualization<br>

<a rel="nofollow" target="_blank" href="http://www.OpenNebula.org">www.OpenNebula.org</a> | <a rel="nofollow">rsmontero@opennebula.org</a> | @OpenNebula<br>
</font></span></div>
</div></blockquote></td></tr></tbody></table></div></td></tr></tbody></table></blockquote></div><br><br clear="all"><div><br></div>-- <br>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br>

<a rel="nofollow" target="_blank" href="http://www.OpenNebula.org">www.OpenNebula.org</a> | <a rel="nofollow" ymailto="mailto:rsmontero@opennebula.org" target="_blank" href="/mc/compose?to=rsmontero@opennebula.org">rsmontero@opennebula.org</a> | @OpenNebula<br>
</div>
</div></blockquote></td></tr></table>