<html>
  <head>
    <meta content="text/html; charset=ISO-8859-2"
      http-equiv="Content-Type">
  </head>
  <body 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
cite="mid:CA+HrgRoXnM4fMpk+usPcoXLf7bivww46qi2Hzf5V0pEi7v70zA@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-2">
      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 class="gmail_quote">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 class="gmail_quote" 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"
                          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>
                        <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 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:part10.01050407.02060707@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:part13.02060904.02020209@atos.net"
            height="58" width="261"><br>
        </font> </font></div>
  </body>
</html>