Hi all,<br><br>I am having the same issue described in this thread, I tried your suggestions but unfortunately they are not working for me.<br><br>I tried<br><ul><li>     Add unix_sock_group = oneadmin</li><li>     Add  unix_sock_ro_perms = 0777</li>
<li>     Add unix_sock_rw_perms = 0777</li><li>     Add auth_unix_rw = "none"</li></ul>I tried it without auth and with polkit auth, but still not able to connect to the hypervisor.<br><br>It is weird cause I was able to do the same with the same host in the past.<br>
<br>I am working on a SL63, just to let you know ... I have access to another ONE system which exactly the same config (OS,etc) and there everything seems working.<br><br>Any thoughts? <br><br>BR,<br>Enric<br><br><br><br>
<div class="gmail_quote">2012/10/8 André Monteiro <span dir="ltr"><<a href="mailto:andre.monteir@gmail.com" target="_blank">andre.monteir@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Can you do a virsh -c qemu:///system? If not its a OS problem, not ONE.</div><div> </div><div>If yes, I'm working on a SL6.2, on the vmm_exec_kvm.conf the line "EMULATOR = /usr/libexec/qemu-kvm" must have your correct path of qemu-kvm, does "/usr/libexec/qemu-kvm" exists?<br clear="all">


<br>--<br>André Monteiro<br><br><br>
<br><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_quote">On Mon, Oct 8, 2012 at 12:31 PM, Tuan Le Doan <span dir="ltr"><<a href="mailto:tuan.fetk52@gmail.com" target="_blank">tuan.fetk52@gmail.com</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">

Andre,<br><br>Yes, my location is /var/lib/one/etc/vmm_exec/vmm_exec_kvm.conf.<br>I made like your suggestion, howerver it's still error :( <br><br><div class="gmail_quote">2012/10/8 André Monteiro <span dir="ltr"><<a href="mailto:andre.monteir@gmail.com" target="_blank">andre.monteir@gmail.com</a>></span><br>



<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div>Hello,</div><div> </div><div>Sorry, that's my /opt/opennebula is my self-contained installation folder, you must edit your own folder, something like /srv/cloud/one/etc/vmm or /var/lib/one/etc/. <br clear="all">


<span><font color="#888888">
<br>

--<br>André Monteiro<br><br><br>
<br><br></font></span></div><div><div><div><div><div class="gmail_quote">On Mon, Oct 8, 2012 at 11:50 AM, Tuan Le Doan <span dir="ltr"><<a href="mailto:tuan.fetk52@gmail.com" target="_blank">tuan.fetk52@gmail.com</a>></span> wrote:<br>



<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">

Dear Andre,<br><br>I didn't find /opt/opennebula/etc/vmm_exec/vmm_exec_kvm.conf<br>I'm using CentOS 6.3, is there some different?<br><br>Thank you.<div><div><br><div class="gmail_quote">
2012/10/8 André Monteiro <span dir="ltr"><<a href="mailto:andre.monteir@gmail.com" target="_blank">andre.monteir@gmail.com</a>></span><br>

<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div>Hello,</div><div> </div><div>The one time I had that problem I couldn't connect to hypervisor from virsh. Try virsh -c qemu:///system to confirm that.</div>






<div> </div><div>My solution was:</div><ul><li>Edit /etc/libvirt/libvirtd.conf</li>

<ul><li>     Add unix_sock_group = oneadmin</li><li>     Add  unix_sock_ro_perms = 0777</li><li>     Add unix_sock_rw_perms = 0777</li><li>     Add auth_unix_rw = "none"</li></ul><li>service libvirtd restart</li>








<li>Edit /opt/opennebula/etc/vmm_exec/vmm_exec_kvm.conf</li><ul><li>     Add EMULATOR = /usr/libexec/qemu-kvm</li></ul><li>one stop</li><li>one start</li></ul><div clear="all"> </div><div>--</div><div>André Monteiro</div>






<div><div>

<div> </div><div> </div><div>
 </div><div> </div><div> </div><div class="gmail_quote">On Mon, Oct 8, 2012 at 10:28 AM, Tuan Le Doan <span dir="ltr"><<a href="mailto:tuan.fetk52@gmail.com" target="_blank">tuan.fetk52@gmail.com</a>></span> wrote:<div>








 </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">Thank you for all reply, I fixed that error, but after that i received another error when i created host:<div>








 </div><div> <span style="font-family:"Verdana","sans-serif";font-size:10pt">This
