<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello everybody,<br>
    <br>
    I have 1 computer as a frontend running OpenNebula 3.6 and CentOS
    6.2, two hosts running qemu-kvm and CentOS 6.2 and 1 nfs server.<br>
    I've created an image of type CDRom, the corresponding template and
    the VM with just one disk (which corresponds to the CD image). After
    some minutes (aprox. 15) in PROLOG status, the VM creation fails and
    the log outputs an input/output error when trying to copy cd image.<br>
    <font face="Helvetica, Arial, sans-serif"><small><br>
        Fri Aug 24 13:27:50 2012 [DiM][I]: New VM state is ACTIVE.<br>
        Fri Aug 24 13:27:51 2012 [LCM][I]: New VM state is PROLOG.<br>
        Fri Aug 24 13:27:51 2012 [VM][I]: Virtual Machine has no context<br>
        Fri Aug 24 13:43:28 2012 [TM][I]: Command execution fail:
        /var/lib/one/remotes/tm/shared/clone
        frontend:/var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a
        Host2:/var/lib/one//datastores/0/25/disk.0 25 104<br>
        Fri Aug 24 13:43:28 2012 [TM][I]: clone: Cloning
        ../../104/6ef70fa8c7147496f3c8667b690be06a in
        Host2:/var/lib/one//datastores/0/25/disk.0<br>
        Fri Aug 24 13:43:28 2012 [TM][E]: clone: Command "cd
        /var/lib/one/datastores/0/25; cp -r
        ../../104/6ef70fa8c7147496f3c8667b690be06a
        /var/lib/one/datastores/0/25/disk.0" failed: cp: writing
        `/var/lib/one/datastores/0/25/disk.0': Input/output error<br>
        Fri Aug 24 13:43:28 2012 [TM][E]: Error copying
        frontend:/var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a
        to Host2:/var/lib/one//datastores/0/25/disk.0<br>
        Fri Aug 24 13:43:28 2012 [TM][I]: ExitCode: 1<br>
        Fri Aug 24 13:43:28 2012 [TM][E]: Error executing image transfer
        script: Error copying
        frontend:/var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a
        to Host2:/var/lib/one//datastores/0/25/disk.0<br>
        Fri Aug 24 13:43:29 2012 [DiM][I]: New VM state is FAILED</small></font><br>
    <br>
    I've remounted nfs shared directory on each nfs client (frontend and
    hosts) because it showed an NFS Stale File handle error and now it
    appears one input/outpu. Does anybody know how to solve this error?<br>
    At the end you'll find information about the image, template and vm.<br>
    <br>
    <br>
    Thanks in advance,<br>
    <br>
    Carlos.<br>
    <br>
    <br>
    <br>
    <small><font face="Helvetica, Arial, sans-serif">[oneadmin@frontend
        ~]$ oneimage show 12<br>
        IMAGE 12
        INFORMATION                                                           
        <br>
        ID             : 12                  <br>
        NAME           : cd                  <br>
        USER           : oneadmin            <br>
        GROUP          : oneadmin            <br>
        DATASTORE      : fasysds             <br>
        TYPE           : CDROM               <br>
        REGISTER TIME  : 08/24 13:14:32      <br>
        PERSISTENT     : No                  <br>
        SOURCE         :
        /var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a<br>
        PATH           : /var/tmp/one/thin-body20120824-1619-1ij0kw0-0<br>
        SIZE           : 322M                <br>
        STATE          : used                <br>
        RUNNING_VMS    : 1                   <br>
        PERMISSIONS                                                                    
        <br>
        OWNER          : um-                 <br>
        GROUP          : ---                 <br>
        OTHER          : ---                 <br>
        IMAGE
        TEMPLATE                                                                 
        <br>
        DESCRIPTION="Only cd"<br>
        DEV_PREFIX="vd"<br>
        DRIVER="raw"</font></small><br>
    <br>
    <br>
    <br>
    <small><font face="Helvetica, Arial, sans-serif">[oneadmin@frontend
        ~]$ onetemplate show 13<br>
        TEMPLATE 13
        INFORMATION                                                        
        <br>
        ID             : 13                  <br>
        NAME           : template_cd         <br>
        USER           : oneadmin            <br>
        GROUP          : oneadmin            <br>
        REGISTER TIME  : 08/24 13:21:51      <br>
        PERMISSIONS                                                                    
        <br>
        OWNER          : um-                 <br>
        GROUP          : ---                 <br>
        OTHER          : ---                 <br>
        TEMPLATE
        CONTENTS                                                              
        <br>
        CPU="0.5"<br>
        DISK=[<br>
          DRIVER="raw",<br>
          IMAGE="cd",<br>
          IMAGE_UNAME="oneadmin",<br>
          TARGET="vda" ]<br>
        GRAPHICS=[<br>
          LISTEN="1.1.1.1",<br>
          TYPE="vnc" ]<br>
        MEMORY="512"<br>
        NAME="template_cd"<br>
        NIC=[<br>
          NETWORK="vnet2",<br>
          NETWORK_UNAME="oneadmin" ]<br>
        OS=[<br>
          ARCH="x86_64",<br>
          BOOT="cdrom" ]<br>
        RAW=[<br>
          TYPE="kvm" ]<br>
        TEMPLATE_ID="13"</font></small><br>
    <font face="Helvetica, Arial, sans-serif"><small><br>
        <br>
        <br>
        [oneadmin@frontend ~]$ onevm show 25<br>
        VIRTUAL MACHINE 25
        INFORMATION                                                  <br>
        ID                  : 25                  <br>
        NAME                : vm_cd               <br>
        USER                : oneadmin            <br>
        GROUP               : oneadmin            <br>
        STATE               : FAILED              <br>
        LCM_STATE           : LCM_INIT            <br>
        RESCHED             : No                  <br>
        START TIME          : 08/24 13:22:14      <br>
        END TIME            : 08/24 13:43:29      <br>
        DEPLOY ID           : -                   <br>
        <br>
        VIRTUAL MACHINE
        MONITORING                                                     
        <br>
        NET_RX              : 0K                  <br>
        USED CPU            : 0                   <br>
        NET_TX              : 0K                  <br>
        USED MEMORY         : 0K                  <br>
        <br>
        PERMISSIONS                                                                    
        <br>
        OWNER               : um-                 <br>
        GROUP               : ---                 <br>
        OTHER               : ---                 <br>
        <br>
        VIRTUAL MACHINE
        TEMPLATE                                                       
        <br>
        CPU="0.5"<br>
        DISK=[<br>
          CLONE="YES",<br>
          CLUSTER_ID="100",<br>
          DATASTORE="fasysds",<br>
          DATASTORE_ID="104",<br>
          DEV_PREFIX="vd",<br>
          DISK_ID="0",<br>
          DRIVER="raw",<br>
          IMAGE="cd",<br>
          IMAGE_ID="12",<br>
          IMAGE_UNAME="oneadmin",<br>
          READONLY="YES",<br>
          SAVE="NO",<br>
         
        SOURCE="/var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a",<br>
          TARGET="vda",<br>
          TM_MAD="shared",<br>
          TYPE="CDROM" ]<br>
        ERROR=[<br>
          MESSAGE="Error executing image transfer script: Error copying
        frontend:/var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a
        to Host2:/var/lib/one//datastores/0/25/disk.0",<br>
          TIMESTAMP="Fri Aug 24 13:43:28 2012" ]<br>
        GRAPHICS=[<br>
          LISTEN="1.1.1.1",<br>
          PORT="5925",<br>
          TYPE="vnc" ]<br>
        MEMORY="512"<br>
        NAME="vm_cd"<br>
        NIC=[<br>
          BRIDGE="virbr0",<br>
          CLUSTER_ID="100",<br>
          IP="192.168.180.153",<br>
          MAC="02:00:c0:a8:b4:99",<br>
          NETWORK="vnet2",<br>
          NETWORK_ID="5",<br>
          NETWORK_UNAME="oneadmin",<br>
          VLAN="NO" ]<br>
        OS=[<br>
          ARCH="x86_64",<br>
          BOOT="cdrom" ]<br>
        RAW=[<br>
          TYPE="kvm" ]<br>
        REQUIREMENTS="CLUSTER_ID = 100"<br>
        TEMPLATE_ID="13"<br>
        VMID="25"</small></font><br>
  </body>
</html>