<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'>Susmita ,<br><br>some tips from a OpenNeula user:<br><br>Please cross check the following for "error: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: Permission denied"  :<br><br>1)<br>edit file: /etc/libvirt/libvirtd.conf as make following changes:<br><pre>unix_sock_group = "oneadmin" [if you have given a different name for the group like "cloud" , provide that]<br><br><br>edit file: /etc/libvirt/qemu.conf and make following changes<br>vnc_listen = "0.0.0.0"<br>user = "oneadmin"<br>group = "cloud"<br>dynamic_ownership = 1<br><br>then restart libvirt as root : /etc/init.d/libvirt-bin restart<br><br>try VM creation.<br><br>If the issue still exists then,<br><br>2) Make following change in file: /etc/libvirt/libvirtd.conf<br>unix_sock_rw_perms = "0777"  then restart libvirt as root : /etc/init.d/libvirt-bin restart <br>sudo chown oneadmin:kvm /dev/kvm<br>try VM creation. <br>Regards,<br>Anil.<br> <br><br><br></pre><br><div id="1"><br>---- On Thu, 31 May 2012 04:55:10 -0700 <b>Hector Sanjuan<<a href='mailto:hsanjuan@opennebula.org' target='_blank'>hsanjuan@opennebula.org</a>></b> wrote ---- <br></div><br><blockquote style="border-left: 1px solid #0000FF; padding-left: 6px;">Please check that libvirtd is running and that the oneadmin user has  <br>permissions to connect to the libvirt socket. This permissions can be  <br>adjusted in /etc/libvirt/libvirtd.conf or somewhere similar in Ubuntu i  <br>guess.<br><br>Hector<br><br>En Thu, 31 May 2012 13:43:49 +0200, Susmita Horrow <<a subj="" mailid="hsusmita4%40gmail.com" href="mailto:hsusmita4@gmail.com" target="_blank">hsusmita4@gmail.com</a>>  <br>escribió:<br><br>> Hello,<br>> I have deployed opennebula 3.0 on machine running on ubuntu with KVM<br>> hypervisor. I am getting the following error.<br>><br>><br>>    - Thu May 31 17:03:35 2012 [InM][I]: Command execution fail: 'if [ -x<br>>    "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes kvm 8<br>>    oneadmin@192.168.0.2; else                              exit 42; fi'<br>>    Thu May 31 17:03:35 2012 [InM][I]: error: unable to connect to<br>>    '/var/run/libvirt/libvirt-sock', libvirtd may need to be started:<br>>    Permission denied<br>>    Thu May 31 17:03:35 2012 [InM][I]: error: failed to connect to the<br>>    hypervisor<br>>    Thu May 31 17:03:35 2012 [InM][E]: Error executing kvm.rb<br>>    Thu May 31 17:03:35 2012 [InM][I]: ExitCode: 255<br>>    Thu May 31 17:03:35 2012 [InM][E]: Error monitoring host 8 : MONITOR<br>>    FAILURE 8 Error executing kvm.rb<br>><br>><br>> Please help me to get through it.<br>><br>> Regards<br>> Susmita Horrow<br><br><br>-- <br>Hector Sanjuan<br>OpenNebula Developer<br>_______________________________________________<br>Users mailing list<br><a subj="" mailid="Users%40lists.opennebula.org" href="mailto:Users@lists.opennebula.org" target="_blank">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></blockquote><br></div></body></html>