is my oned.log file:</span></div><div>
 </div><div>
Command execution fail: 'if [ -x "/var/tmp/one/im/run_probes" ]; then
/var/tmp/one/im/run_probes kvm 1 centoshost;
else                             
exit 42; fi'</div><div>
Fri Oct  5 16:52:51 2012 [InM][I]: error: authentication failed:
Authorization requires authentication but no agent is available.</div><div>
Fri Oct  5 16:52:51 2012 [InM][I]: </div><div>
Fri Oct  5 16:52:51 2012 [InM][I]: error: failed to connect to the
hypervisor</div><div>
Fri Oct  5 16:52:51 2012 [InM][E]: Error executing kvm.rb</div><div>
Fri Oct  5 16:52:51 2012 [InM][I]: ExitCode: 255</div><div>
Fri Oct  5 16:52:51 2012 [InM][E]: Error monitoring host 1 : MONITOR
FAILURE 1 Error executing kvm.rb</div><div>
 </div><div>
I tried to add libvirt group and add oneadmin user to libvirt and kvm group, but it's still error.</div><div> </div><div>Hope that anyone can help me :P</div><div> </div><div>Regards.</div><div> </div><div> </div><div class="gmail_quote">








2012/10/3 Rodolfo Conte Brufatto <span dir="ltr"><<a href="mailto:rcbrufatto@gmail.com" target="_blank">rcbrufatto@gmail.com</a>></span><div>
 </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">Tuan, there is no key in your .ssh directory. You will need that anyway.<div>








Make sure the key pair file and the public key are available in that directory. After that, depending on how you generated the key files (using ssh-keygen or openssl) you just need to copy your public key to .ssh/authorized_keys. If it was created with openssl you can export it using ssh-keygen as well.</div>








<div>

 </div><div>cheers</div><div> </div><div> </div><div> </div><div> </div><div class="gmail_quote"><div><div>On Wed, Oct 3, 2012 at 6:04 AM, Tuan Le Doan <span dir="ltr"><<a href="mailto:tuan.fetk52@gmail.com" target="_blank">tuan.fetk52@gmail.com</a>></span> wrote:<div>









 </div></div></div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div><div>
I use only one machine for both of Master and Host (I installed OpenNebula and KVM in 1 server).<div><div><div> </div><div> </div><div class="gmail_quote">2012/10/3 Duverne, Cyrille <span dir="ltr"><<a href="mailto:cyrille.duverne@euranova.eu" target="_blank">cyrille.duverne@euranova.eu</a>></span><div>











 </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div><div>Hello Tuan,<div> </div><div>Are you sure that the ssl key of oneadmin on your Master machine is the same than the one in your Host ?</div>








<div>


<font face=""></font> </div><font face=""><div><div> </div><div>CyD<div> </div><div>
Blog : <a href="http://blog.cduverne.com" target="_blank">http://blog.cduverne.com</a></div><div>
Twitter : @CydsWorld</div><div>
 </div><div>
"Imagination is more important than Knowledge"</div><div>
Albert Einstein</div></div><div> </div><div> </div><div> </div></div>Mercredi 03/10/2012 à 9:43 Tuan Le Doan a écrit:<div><div><div> </div><blockquote style="border-width:0px 0px 0px 2px;border-style:none none none solid;border-color:currentColor currentColor currentColor rgb(34,67,127);margin:0px 0px 0px 5px;padding:0px 0px 0px 5px">









Hi CyD,<div> </div><div>This is the output:</div><div> </div><div>[oneadmin@centoshost Desktop]$ ls -lArth /var/lib/one/.ssh/config </div><div>-rw-rw-r--. 1 oneadmin oneadmin 33 Sep 24 15:35 /var/lib/one/.ssh/config</div>








<div> </div><div>Do you know how can i do to fix it?</div><div>



 </div><div>Thanks.</div><div> </div><div class="gmail_quote">2012/10/3 Duverne, Cyrille <span dir="ltr"><<a href="mailto:cyrille.duverne@euranova.eu" target="_blank">cyrille.duverne@euranova.eu</a>></span><div> </div>








<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">



<div><div><font face="arial">Hello Tuan,</font><div> </div><div>Could you send the output of : " ls -lArth /var/lib/one/.ssh/config "</div><div> </div><div>I suspect you didn't chown -R the directory.</div>








