<div dir="ltr"><div><div>Hi,<br><br></div>on checking the permissions of /var/lib/one/var/datastores/0/12/disk.0  its shows the owner and group both as root and the user oneadmin belongs to group root. So i think that should not be problem. But the group has only read permission of the file. Can that be the problem? if yes then how to change the  permission, i tried doing it manually but then everytime i create a new VM this file is created with same old permissions. Any help?<br>
<br></div>Thanks,<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 9, 2013 at 1:50 AM, Alexandre Bezroutchko <span dir="ltr"><<a href="mailto:abb@gremwell.com" target="_blank">abb@gremwell.com</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>Hi,<br>
      <br>
      I wonder if "permission denied" error can be a cause of your
      problem. Have you investigated it?<div class="im"><br>
      <br>
      Tue Apr  9 00:50:33 2013 [VMM][D]: Message received: LOG I 12
      error: internal error process exited while connecting to monitor:
      kvm: -drive
      file=/var/lib/one/var/datastores/0/12/disk.0,if=none,id=drive-ide0-0-0,format=qcow2:

      could not open disk image /var/lib/one/var/datastores/0/12/disk.0:
      Permission denied<br>
      <br></div>
      Best regards,<br>
      Alex<div><div class="h5"><br>
      <br>
      On 04/08/2013 09:42 PM, Anant Agarwal wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      <div dir="ltr">
        <div>
          <div>
            <div>HI,  I am unable to create VM, <br>
              <br>
              This is the content of oned.log<br>
              <br>
              Tue Apr  9 00:50:26 2013 [TM][D]: Message received: LOG I
              12 clone: Cloning ../../win-xp-2.qcow2 in
              anant-Inspiron-N5010:/var/lib/one/var/datastores/0/12/disk.0<br>
              Tue Apr  9 00:50:26 2013 [TM][D]: Message received: LOG I
              12 ExitCode: 0<br>
              Tue Apr  9 00:50:28 2013 [TM][D]: Message received: LOG I
              12 context: Generating context block device at
              anant-Inspiron-N5010:/var/lib/one/var/datastores/0/12/disk.1<br>
              Tue Apr  9 00:50:28 2013 [TM][D]: Message received: LOG I
              12 ExitCode: 0<br>
              Tue Apr  9 00:50:28 2013 [TM][D]: Message received:
              TRANSFER SUCCESS 12 -<br>
              Tue Apr  9 00:50:29 2013 [VMM][D]: Message received: LOG I
              12 ExitCode: 0<br>
              Tue Apr  9 00:50:29 2013 [VMM][D]: Message received: LOG I
              12 Successfully execute network driver operation: pre.<br>
              Tue Apr  9 00:50:33 2013 [VMM][D]: Message received: LOG I
              12 Command execution fail: cat << EOT |
              /var/tmp/one/vmm/kvm/deploy
              /var/lib/one/var/datastores/0/12/deployment.0
              anant-Inspiron-N5010 12 anant-Inspiron-N5010<br>
              Tue Apr  9 00:50:33 2013 [VMM][D]: Message received: LOG I
              12 error: Failed to create domain from
              /var/lib/one/var/datastores/0/12/deployment.0<br>
              Tue Apr  9 00:50:33 2013 [VMM][D]: Message received: LOG I
              12 error: internal error process exited while connecting
              to monitor: kvm: -drive
              file=/var/lib/one/var/datastores/0/12/disk.0,if=none,id=drive-ide0-0-0,format=qcow2:
              could not open disk image
              /var/lib/one/var/datastores/0/12/disk.0: Permission denied<br>
              Tue Apr  9 00:50:33 2013 [VMM][D]: Message received: LOG I
              12<br>
              Tue Apr  9 00:50:33 2013 [VMM][D]: Message received: LOG E
              12 Could not create domain from
              /var/lib/one/var/datastores/0/12/deployment.0<br>
              Tue Apr  9 00:50:33 2013 [VMM][D]: Message received: LOG I
              12 ExitCode: 255<br>
              Tue Apr  9 00:50:33 2013 [VMM][D]: Message received: LOG I
              12 Failed to execute virtualization driver operation:
              deploy.<br>
              Tue Apr  9 00:50:33 2013 [VMM][D]: Message received:
              DEPLOY FAILURE 12 Could not create domain from
              /var/lib/one/var/datastores/0/12/deployment.0<br>
              <br>
              <br>
              <br>
            </div>
            This is the config file<br>
            AUTH_MAD=ARGUMENTS=--authn
            ssh,x509,ldap,server_cipher,server_x509,EXECUTABLE=one_auth_mad<br>
            DATASTORE_LOCATION=/var/lib/one/var/datastores<br>
            DATASTORE_MAD=ARGUMENTS=-t 15 -d
            fs,vmware,iscsi,EXECUTABLE=one_datastore<br>
DB=BACKEND=mysql,DB_NAME=opennebula,PASSWD=oneadmin,PORT=0,SERVER=localhost,USER=oneadmin<br>
            DEBUG_LEVEL=3<br>
            DEFAULT_DEVICE_PREFIX=hd<br>
            DEFAULT_IMAGE_TYPE=OS<br>
            ENABLE_OTHER_PERMISSIONS=YES<br>
            HM_MAD=EXECUTABLE=one_hm<br>
            HOST_MONITORING_INTERVAL=600<br>
            HOST_PER_INTERVAL=15<br>
            IMAGE_RESTRICTED_ATTR=SOURCE<br>
            IM_MAD=ARGUMENTS=-r 0 -t 15
            kvm,EXECUTABLE=one_im_ssh,NAME=im_kvm<br>
            MAC_PREFIX=02:00<br>
            MANAGER_TIMER=15<br>
            NETWORK_SIZE=254<br>
            PORT=2633<br>
            SCRIPTS_REMOTE_DIR=/var/tmp/one<br>
            SESSION_EXPIRATION_TIME=900<br>
            TM_MAD=ARGUMENTS=-t 15 -d
            dummy,shared,qcow2,ssh,vmware,iscsi,EXECUTABLE=one_tm<br>
            VM_MAD=ARGUMENTS=-t 15 -r 0
kvm,DEFAULT=vmm_exec/vmm_exec_kvm.conf,EXECUTABLE=one_vmm_exec,NAME=vmm_kvm,TYPE=kvm<br>
            VM_PER_INTERVAL=5<br>
            VM_POLLING_INTERVAL=600<br>
            VM_RESTRICTED_ATTR=CONTEXT/FILES<br>
            VM_RESTRICTED_ATTR=DISK/SOURCE<br>
            VM_RESTRICTED_ATTR=NIC/MAC<br>
            VM_RESTRICTED_ATTR=NIC/VLAN_ID<br>
            VM_RESTRICTED_ATTR=RANK<br>
            VNC_BASE_PORT=5900<br>
            <br>
          </div>
          Initially the datastore path generated was
          /var/lib/one/var//datastore but then i somehow fixed this
          problem and it generates the correct path now, but still VM is
          not getting created.<br>
          <br>
        </div>
        Thanks.<br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><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>

<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>