[one-users] MONITOR FAILURE 4 Error executing kvm.rb

Tobias Honacker Tobias at Honacker.info
Tue Jan 15 03:30:44 PST 2013


your config files must look like this: (works perfect for me)

[root at priv001 ~]# grep -vE '^($|#)' /etc/libvirt/qemu.conf
user = "oneadmin"
group = "oneadmin"
dynamic_ownership = 0

[root at priv001 ~]# grep -vE '^($|#)' /etc/libvirt/libvirtd.conf
listen_tls = 0
listen_tcp = 1
mdns_adv = 0
unix_sock_group = "oneadmin"
unix_sock_rw_perms = "0777"
auth_unix_ro = "none"
auth_unix_rw = "none"

there is no output in your command by executing
grep -vE '^($|#)' /etc/libvirt/qemu.conf


please check your qemu.conf file.


Am 15.01.2013 12:22, schrieb Marco Jagodzinska:
> Hi Jaime,
>
> this is my current configuration. (onehost is working, but onevm 
> isn't. But when I follow the KVM configuration 
> (http://opennebula.org/documentation:rel3.8:kvmg) onehost isn't 
> working any longer)
>
> oneadmin at Arbeitsrechner:~$ grep -vE '^($|#)' /etc/libvirt/libvirtd.conf
> unix_sock_group = "libvirtd"
> unix_sock_rw_perms = "0770"
> auth_unix_ro = "none"
> auth_unix_rw = "none"
>
> oneadmin at Arbeitsrechner:~$ grep -vE '^($|#)' /etc/libvirt/qemu.conf
> oneadmin at Arbeitsrechner:~$
>
> oneadmin at Arbeitsrechner:~$ grep -vE '^($|#)' /etc/apparmor.d/libvirt-qemu
> grep: /etc/apparmor.d/libvirt-qemu: Datei oder Verzeichnis nicht gefunden
>
> That means "not found" ;)
>
> But I put libvirt into complain mode:
>
> root at Arbeitsrechner:~# aa-status
> [...]
> 2 profiles are in complain mode.
>    /usr/lib/libvirt/virt-aa-helper
>    /usr/sbin/libvirtd
> [..]
>
>
> oneadmin at Arbeitsrechner:~$ virsh -c qemu:///system nodeinfo
> CPU-Modell:          x86_64
> CPU(s):              4
> CPU-Frequenz:        1199 MHz
> CPU-Socket(s):       1
> Kern(e) pro Socket:  2
> Thread(s) pro Kern:  2
> NUMA-Zelle(n):       1
> Speichergrösse:     3911112 kB
>
>
> Cheers,
> Marco
>
>
> Am 15.01.2013 12:02, schrieb Jaime Melis:
>> Hi Marco,
>>
>> I'm a bit lost about your current configuration, can you do grep -vE 
>> '^($|#)' on these files and pastebin them to this list?
>> - /etc/libvirt/libvirtd.conf
>> - /etc/libvirt/qemu.conf
>> - /etc/apparmor.d/libvirt-qemu
>>
>> Also, what happens when you do (as oneadmin):
>> $ virsh -c qemu:///system nodeinfo
>>
>> cheers,
>> Jaime
>>
>> On Mon, Jan 14, 2013 at 4:16 PM, Marco Jagodzinska 
>> <jagodzinska at fh-aachen.de <mailto:jagodzinska at fh-aachen.de>> wrote:
>>
>>     I'm working as oneadmin :)
>>     sudo su oneadmin
>>
>>
>>     Am 14.01.2013 16:09, schrieb Duverne, Cyrille:
>>>     Marco,
>>>
>>>     Just to be 100% sure, are you launching and using ONE as oneadmin ?
>>>
>>>     Cheers
>>>     Cyrille
>>>
>>>     Lundi 14/01/2013 à 15:51 Marco Jagodzinska a écrit:
>>>
>>>         Hello again,
>>>
>>>         so you mean changing the two following two parts in
>>>         |/etc/libvirt/libvirtd.conf| ?/
>>>
>>>         unix_sock_group = "libvirt" ->  unix_sock_group = "oneadmin"///
>>>
>>>         and
>>>         /
>>>         //unix_sock_rw_perms = "0770" ->  unix_sock_rw_perms = "0777"
>>>
>>>         I tried it and it still isn't working.
>>>
>>>
>>>         But that strangest thing is: when I don't change anything at
>>>         all "onehost create" is working.
>>>         I thought because of later errors with "onevm create" (see
>>>         mail: [one-users] "Could not  create domain" while trying to
>>>         start a vm, 9.1.), I have to follow the steps for KVM
>>>         configuration from the official site.
>>>
>>>         I dont want to believe that following the official tutorial
>>>         leads to errors you doesn't would have when you do nothing ;)
>>>
>>>         Cheers,
>>>         Marco
>>>         /
>>>
>>>
>>>
>>>         Am 14.01.2013 14:54, schrieb Duverne, Cyrille:
>>>         > Hello again,
>>>         >
>>>         > As mentionned here as well :
>>>         >
>>>         http://lists.opennebula.org/pipermail/users-opennebula.org/2011-March/014614.html
>>>         >
>>>         > You have to run libvirt as oneadmin.
>>>         >
>>>         > Could you try again ?
>>>         >
>>>         > Cheers
>>>         > Cyrille
>>>         >
>>>         > Lundi 14/01/2013 à 14:50 Marco Jagodzinska a écrit:
>>>         >
>>>         >     Hello Cyrille,
>>>         >
>>>         >     thanks for your answer!
>>>         >
>>>         >     I tried both.
>>>         >
>>>         >     With "-l" the command "service libvirt-bin restart"
>>>         isn't longer
>>>         >     working properly:
>>>         >     root at Arbeitsrechner:/# service libvirt-bin restart
>>>         >     stop: Unknown instance:
>>>         >     libvirt-bin start/running, process 25471
>>>         >
>>>         >     Without "-l" the restart is working fine:
>>>         >     root at Arbeitsrechner:/# service libvirt-bin restart
>>>         >     libvirt-bin stop/waiting
>>>         >     libvirt-bin start/running, process 25673
>>>         >
>>>         >     And "onehost create" fails in both cases...
>>>         >
>>>         >     Cheers,
>>>         >     Marco
>>>         >
>>>         >
>>>         >
>>>         >     Am 14.01.2013 14:38, schrieb Duverne, Cyrille:
>>>         >>     Hello Marco,
>>>         >>
>>>         >>     Did you launch livirt with the -l option ?
>>>         >>     As described in the tutorial :
>>>         >>     "
>>>         >>
>>>         >>      *
>>>         >> |/etc/libvirt/libvirtd.conf| : Uncomment "listen_tcp = 1".
>>>         >>         Security configuration is left to the admin's
>>>         choice, file is
>>>         >>         full of useful comments to achieve a correct
>>>         configuration.
>>>         >>         As a tip, if you don't want to use TLS for
>>>         connections set
>>>         >>         |listen_tls = 0|.
>>>         >>
>>>         >>      *
>>>         >> |/etc/default/libvirt-bin| : add *-l* option to
>>>         |libvirtd_opts|
>>>         >>
>>>         >>     "
>>>         >>
>>>         >>     Just my 2 cents.
>>>         >>
>>>         >>     Kind regards
>>>         >>     CyD
>>>         >>
>>>         >>
>>>         >>     Lundi 14/01/2013 à 14:20 Marco Jagodzinska a écrit:
>>>         >>
>>>         >>         Hello again,
>>>         >>
>>>         >>         next try, hoping for an answer ;)
>>>         >>
>>>         >>         (I'm using Xubuntu 12.04 and the latest
>>>         OpenNebula 3.8.3)
>>>         >>
>>>         >>         If I follow the tutorial for configuring KVM
>>>         >>        
>>>         (http://opennebula.org/documentation:rel3.8:kvmg), I receive
>>>         >>         an error
>>>         >>         message when I try to "onehost create localhost
>>>         -i im_kvm -v
>>>         >>         vmm_kvm -n
>>>         >>         dummy"
>>>         >>
>>>         >>         The error (onehost show):
>>>         >>
>>>         >>         ERROR=[
>>>         >>            MESSAGE="Error monitoring host 4 : MONITOR
>>>         FAILURE 4 Error
>>>         >>         executing
>>>         >>         kvm.rb
>>>         >>         ",
>>>         >>            TIMESTAMP="Mon Jan 14 14:10:11 2013" ]
>>>         >>
>>>         >>
>>>         >>
>>>         >>         It seems that the step leading to this error is
>>>         changing
>>>         >>         qemu.conf so
>>>         >>         that it reads as follows:
>>>         >>
>>>         >>         $ grep -vE '^($|#)' /etc/libvirt/qemu.conf
>>>         >>         user = "oneadmin"
>>>         >>         group = "oneadmin"
>>>         >>         dynamic_ownership = 0
>>>         >>
>>>         >>
>>>         >>         Anybody able to help me?
>>>         >>
>>>         >>         Cheers,
>>>         >>         Marco
>>>         >>
>>>         >>
>>>         >> _______________________________________________
>>>         >>         Users mailing list
>>>         >> Users at lists.opennebula.org
>>>         <mailto:Users at lists.opennebula.org>
>>>         <mailto:Users at lists.opennebula.org>
>>>         <mailto:Users at lists.opennebula.org>
>>>         >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>         >>
>>>         >
>>>
>>
>>
>>     _______________________________________________
>>     Users mailing list
>>     Users at lists.opennebula.org <mailto:Users at lists.opennebula.org>
>>     http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>>
>> -- 
>> Jaime Melis
>> Project Engineer
>> OpenNebula - The Open Source Toolkit for Cloud Computing
>> www.OpenNebula.org <http://www.OpenNebula.org> | 
>> jmelis at opennebula.org <mailto:jmelis at opennebula.org>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130115/57d66866/attachment-0002.htm>


More information about the Users mailing list