<div> </div><div>Kind regards</div><div>CyD</div><div>



<font face="arial"></font> </div><font face="arial"><div><div>
Blog : <a href="http://blog.cduverne.com" target="_blank">http://blog.cduverne.com</a></div><div>
Twitter : @CydsWorld</div><div>
 </div><div>
"Imagination is more important than Knowledge"</div><div>
Albert Einstein</div></div><div> </div><div> </div><div>Mercredi 03/10/2012 à 6:58 Tuan Le Doan a écrit:</div><div><div><div> </div><blockquote style="border-width:0px 0px 0px 2px;border-style:none none none solid;border-color:currentColor currentColor currentColor rgb(34,67,127);margin:0px 0px 0px 5px;padding:0px 0px 0px 5px">









<div>Dear all,</div><div> </div><div>  </div><div>I have installed Opennebula 3.6 and KVM successful on single machine (CentOS 6.3).</div><div> </div><div>But when I add host and run “onehost list” command, the state of host is error.</div>








<div> </div><div>I checked the log file and saw “Bad owner or permisions on /var/lib/one/.ssh/config” message.</div><div>




 </div><div>  </div><div>So I think my error is the password less connection to host was lost.</div><div> </div><div>I tried to change permission of /var/lib/one to oneadmin user with “sudo chown oneadmin:oneadmin /var/lib/one” but it’s still error.</div>








<div>




 </div><div>I couldn’t create SSH key for oneadmin because of “Bad owner or permisions on /var/lib/one/.ssh/config” error.</div><div> </div><div>  </div><div>Anyone can help me to fix it?</div><div> </div><div>  </div><div>








Regards.</div><div clear="all"> </div><div>-- </div><div> </div><div><b><font color="#3333ff" face="georgia, serif">Le Doan Tuan</font><font style="font-family:tahoma,sans-serif" color="#999999">-----------------------------------------------------</font></b><div>













<font color="#666666" face="tahoma, sans-serif">Undergraduate Student of School of Electronic<span style="line-height:19px">s & Telecommunications.</span></font></div><div><font face="tahoma, sans-serif"><span style="line-height:19px"><font color="#666666">Hanoi University of Science & Technology</font><div>













 </div></span><div> </div></font><div> </div><div><div><font color="#999999" face="tahoma, sans-serif">Tel    : <a href="tel:%2B84%20987%20248%20215" value="+84987248215" target="_blank">+84 987 248 215</a></font></div><div>








<font color="#999999" face="tahoma, sans-serif">Yahoo: ledoantuan1</font></div><div><font color="#999999" face="tahoma, sans-serif">Skype: ledoantuan1</font></div>




</div></div></div><div> </div></blockquote></div></div></font></div></div>
</blockquote></div><div> </div><div clear="all"> </div><div>-- </div><div> </div><div><b><font color="#3333ff" face="georgia, serif">Le Doan Tuan</font><font style="font-family:tahoma,sans-serif" color="#999999">-----------------------------------------------------</font></b><div>












<font color="#666666" face="tahoma, sans-serif">Undergraduate Student of School of Electronic<span style="line-height:19px">s & Telecommunications.</span></font></div><div><font face="tahoma, sans-serif"><span style="line-height:19px"><font color="#666666">Hanoi University of Science & Technology</font><div>












 </div></span><div> </div></font><div> </div><div><div><font color="#999999" face="tahoma, sans-serif">Tel    : <a href="tel:%2B84%20987%20248%20215" value="+84987248215" target="_blank">+84 987 248 215</a></font></div><div>








<font color="#999999" face="tahoma, sans-serif">Yahoo: ledoantuan1</font></div><div><font color="#999999" face="tahoma, sans-serif">Skype: ledoantuan1</font></div>



</div></div></div><div> </div></blockquote></div></div></font><div> </div></div></div>
</blockquote></div><div> </div><div clear="all"> </div><div>-- </div><div> </div><div><b><font color="#3333ff" face="georgia, serif">Le Doan Tuan</font><font style="font-family:tahoma,sans-serif" color="#999999">-----------------------------------------------------</font></b><div>











