<html>
  <head>
    <meta content="text/html; charset=ISO-8859-2"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    oneadminoneadmin@nebula-3:~$ ls -l `readlink -f 
    /var/lib/one/0/images/disk.1`<br>
    -rw-rw---- 1 oneadmin root 10737418241 Jun 20 10:57
    /var/lib/one/images/9c52b90a79dba7c26a912d05ff5190b8<br>
    oneadmin@nebula-3:~$ id<br>
    uid=108(oneadmin) gid=115(cloud)
    groups=115(cloud),6(disk),105(kvm),111(libvirtd)<br>
    oneadmin@nebula-3:~$ grep -Ev '^($|#)' /etc/libvirt/qemu.conf<br>
    user = "oneadmin"<br>
    group = "cloud"<br>
    dynamic_ownership = 0<br>
    oneadmin@nebula-3:~$ <br>
    <br>
    <br>
    Dňa 20.06.2012 11:23, Jaime Melis  wrote / napísal(a):
    <blockquote
cite="mid:CA+HrgRo_fWQejX60ObRqcFZGL64VJZZfBEOWLeWqF9ZjQMeTsA@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-2">
      Hello Jan,
      <div><br>
      </div>
      <div>can you please revert to your initial conf (dyn_ownership =
        0) and send us:</div>
      <div><br>
      </div>
      <div># something like this (the disk will have probably changed by
        now):</div>
      <div>$ ls -l `readlink -f <span style=""> </span><span style="">/var/lib/one/5/images/disk.1`</span></div>
      <div><span style=""><br>
        </span></div>
      <div><span style="">and:</span></div>
      <div><span style="">$ id</span></div>
      <div><span style="">$ </span><font color="#222222" face="arial,
          sans-serif">grep -Ev '^($|#)' /etc/libvirt/qemu.conf</font></div>
      <div><font color="#222222" face="arial, sans-serif"><br>
        </font></div>
      <div><span style="">can you confirm that libvirtd is running and
          restarted?</span></div>
      <div><font color="#222222" face="arial, sans-serif"><br>
        </font></div>
      <div><font color="#222222" face="arial, sans-serif">regards,<br>
          Jaime</font></div>
      <div><br>
        <div class="gmail_quote">On Wed, Jun 20, 2012 at 11:14 AM, Jan
          Benadik <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:jan.benadik@atos.net" target="_blank">jan.benadik@atos.net</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> ad1) <br>
              - doesn't help, libvirtd daemon didn't start (dnsmasq
              only)<br>
              - yes - it is owned by oneadmin (but this is link only,
              original file is owned by oneadmin too)<br>
              <br>
              ad2) - doesn't help<br>
              <br>
              Still the same error message.<br>
              <br>
              <br>
              Jan<br>
              <br>
              Dňa 20.06.2012 09:12, cloud.b.lab  wrote / napísal(a):
              <div>
                <div class="h5">
                  <blockquote type="cite">
                    <div
                      style="font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif">Jan,<br>
                      <br>
                      This reply is from a ONE user.<br>
                      <br>
                      Try after making following change:<br>
                      <br>
                      1) In /etc/libvirt/libvirtd.conf set :<br>
                      <br>
                      #unix_sock_group = "libvirtd"<br>
                      unix_sock_group = "oneadmin"<br>
                      <br>
                      <br>
                      <br>
                      Restart Libvirt-bin.<br>
                      <br>
                      Also just check if the ownership of
                      /var/lib/one/5/images/disk.1 is with oneadmin.<br>
                      <br>
                      If that does't help try with following too<br>
                      2) In /etc/libvirt/qemu.conf I have set <br>
                      dynamic_ownership = 1<br>
                      <br>
                      Regards,<br>
                      Anil.<br>
                      <div><br>
                        ---- On Tue, 19 Jun 2012 23:32:43 -0700 <b>Jan
                          Benadik<<a moz-do-not-send="true"
                            href="mailto:jan.benadik@atos.net"
                            target="_blank">jan.benadik@atos.net</a>></b>
                        wrote ---- <br>
                      </div>
                      <br>
                      <blockquote style="border-left:1px solid
                        #0000ff;padding-left:6px">
                        <div bgcolor="#FFFFFF" text="#000000"> Thanks
                          for reply, but it doesn't help.<br>
                          Still the same result ...:-(<br>
                          <br>
                          Jan<br>
                          <br>
                          Dňa 19.06.2012 19:06, Jaime Melis  wrote /
                          napísal(a):
                          <blockquote type="cite"> Hello,
                            <div><br>
                            </div>
                            <div>You probably need to add oneadmin to
                              the disk group.</div>
                            <div><br>
                              Let us know if that doesn't work.</div>
                            <div><br>
                              Cheers,<br>
                              Jaime<br>
                              <br>
                              <div>On Mon, Jun 18, 2012 at 12:44 PM, Jan
                                Benadik <span dir="ltr"><<a
                                    moz-do-not-send="true"
                                    href="mailto:jan.benadik@atos.net"
                                    target="_blank">jan.benadik@atos.net</a>></span>
                                wrote:<br>
                                <blockquote style="margin:0 0 0
                                  .8ex;border-left:1px #ccc
                                  solid;padding-left:1ex">
                                  <div bgcolor="#FFFFFF" text="#000000">
                                    Hi all,<br>
                                    <br>
                                    I have two machines with Ubuntu
                                    12.04 Server ("central" and "host"),
                                    KVM hypervisor, Opennebula 3.2.1,
                                    shared /var/lib/one folder (nfs)<br>
                                    User "oneadmin" and group "cloud"
                                    has the same uid and gid on both
                                    systems, user oneadmin is a member
                                    of kvm and libvirtd group too.<br>
                                    <br>
                                    In /etc/libvirt/libvirtd.conf I have
                                    set :<br>
                                    listen_tls = 0<br>
                                    listen_tcp = 1<br>
                                    unix_sock_group = "libvirtd"<br>
                                    unix_sock_ro_perms = "0777"<br>
                                    unix_sock_rw_perms = "0777"<br>
                                    unix_sock_dir = "/var/run/libvirt"<br>
                                    auth_unix_ro = "none"<br>
                                    auth_unix_rw = "none"<br>
                                    <br>
                                    In /etc/libvirt/qemu.conf I have set
                                    :<br>
                                    - user = "oneadmin"<br>
                                    - group = "cloud"<br>
                                    - dynamic_ownership = 0<br>
                                    <br>
                                    In /etc/apparmor.d/usr.sbin.libvirtd
                                    I have set:<br>
                                    /var/lib/one/** lrwk,<br>
                                    <br>
                                    Daemon libvirtd is running on both
                                    machines.<br>
                                    Permissions for /var/lib/one folder
                                    are:<br>
                                    drwxr-xr-x 15 oneadmin root 4096
                                    June 18 10:46 one<br>
                                    <br>
                                    Permissions of folder
                                    /var/lib/one/images are:<br>
                                    drwsrws--T 2 oneadmin cloud 4096
                                    June 18 10:46 images<br>
                                    <br>
                                    Permissions of images are:<br>
                                    -rw-rw---- 1 oneadmin cloud    
                                    688914432  June 18 10:46
                                    e9203521a014fd8045d64206277acaa6f<br>
                                    -rw-rw---- 1 oneadmin cloud
                                    10737418241 June 18 10:46
                                    6f2589756c6432563546cc36543c55465<br>
                                    <br>
                                    <br>
                                    Monitoring of host is working, but
                                    if I want to start VM, the folloving
                                    error is in /var/log/one/oned.log:<br>
                                    Mon Jun 18 10:17:56 2012 [DiM][I]:
                                    New VM state is ACTIVE.<br>
                                    Mon Jun 18 10:17:57 2012 [LCM][I]:
                                    New VM state is PROLOG.<br>
                                    Mon Jun 18 10:17:57 2012 [VM][I]:
                                    Virtual Machine has no context<br>
                                    Mon Jun 18 10:17:58 2012 [TM][D]:
                                    tm_clone.sh:
                                    seed:/var/lib/one/images/e9203521a14fd8045d64206277acaa6f
                                    myto:/var/lib/one/5/images/disk.0<br>
                                    Mon Jun 18 10:17:58 2012 [TM][D]:
                                    tm_clone.sh: DST:
                                    /var/lib/one/5/images/disk.0<br>
                                    Mon Jun 18 10:17:58 2012 [TM][I]:
                                    tm_clone.sh: Creating directory
                                    /var/lib/one/5/images<br>
                                    Mon Jun 18 10:17:58 2012 [TM][I]:
                                    tm_clone.sh: Executed "mkdir -p
                                    /var/lib/one/5/images".<br>
                                    Mon Jun 18 10:17:58 2012 [TM][I]:
                                    tm_clone.sh: Executed "chmod a+w
                                    /var/lib/one/5/images".<br>
                                    Mon Jun 18 10:17:58 2012 [TM][I]:
                                    tm_clone.sh: Cloning
                                    /var/lib/one/images/e9203521a14fd8045d64206277acaa6f<br>
                                    Mon Jun 18 10:17:58 2012 [TM][I]:
                                    tm_clone.sh: Executed "cp -r
                                    /var/lib/one/images/e9203521a14fd8045d64206277acaa6f
                                    /var/lib/one/5/images/disk.0".<br>
                                    Mon Jun 18 10:17:58 2012 [TM][I]:
                                    tm_clone.sh: Executed "chmod a+rw
                                    /var/lib/one/5/images/disk.0".<br>
                                    Mon Jun 18 10:17:58 2012 [TM][I]:
                                    ExitCode: 0<br>
                                    Mon Jun 18 10:17:58 2012 [TM][I]:
                                    tm_ln.sh: Creating directory
                                    /var/lib/one/5/images<br>
                                    Mon Jun 18 10:17:58 2012 [TM][I]:
                                    tm_ln.sh: Executed "mkdir -p
                                    /var/lib/one/5/images".<br>
                                    Mon Jun 18 10:17:58 2012 [TM][I]:
                                    tm_ln.sh: Executed "chmod a+w
                                    /var/lib/one/5/images".<br>
                                    Mon Jun 18 10:17:58 2012 [TM][I]:
                                    tm_ln.sh: Link
                                    /var/lib/one/images/6f540e1c32177f6e5f5cc9a51bc42408<br>
                                    Mon Jun 18 10:17:58 2012 [TM][I]:
                                    tm_ln.sh: Executed "ln -s
                                    /var/lib/one/images/6f540e1c32177f6e5f5cc9a51bc42408
                                    /var/lib/one/5/images/disk.1".<br>
                                    Mon Jun 18 10:17:58 2012 [TM][I]:
                                    ExitCode: 0<br>
                                    Mon Jun 18 10:18:04 2012 [LCM][I]:
                                    New VM state is BOOT<br>
                                    Mon Jun 18 10:18:04 2012 [VMM][I]:
                                    Generating deployment file:
                                    /var/lib/one/5/deployment.0<br>
                                    Mon Jun 18 10:18:04 2012 [VMM][I]:
                                    ExitCode: 0<br>
                                    Mon Jun 18 10:18:04 2012 [VMM][I]:
                                    Successfully execute network driver
                                    operation: pre.<br>
                                    Mon Jun 18 10:18:07 2012 [VMM][I]:
                                    Command execution fail: cat <<
                                    EOT | /var/tmp/one/vmm/kvm/deploy
                                    /var/lib/one/5/images/deployment.0
                                    myto 5 myto<br>
                                    Mon Jun 18 10:18:07 2012 [VMM][I]:
                                    error: Failed to create domain from
                                    /var/lib/one/5/images/deployment.0<br>
                                    Mon Jun 18 10:18:07 2012 [VMM][I]:
                                    error: internal error process exited
                                    while connecting to monitor: kvm:
                                    -drive
                                    file=/var/lib/one/5/images/disk.1,if=none,id=drive-ide0-0-0,format=raw:
                                    could not open disk image
                                    /var/lib/one/5/images/disk.1:
                                    Permission denied<br>
                                    Mon Jun 18 10:18:07 2012 [VMM][I]: <br>
                                    Mon Jun 18 10:18:07 2012 [VMM][E]:
                                    Could not create domain from
                                    /var/lib/one/5/images/deployment.0<br>
                                    Mon Jun 18 10:18:07 2012 [VMM][I]:
                                    ExitCode: 255<br>
                                    Mon Jun 18 10:18:07 2012 [VMM][I]:
                                    Failed to execute virtualization
                                    driver operation: deploy.<br>
                                    Mon Jun 18 10:18:07 2012 [VMM][E]:
                                    Error deploying virtual machine:
                                    Could not create domain from
                                    /var/lib/one/5/images/deployment.0<br>
                                    Mon Jun 18 10:18:12 2012 [DiM][I]:
                                    New VM state is FAILED<br>
                                    <br>
                                    I dont knew where is issue - could
                                    somebody help me?<br>
                                    <br>
                                    Thx<span><font color="#888888"><br>
                                        <div>-- <br>
                                          <font color="black"
                                            face="Verdana" size="3">Jan
                                            Benadik<br>
                                            <font face="Verdana"><a
                                                moz-do-not-send="true">+421
                                                46 5151 332</a><br>
                                              <a moz-do-not-send="true">+421
                                                903 691 634</a><br>
                                              <a moz-do-not-send="true"
href="mailto://jan.benadik@atos.net" target="_blank">jan.benadik@atos.net</a><br>
                                              Vinohradn cka 6, 971 01
                                              Prievidza<br>
                                              <a moz-do-not-send="true"
href="http://www.sk.atos.net" target="_blank">www.sk.atos.net</a><br>
__________________________________<br>
                                              <br>
                                              <br>
                                            </font> </font></div>
                                      </font></span></div>
                                  <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><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>
                            <br clear="all">
                            <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><br>
                          </blockquote>
                          <br>
                          <div>-- <br>
                            <font color="black" face="Verdana" size="3">
                              <img alt=""
                                src="cid:part12.00060000.09030108@atos.net"
                                height="15" width="252"><br>
                              <b>Ján Beňadik</b><br>
                              <font face="Verdana"> Managed Services -
                                Solution Design Architect<br>
                                <a moz-do-not-send="true"
                                  href="tel:%2B421%2046%205151%20332"
                                  value="+421465151332" target="_blank">+421
                                  46 5151 332</a><br>
                                <a moz-do-not-send="true"
                                  href="tel:%2B421%20903%20691%20634"
                                  value="+421903691634" target="_blank">+421
                                  903 691 634</a><br>
                                <a moz-do-not-send="true"
                                  href="mailto://jan.benadik@atos.net"
                                  target="_blank">jan.benadik@atos.net</a><br>
                                Vinohradnícka 6, 971 01 Prievidza<br>
                                <a moz-do-not-send="true"
                                  href="http://www.sk.atos.net"
                                  target="_blank">www.sk.atos.net</a><br>
                                __________________________________<br>
                                <br>
                                <img alt=""
                                  src="cid:part17.00070902.08080009@atos.net"
                                  height="58" width="261"><br>
                              </font> </font></div>
                          _______________________________________________
                          <br>
                          Users mailing list <br>
                          <a moz-do-not-send="true"
                            href="mailto:Users@lists.opennebula.org"
                            target="_blank">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>
                        </div>
                      </blockquote>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                  <div>-- <br>
                    <font color="black" face="Verdana" size="3"> <img
                        alt=""
                        src="cid:part20.00090608.05020304@atos.net"
                        height="15" width="252"><br>
                      <b>Ján Beňadik</b><br>
                      <font face="Verdana"> Managed Services - Solution
                        Design Architect<br>
                        <a moz-do-not-send="true"
                          href="tel:%2B421%2046%205151%20332"
                          value="+421465151332" target="_blank">+421 46
                          5151 332</a><br>
                        <a moz-do-not-send="true"
                          href="tel:%2B421%20903%20691%20634"
                          value="+421903691634" target="_blank">+421 903
                          691 634</a><br>
                        <a moz-do-not-send="true"
                          href="mailto://jan.benadik@atos.net"
                          target="_blank">jan.benadik@atos.net</a><br>
                        Vinohradnícka 6, 971 01 Prievidza<br>
                        <a moz-do-not-send="true"
                          href="http://www.sk.atos.net" target="_blank">www.sk.atos.net</a><br>
                        __________________________________<br>
                        <br>
                        <img alt=""
                          src="cid:part25.09050900.01010004@atos.net"
                          height="58" width="261"><br>
                      </font> </font></div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <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><br>
      </div>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-2">
      <title></title>
      <font color="black" face="Verdana" size="3"> <img alt=""
          src="cid:part28.03070704.08030908@atos.net" height="15"
          width="252"><br>
        <b>Ján Beňadik</b><br>
        <font face="Verdana" size="2"> Managed Services - Solution
          Design Architect<br>
          +421 46 5151 332<br>
          +421 903 691 634<br>
          <a href="mailto://jan.benadik@atos.net">jan.benadik@atos.net</a><br>
          Vinohradnícka 6, 971 01 Prievidza<br>
          <a href="http://www.sk.atos.net">www.sk.atos.net</a><br>
          __________________________________<br>
          <br>
          <img alt="" src="cid:part31.08010506.01010404@atos.net"
            height="58" width="261"><br>
        </font> </font></div>
  </body>
</html>