[one-users] OpenNebula 3.4.1 - Error creating host for kvm

Mohit Dhingra mohitdhingras at gmail.com
Wed May 9 10:56:36 PDT 2012


*Hello All,*

We are trying to install OpenNebula with kvm as hypervisor, and getting
some problem while creating host.
We have googled the error, but of no use.

Logs from oned.log file
------------------------------------------------------------------------------------------------
Thu May 10 04:41:32 2012 [ReM][D]: HostPoolInfo method invoked
Thu May 10 04:41:32 2012 [ReM][D]: HostPoolInfo method invoked
Thu May 10 04:41:34 2012 [InM][I]: Monitoring host cloud (17)
Thu May 10 04:41:34 2012 [ReM][D]: HostPoolInfo method invoked
Thu May 10 04:41:34 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
Thu May 10 04:41:34 2012 [ReM][D]: AclInfo method invoked
Thu May 10 04:41:34 2012 [InM][I]: ExitCode: 0
Thu May 10 04:41:34 2012 [InM][I]: Command execution fail: 'if [ -x
"/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes kvm 17
cloud; else                              exit 42; fi'
Thu May 10 04:41:34 2012 [InM][I]: error: unable to connect to
'/var/run/libvirt/libvirt-sock', libvirtd may need to be started:
Connection refused
Thu May 10 04:41:34 2012 [InM][I]: error: failed to connect to the
hypervisor
Thu May 10 04:41:34 2012 [InM][E]: Error executing kvm.rb
Thu May 10 04:41:34 2012 [InM][I]: ExitCode: 255
Thu May 10 04:41:34 2012 [InM][E]: Error monitoring host 17 : MONITOR
FAILURE 17 Error executing kvm.rb

Thu May 10 04:41:39 2012 [ReM][D]: HostInfo method invoked
--------------------------------------------------------------------------------------------------------------


Also, libvirtd is running as oneadmin.

oneadmin at cloud:~/var> ps -A -f | grep libvirt
oneadmin  9295     1  0 04:40 ?        00:00:00 /usr/sbin/libvirtd -l -d


And, we have done the changes in libvirtd.conf
unix_sock_group = "cloud"
unix_sock_rw_perms = "0777"
listen_tcp = 1

and in qemu.conf
user = "oneadmin"
group = "cloud"
dynamic_ownership = 0

And, in  50-localauthority.conf,
Identity=unix-user:oneadmin
Action=org.libvirt.unix.manage
#Action=org.libvirt.unix.monitor
ResultAny=yes
ResultInactive=yes
ResultActive=yes


Is there something we are missing out.?? Can somebody please help us out.


*
----------------------------
Thanks & Regards
Mohit Dhingra
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120509/706bcb7e/attachment-0001.htm>


More information about the Users mailing list