<font color="#666666" face="tahoma, sans-serif">Undergraduate Student of School of Electronic<span style="line-height:19px">s & Telecommunications.</span></font></div><div><font face="tahoma, sans-serif"><span style="line-height:19px"><font color="#666666">Hanoi University of Science & Technology</font><div>











 </div></span><div> </div></font><div> </div><div><div><font color="#999999" face="tahoma, sans-serif">Tel    : <a href="tel:%2B84%20987%20248%20215" value="+84987248215" target="_blank">+84 987 248 215</a></font></div><div>








<font color="#999999" face="tahoma, sans-serif">Yahoo: ledoantuan1</font></div><div><font color="#999999" face="tahoma, sans-serif">Skype: ledoantuan1</font></div>


</div></div></div><div>
 </div></div></div><div> </div></div></div>_______________________________________________<div>
Users mailing list</div><div>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a></div><div>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a></div><div>
 </div><div> </div></blockquote></div><span><font color="#888888"><div> </div><div clear="all"><span><font color="#888888"></font></span> </div><font color="#888888"><div>-- </div><div>Have you tried turning it off and on again?</div>








<div>
 </div></font><div> </div></font></span><font color="#888888"><div> </div></font><div> </div></blockquote></div><span><font color="#888888"><div> </div><div clear="all"> </div><div>-- </div><div> </div><div>

<b><font color="#3333ff" face="georgia, serif">Le Doan Tuan</font><font style="font-family:tahoma,sans-serif" color="#999999">-----------------------------------------------------</font></b><div>
<font color="#666666" face="tahoma, sans-serif">Undergraduate Student of School of Electronic<span style="line-height:19px">s & Telecommunications.</span></font></div><div><font face="tahoma, sans-serif"><span style="line-height:19px"><font color="#666666">Hanoi University of Science & Technology</font><div>









 </div></span><div> </div></font><div> </div><div><div><font color="#999999" face="tahoma, sans-serif">Tel    : <a href="tel:%2B84%20987%20248%20215" value="+84987248215" target="_blank">+84 987 248 215</a></font></div><div>








<font color="#999999" face="tahoma, sans-serif">Yahoo: ledoantuan1</font></div><div><font color="#999999" face="tahoma, sans-serif">Skype: ledoantuan1</font></div>
</div></div></div><div>
 </div></font><div> </div></span><div> </div><div>_______________________________________________</div><div>
Users mailing list</div><div>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a></div><div>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a></div><div>
 </div><div> </div></blockquote></div><div> </div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div><b><font color="#3333ff" face="georgia, serif">Le Doan Tuan</font><font style="font-family:tahoma,sans-serif" color="#999999">-----------------------------------------------------</font></b><div>






<font color="#666666" face="tahoma, sans-serif">Undergraduate Student of School of Electronic<span style="line-height:19px">s & Telecommunications.</span></font></div><div><font face="tahoma, sans-serif"><span style="line-height:19px"><font color="#666666">Hanoi University of Science & Technology</font><br>






</span></font><div><div><font color="#999999" face="tahoma, sans-serif">Tel    : <a href="tel:%2B84%20987%20248%20215" value="+84987248215" target="_blank">+84 987 248 215</a></font></div><div><font color="#999999" face="tahoma, sans-serif">Yahoo: ledoantuan1</font></div>





<div><font color="#999999" face="tahoma, sans-serif">Skype: ledoantuan1</font></div>
</div></div></div><br>
</div></div></blockquote></div><br>
</div></div></div></div></blockquote></div><div><div><br><br clear="all"><br>-- <br><div><b><font color="#3333ff" face="georgia, serif">Le Doan Tuan</font><font style="font-family:tahoma,sans-serif" color="#999999">-----------------------------------------------------</font></b><div>



<font color="#666666" face="tahoma, sans-serif">Undergraduate Student of School of Electronic<span style="line-height:19px">s & Telecommunications.</span></font></div><div><font face="tahoma, sans-serif"><span style="line-height:19px"><font color="#666666">Hanoi University of Science & Technology</font><br>



</span></font><div><div><font color="#999999" face="tahoma, sans-serif">Tel    : <a href="tel:%2B84%20987%20248%20215" value="+84987248215" target="_blank">+84 987 248 215</a></font></div><div><font color="#999999" face="tahoma, sans-serif">Yahoo: ledoantuan1</font></div>


<div><font color="#999999" face="tahoma, sans-serif">Skype: ledoantuan1</font></div>
</div></div></div><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br>