[one-users] libvirt and kvm permission problem.

Idafen Santana Pérez idafensp at gmail.com
Thu Mar 31 02:14:59 PDT 2011


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,  <ignazio.cassano at provincia.torino.it> wrote:
> Yu must set libvirt to run with cloud group permissions in libvirtd.conf
>
> ----- Messaggio da idafensp at gmail.com ---------
>    Data: Wed, 30 Mar 2011 17:20:41 +0200
>    Da: Idafen Santana Pérez <idafensp at gmail.com>
>  Oggetto: [one-users] libvirt and kvm permission problem.
>      A: users at lists.opennebula.org
>
>
>> 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
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
>
> ----- Fine messaggio da idafensp at gmail.com -----
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



More information about the Users mailing list