<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    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
        moz-do-not-send="true"
        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 class="moz-cite-prefix">Am 15.01.2013 12:02, schrieb Jaime
      Melis:<br>
    </div>
    <blockquote
cite="mid:CA+HrgRoBtR5Q+Rnpcg7TXrL80VRaTJpFuWk1FOvFXxtiCfKReQ@mail.gmail.com"
      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 style=""><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 moz-do-not-send="true"
              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 class="h5">
                    <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
                              moz-do-not-send="true" 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 moz-do-not-send="true"
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 moz-do-not-send="true" 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 moz-do-not-send="true"
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 moz-do-not-send="true"
                              href="mailto:Users@lists.opennebula.org"
                              target="_blank">Users@lists.opennebula.org</a>
                            <a moz-do-not-send="true"
                              href="mailto:Users@lists.opennebula.org"
                              target="_blank"><mailto:Users@lists.opennebula.org></a><br>
                            >>         <a moz-do-not-send="true"
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 moz-do-not-send="true"
                href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
              <a moz-do-not-send="true"
                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 moz-do-not-send="true" href="http://www.OpenNebula.org"
          target="_blank">www.OpenNebula.org</a> | <a
          moz-do-not-send="true" href="mailto:jmelis@opennebula.org"
          target="_blank">jmelis@opennebula.org</a>
      </div>
    </blockquote>
    <br>
  </body>
</html>