Thanks a lot Ignazio, I've changed this parameters:
unix_sock_group = "libvirt" -> unix_sock_group = "oneadmin" (oneadmin is my cloud group, shame on me I've called user and group the same) unix_sock_rw_perms = "0770" -> unix_sock_rw_perms = "0777" I am not sure at all about changing unix_sock_rw_perms, but it doesn't work unless I do that. Then I restarted the libvirtd and one daemons and it seem to be working. Regards, Idafen On Thu, Mar 31, 2011 at 8:36 AM, <[email protected]> wrote: > Yu must set libvirt to run with cloud group permissions in libvirtd.conf > > ----- Messaggio da [email protected] --------- > Data: Wed, 30 Mar 2011 17:20:41 +0200 > Da: Idafen Santana Pérez <[email protected]> > Oggetto: [one-users] libvirt and kvm permission problem. > A: [email protected] > > >> Hi, >> >> I'm having problems with libvirtd and kvm. I can create a host (called >> localhost) and it is on until systems tries to monitorize it. I'm >> executing libvirtd as root (? can not do it as oneadmin) and running >> one under my oneadmin account. This is my oned.log output. >> >> >> Wed Mar 30 17:08:36 2011 [ReM][D]: HostPoolInfo method invoked >> Wed Mar 30 17:08:36 2011 [ReM][D]: VirtualMachinePoolInfo method invoked >> Wed Mar 30 17:08:36 2011 [InM][I]: Command execution fail: 'if [ -x >> "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes kvm >> localhost; else exit 42; fi' >> Wed Mar 30 17:08:36 2011 [InM][I]: STDERR follows. >> Wed Mar 30 17:08:36 2011 [InM][I]: error: unable to connect to >> '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: >> Permission denied >> Wed Mar 30 17:08:36 2011 [InM][I]: error: failed to connect to the >> hypervisor >> Wed Mar 30 17:08:36 2011 [InM][I]: Error executing kvm.rb >> Wed Mar 30 17:08:36 2011 [InM][I]: ExitCode: 255 >> Wed Mar 30 17:08:36 2011 [InM][E]: Error monitoring host 0 : MONITOR >> FAILURE 0 Could not monitor host localhost. >> >> >> Any idea? >> >> Thanks in advance. >> Idafen >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >> > > > ----- Fine messaggio da [email protected] ----- > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > _______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
