<div dir="ltr">Hi Marco,<div><br></div><div style>yes, just like Tobias says it should work. Can you configure the files the same way Tobias said (and restart libvirtd) and run these commands (as oneadmin in the worker node):</div>

<div style>$ <span style="font-family:arial,sans-serif;font-size:13px">virsh -c qemu:///system nodeinfo</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">$ </span><font face="arial, sans-serif">/var/tmp/one/im/kvm.d/kvm.rb</font></div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 15, 2013 at 12:30 PM, Tobias Honacker <span dir="ltr"><<a href="mailto:Tobias@honacker.info" target="_blank">Tobias@honacker.info</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>your config files must look like this:
      (works perfect for me)<br>
      <br>
      [root@priv001 ~]# grep -vE '^($|#)' /etc/libvirt/qemu.conf<div class="im"><br>
      user = "oneadmin"<br>
      group = "oneadmin"<br>
      dynamic_ownership = 0<br>
      <br></div>
      [root@priv001 ~]# grep -vE '^($|#)' /etc/libvirt/libvirtd.conf<br>
      listen_tls = 0<br>
      listen_tcp = 1<br>
      mdns_adv = 0<br>
      unix_sock_group = "oneadmin"<br>
      unix_sock_rw_perms = "0777"<div class="im"><br>
      auth_unix_ro = "none"<br>
      auth_unix_rw = "none"<br>
      <br></div>
      there is no output in your command by executing<div class="im"><br>
      grep -vE '^($|#)' /etc/libvirt/qemu.conf <br>
      <br>
      <br></div>
      please check your qemu.conf file.<br>
      <br>
      <br>
      Am 15.01.2013 12:22, schrieb Marco Jagodzinska:<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      
      Hi Jaime,<br>
      <br>
      this is my current configuration. (onehost is working, but onevm
      isn't. But when I follow the KVM configuration <font face="arial">(<a href="http://opennebula.org/documentation:rel3.8:kvmg" target="_blank">http://opennebula.org/documentation:rel3.8:kvmg</a>)
        onehost isn't working any longer)</font><br>
      <br>
      oneadmin@Arbeitsrechner:~$ grep -vE '^($|#)'
      /etc/libvirt/libvirtd.conf<br>
      unix_sock_group = "libvirtd"<br>
      unix_sock_rw_perms = "0770"<br>
      auth_unix_ro = "none"<br>
      auth_unix_rw = "none"<br>
      <br>
      oneadmin@Arbeitsrechner:~$ grep -vE '^($|#)'
      /etc/libvirt/qemu.conf<br>
      oneadmin@Arbeitsrechner:~$<br>
      <br>
      oneadmin@Arbeitsrechner:~$ grep -vE '^($|#)'
      /etc/apparmor.d/libvirt-qemu<br>
      grep: /etc/apparmor.d/libvirt-qemu: Datei oder Verzeichnis nicht
      gefunden<br>
      <br>
      That means "not found" ;)<br>
      <br>
      But I put libvirt into complain mode:<br>
      <br>
      root@Arbeitsrechner:~# aa-status <br>
      [...]<br>
      2 profiles are in complain mode.<br>
         /usr/lib/libvirt/virt-aa-helper<br>
         /usr/sbin/libvirtd<br>
      [..]<br>
      <br>
      <br>
      oneadmin@Arbeitsrechner:~$ virsh -c qemu:///system nodeinfo<br>
      CPU-Modell:          x86_64<br>
      CPU(s):              4<br>
      CPU-Frequenz:        1199 MHz<br>
      CPU-Socket(s):       1<br>
      Kern(e) pro Socket:  2<br>
      Thread(s) pro Kern:  2<br>
      NUMA-Zelle(n):       1<br>
      Speichergrösse:     3911112 kB<br>
      <br>
      <br>
      Cheers,<br>
      Marco<br>
      <br>
      <br>
      <div>Am 15.01.2013 12:02, schrieb Jaime
        Melis:<br>
      </div>
      <blockquote type="cite">
        <div dir="ltr">
          <div dir="ltr">Hi Marco,<br>
            <br>
            I'm a bit lost about your current configuration, can you do
            grep -vE '^($|#)' on these files and pastebin them to this
            list?<br>
            - /etc/libvirt/libvirtd.conf<br>
            - /etc/libvirt/qemu.conf<br>
            - /etc/apparmor.d/libvirt-qemu<br>
            <br>
            Also, what happens when you do (as oneadmin):<br>
            $ virsh -c qemu:///system nodeinfo<br>
            <br>
            cheers,<br>
            Jaime
            <div><span style="font-family:monospace;font-size:10px"><br>
              </span></div>
          </div>
          <div class="gmail_extra">On Mon, Jan 14, 2013 at 4:16 PM,
            Marco Jagodzinska <span dir="ltr"><<a href="mailto:jagodzinska@fh-aachen.de" target="_blank">jagodzinska@fh-aachen.de</a>></span>
            wrote:<br>
            <div class="gmail_quote">
              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div bgcolor="#FFFFFF" text="#000000"> I'm working as
                  oneadmin :)<br>
                  sudo su oneadmin<br>
                  <br>
                  <br>
                  <div>Am 14.01.2013 16:09, schrieb Duverne, Cyrille:<br>
                  </div>
                  <div>
                    <div>
                      <blockquote type="cite">
                        <div><font face="arial">Marco,<br>
                            <br>
                            Just to be 100% sure, are you launching and
                            using ONE as oneadmin ?<br>
                            <br>
                            Cheers<br>
                            Cyrille<br>
                            <br>
                            Lundi 14/01/2013 à 15:51 Marco Jagodzinska a
                            écrit:<br>
                            <blockquote style="border:0;border-left:2px solid #22437f;padding:0px;margin:0px;padding-left:5px;margin-left:5px">Hello

                              again,<br>
                              <br>
                              so you mean changing the two following two
                              parts in <br>
                              |/etc/libvirt/libvirtd.conf| ?/<br>
                              <br>
                              unix_sock_group = "libvirt"
                              ->  unix_sock_group = "oneadmin"///<br>
                              <br>
                              and<br>
                              /<br>
                              //unix_sock_rw_perms = "0770"
                              ->  unix_sock_rw_perms = "0777"<br>
                              <br>
                              I tried it and it still isn't working.<br>
                              <br>
                              <br>
                              But that strangest thing is: when I don't
                              change anything at all "onehost create" is
                              working.<br>
                              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.<br>
                              <br>
                              I dont want to believe that following the
                              official tutorial leads to errors you
                              doesn't would have when you do nothing <img alt=";)"><br>
                              <br>
                              Cheers,<br>
                              Marco<br>
                              /<br>
                              <br>
                              <br>
                              <br>
                              Am 14.01.2013 14:54, schrieb Duverne,
                              Cyrille:<br>
                              > Hello again,<br>
                              ><br>
                              > As mentionned here as well : <br>
                              > <a href="http://lists.opennebula.org/pipermail/users-opennebula.org/2011-March/014614.html" target="_blank">http://lists.opennebula.org/pipermail/users-opennebula.org/2011-March/014614.html</a><br>


                              ><br>
                              > You have to run libvirt as oneadmin.<br>
                              ><br>
                              > Could you try again ?<br>
                              ><br>
                              > Cheers<br>
                              > Cyrille<br>
                              ><br>
                              > Lundi 14/01/2013 à 14:50 Marco
                              Jagodzinska a écrit:<br>
                              ><br>
                              >     Hello Cyrille,<br>
                              ><br>
                              >     thanks for your answer!<br>
                              ><br>
                              >     I tried both.<br>
                              ><br>
                              >     With "-l" the command "service
                              libvirt-bin restart" isn't longer<br>
                              >     working properly:<br>
                              >     root@Arbeitsrechner:/# service
                              libvirt-bin restart<br>
                              >     stop: Unknown instance:<br>
                              >     libvirt-bin start/running,
                              process 25471<br>
                              ><br>
                              >     Without "-l" the restart is
                              working fine:<br>
                              >     root@Arbeitsrechner:/# service
                              libvirt-bin restart<br>
                              >     libvirt-bin stop/waiting<br>
                              >     libvirt-bin start/running,
                              process 25673<br>
                              ><br>
                              >     And "onehost create" fails in
                              both cases...<br>
                              ><br>
                              >     Cheers,<br>
                              >     Marco<br>
                              ><br>
                              ><br>
                              ><br>
                              >     Am 14.01.2013 14:38, schrieb
                              Duverne, Cyrille:<br>
                              >>     Hello Marco,<br>
                              >><br>
                              >>     Did you launch livirt with
                              the -l option ?<br>
                              >>     As described in the tutorial
                              :<br>
                              >>     "<br>
                              >><br>
                              >>      *<br>
                              >>        
                              |/etc/libvirt/libvirtd.conf| : Uncomment
                              “listen_tcp = 1”.<br>
                              >>         Security configuration is
                              left to the admin's choice, file is<br>
                              >>         full of useful comments
                              to achieve a correct configuration.<br>
                              >>         As a tip, if you don't
                              want to use TLS for connections set<br>
                              >>         |listen_tls = 0|.<br>
                              >><br>
                              >>      *<br>
                              >>        
                              |/etc/default/libvirt-bin| : add *-l*
                              option to |libvirtd_opts|<br>
                              >><br>
                              >>     "<br>
                              >><br>
                              >>     Just my 2 cents.<br>
                              >><br>
                              >>     Kind regards<br>
                              >>     CyD<br>
                              >><br>
                              >><br>
                              >>     Lundi 14/01/2013 à 14:20
                              Marco Jagodzinska a écrit:<br>
                              >><br>
                              >>         Hello again,<br>
                              >><br>
                              >>         next try, hoping for an
                              answer <img alt=";)"><br>
                              >><br>
                              >>         (I'm using Xubuntu 12.04
                              and the latest OpenNebula 3.8.3)<br>
                              >><br>
                              >>         If I follow the tutorial
                              for configuring KVM<br>
                              >>         (<a href="http://opennebula.org/documentation:rel3.8:kvmg" target="_blank">http://opennebula.org/documentation:rel3.8:kvmg</a>),


                              I receive<br>
                              >>         an error<br>
                              >>         message when I try to
                              "onehost create localhost -i im_kvm -v<br>
                              >>         vmm_kvm -n<br>
                              >>         dummy"<br>
                              >><br>
                              >>         The error (onehost show):<br>
                              >><br>
                              >>         ERROR=[<br>
                              >>            MESSAGE="Error
                              monitoring host 4 : MONITOR FAILURE 4
                              Error<br>
                              >>         executing<br>
                              >>         kvm.rb<br>
                              >>         ",<br>
                              >>            TIMESTAMP="Mon Jan 14
                              14:10:11 2013" ]<br>
                              >><br>
                              >><br>
                              >><br>
                              >>         It seems that the step
                              leading to this error is changing<br>
                              >>         qemu.conf so<br>
                              >>         that it reads as follows:<br>
                              >><br>
                              >>         $ grep -vE '^($|#)'
                              /etc/libvirt/qemu.conf<br>
                              >>         user = "oneadmin"<br>
                              >>         group = "oneadmin"<br>
                              >>         dynamic_ownership = 0<br>
                              >><br>
                              >><br>
                              >>         Anybody able to help me?<br>
                              >><br>
                              >>         Cheers,<br>
                              >>         Marco<br>
                              >><br>
                              >><br>
                              >>        
                              _______________________________________________<br>
                              >>         Users mailing list<br>
                              >>         <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>
                              <a href="mailto:Users@lists.opennebula.org" target="_blank"><mailto: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>
                              >><br>
                              ></blockquote>
                          </font></div>
                      </blockquote>
                      <br>
                    </div>
                  </div>
                </div>
                <br>
                _______________________________________________<br>
                Users mailing list<br>
                <a 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>
                <br>
              </blockquote>
            </div>
            <br>
          </div>
          <div><br>
          </div>
          -- <br>
          Jaime Melis<br>
          Project Engineer<br>
          OpenNebula - The Open Source Toolkit for Cloud Computing<br>
          <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a> </div>
      </blockquote>
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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>
<br></blockquote></div><br></div><br clear="all"><div><br></div>-- <br>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a>