<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Jaime,<br>
    Yes, it shows as if the image was going to be created.<br>
    <br>
    VIRTUAL MACHINE 1601
    INFORMATION                                                <br>
    ID                  : 1601                <br>
    NAME                : one-1601            <br>
    USER                : oneadmin            <br>
    GROUP               : oneadmin            <br>
    STATE               : ACTIVE              <br>
    LCM_STATE           : RUNNING             <br>
    HOSTNAME            : cloud12             <br>
    START TIME          : 05/16 12:31:22      <br>
    END TIME            : -                   <br>
    DEPLOY ID           : one-1601            <br>
    <br>
    VIRTUAL MACHINE
    MONITORING                                                      <br>
    NET_RX              : 0                   <br>
    USED CPU            : 0                   <br>
    USED MEMORY         : 0                   <br>
    NET_TX              : 0                   <br>
    <br>
    PERMISSIONS                                                                    
    <br>
    OWNER               : um-                 <br>
    GROUP               : ---                 <br>
    OTHER               : ---                 <br>
    <br>
    VIRTUAL MACHINE
    TEMPLATE                                                        <br>
    CONTEXT=[<br>
      DNS1="192.168.0.100",<br>
      DNS2="192.168.0.101",<br>
      FILES="/var/lib/one/templates/context-scripts/linux/jmeter/init.sh
    /var/lib/one/templates/id_rsa.pub",<br>
      GATEWAY="10.4.16.1",<br>
      HOSTNAME="jdetect-1601",<br>
      ROOT_PUBKEY="id_rsa.pub",<br>
      TARGET="hdc",<br>
      USERNAME="technical",<br>
      USER_PUBKEY="id_rsa.pub" ]<br>
    CPU="0.5"<br>
    DISK=[<br>
      BUS="virtio",<br>
      CLONE="YES",<br>
      CLUSTER_ID="100",<br>
      DATASTORE="default",<br>
      DATASTORE_ID="1",<br>
      DISK_ID="0",<br>
      DRIVER="qcow2",<br>
      IMAGE="jdetect-node3",<br>
      IMAGE_ID="42",<br>
      READONLY="NO",<br>
      SAVE="YES",<br>
      SAVE_AS="80",<br>
     
SAVE_AS_SOURCE="/var/lib/one/datastores/1/d2a57eb9dfa252c1ec5b044ff351b392",<br>
     
    SOURCE="/var/lib/one/datastores/1/f971c24769f5312679fd455162a76fbc",<br>
      TARGET="vda",<br>
      TM_MAD="qcow2",<br>
      TYPE="DISK" ]<br>
    FEATURES=[<br>
      ACPI="yes" ]<br>
    GRAPHICS=[<br>
      PORT="7501",<br>
      TYPE="vnc" ]<br>
    MEMORY="1024"<br>
    NAME="one-1601"<br>
    NIC=[<br>
      BRIDGE="onebr4",<br>
      CLUSTER_ID="100",<br>
      IP="10.4.16.99",<br>
      MAC="02:00:0a:04:10:63",<br>
      NETWORK="opennebula",<br>
      NETWORK_ID="4",<br>
      PHYDEV="eth1",<br>
      VLAN="YES",<br>
      VLAN_ID="102" ]<br>
    OS=[<br>
      ARCH="x86_64",<br>
      BOOT="hd" ]<br>
    RAW=[<br>
      TYPE="kvm" ]<br>
    REQUIREMENTS="CLUSTER_ID = 100"<br>
    TEMPLATE_ID="14"<br>
    VCPU="1"<br>
    VMID="1601"<br>
    <br>
    VIRTUAL MACHINE
    HISTORY                                                         <br>
     SEQ        HOSTNAME REASON           START        TIME       PTIME<br>
       0         cloud12   none  05/16 12:31:33    0d 00:00    0d 00:00<br>
    <br>
    El 16/05/12 12:22, Jaime Melis escribió:
    <blockquote
cite="mid:CA+HrgRoSqHpDB0_0xNbs2XstRQXH53njJA2gCj-CJXoOv1NPOQ@mail.gmail.com"
      type="cite">Hello Andreas,
      <div><br>
      </div>
      <div>I can't seem to find anything wrong with your setup. I have a
        question, though, once you do onevm saveas does it show in
        "onevm show <vm_id>" like this?</div>
      <div><br>
      </div>
      <div><font face="courier new, monospace">$ onevm show
          <vm_id></font></div>
      <div><font face="courier new, monospace">[...]</font></div>
      <div><font face="courier new, monospace">DISK = [</font></div>
      <div><font face="courier new, monospace">[...]</font></div>
      <div>
        <div><font face="courier new, monospace">  SAVE="YES",</font></div>
        <div><font face="courier new, monospace">  SAVE_AS="4",</font></div>
        <div><font face="courier new, monospace"> 
SAVE_AS_SOURCE="/var/lib/one/datastores/1/9e2ca60e8780e40f79d13e7d587b471c",</font></div>
      </div>
      <div><font face="courier new, monospace">[...]</font></div>
      <div><br>
      </div>
      <div>cheers,</div>
      <div>Jaime<br>
        <div class="gmail_quote">On Wed, May 9, 2012 at 10:22 AM,
          Andreas Calvo <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:andreas.calvo@scytl.com" target="_blank">andreas.calvo@scytl.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Sure!<br>
            <br>
            /var/lib/one/config:<br>
            AUTH_MAD=ARGUMENTS=--authn<br>
ssh,x509,ldap,server_cipher,server_x509,EXECUTABLE=one_auth_mad<br>
            DATASTORE_LOCATION=/var/lib/one//datastores<br>
            DATASTORE_MAD=ARGUMENTS=-t 15 -d<br>
            fs,vmware,iscsi,EXECUTABLE=one_datastore<br>
            DB=BACKEND=sqlite<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<br>
            dummy,shared,qcow2,ssh,vmware,iscsi,EXECUTABLE=one_tm<br>
            VM_MAD=ARGUMENTS=-t 15 -r 0<br>
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=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>
            /var/log/one/1319.log:<br>
            Wed May  9 10:14:48 2012 [TM][I]: ExitCode: 0<br>
            Wed May  9 10:14:49 2012 [LCM][I]: New VM state is BOOT<br>
            Wed May  9 10:14:49 2012 [VMM][I]: Generating deployment<br>
            file: /var/lib/one/1319/deployment.0<br>
            Wed May  9 10:14:49 2012 [VMM][I]: ExitCode: 0<br>
            Wed May  9 10:14:49 2012 [VMM][I]: Successfully execute
            network driver<br>
            operation: pre.<br>
            Wed May  9 10:14:49 2012 [VMM][I]: ExitCode: 0<br>
            Wed May  9 10:14:49 2012 [VMM][I]: Successfully execute
            virtualization<br>
            driver operation: deploy.<br>
            Wed May  9 10:14:49 2012 [VMM][I]: ExitCode: 0<br>
            Wed May  9 10:14:49 2012 [VMM][I]: Successfully execute
            network driver<br>
            operation: post.<br>
            Wed May  9 10:14:50 2012 [LCM][I]: New VM state is RUNNING<br>
            Wed May  9 10:16:36 2012 [LCM][I]: New VM state is SHUTDOWN<br>
            <br>
            VM in Shutdown state and nothing else is done (no EPILOG).<br>
            <br>
            oneimage list:<br>
            35 oneadmin QA       jdetect-node default       1.8G   OS
             No  rdy     0<br>
            70 oneadmin oneadmin test         default         2G   OS
             No lock     0<br>
            <br>
            oneimage show 35:<br>
            IMAGE 35<br>
            INFORMATION<br>
            ID             : 35<br>
            NAME           : jdetect-node<br>
            USER           : oneadmin<br>
            GROUP          : QA<br>
            DATASTORE      : default<br>
            TYPE           : OS<br>
            REGISTER TIME  : 04/17 12:45:14<br>
            PERSISTENT     : No<br>
            SOURCE         :
            /var/lib/one/datastores/1/632d821bb0531b28591c5d719a4bf9af<br>
            PATH           :
            /home/oneadmin/linux/centos/jdetect-node.qcow2<br>
            SIZE           : 1885<br>
            STATE          : rdy<br>
            RUNNING_VMS    : 0<br>
            <br>
            PERMISSIONS<br>
            OWNER          : um-<br>
            GROUP          : u--<br>
            OTHER          : u--<br>
            <br>
            IMAGE<br>
            TEMPLATE<br>
            BUS="virtio"<br>
            DESCRIPTION="Centos 6.2 minimal installation"<br>
            DEV_PREFIX="hd"<br>
            PUBLIC="YES"<br>
            <br>
            oneimage show 70:<br>
            IMAGE 70<br>
            INFORMATION<br>
            ID             : 70<br>
            NAME           : test<br>
            USER           : oneadmin<br>
            GROUP          : oneadmin<br>
            DATASTORE      : default<br>
            TYPE           : OS<br>
            REGISTER TIME  : 05/09 10:16:11<br>
            PERSISTENT     : No<br>
            SOURCE         :
            /var/lib/one/datastores/1/259fa23ffa9ac7c22247f0b80da85b47<br>
            FSTYPE         : save_as<br>
            SIZE           : 2057<br>
            STATE          : lock<br>
            RUNNING_VMS    : 0<br>
            <br>
            PERMISSIONS<br>
            OWNER          : um-<br>
            GROUP          : ---<br>
            OTHER          : ---<br>
            <br>
            IMAGE<br>
            TEMPLATE<br>
            DEV_PREFIX="hd"<br>
            SAVED_DISK_ID="0"<br>
            SAVED_IMAGE_ID="42"<br>
            SAVED_VM_ID="1319"<br>
            SAVE_AS="YES"<br>
            <br>
            onedatastore list:<br>
             1 default         blades   9      fs     qcow2<br>
            <br>
            onedatastore show 1:<br>
            DATASTORE 1<br>
            INFORMATION<br>
            ID             : 1<br>
            NAME           : default<br>
            USER           : oneadmin<br>
            GROUP          : oneadmin<br>
            CLUSTER        : blades<br>
            DS_MAD         : fs<br>
            TM_MAD         : qcow2<br>
            BASE PATH      : /var/lib/one/datastores/1<br>
            <br>
            PERMISSIONS<br>
            OWNER          : um-<br>
            GROUP          : u--<br>
            OTHER          : u--<br>
            <br>
            DATASTORE<br>
            TEMPLATE<br>
            DS_MAD="fs"<br>
            TM_MAD="qcow2"<br>
            <br>
            IMAGES<br>
            20<br>
            34<br>
            35<br>
            38<br>
            42<br>
            50<br>
            59<br>
            68<br>
            69<br>
            <br>
            Thanks!<br>
            <div class="HOEnZb">
              <div class="h5"><br>
                On Tue, 2012-05-08 at 17:13 +0200, Jaime Melis wrote:<br>
                > Hello Andreas,<br>
                ><br>
                ><br>
                > I'm tested the qcow2 drivers again with saveas a
                they do work for me.<br>
                > Could you attach more logs in order to debug this?<br>
                ><br>
                ><br>
                > /var/lib/one/config (be sure to blank the passwords
                if any)<br>
                > /var/log/one/<vmid>.log<br>
                ><br>
                ><br>
                > and onedastatore show, and oneimage show of the
                image and its<br>
                > datastore.<br>
                ><br>
                ><br>
                > Regards,<br>
                > Jaime<br>
                ><br>
                > On Mon, May 7, 2012 at 10:48 AM, Andreas Calvo<br>
                > <<a moz-do-not-send="true"
                  href="mailto:andreas.calvo@scytl.com">andreas.calvo@scytl.com</a>>
                wrote:<br>
                >         I does not get to the EPILOG state, so it's
                is not saving<br>
                >         changes.<br>
                >         Do I have to enable the qcow driver in the
                datastore drivers?<br>
                >         --<br>
                >         Andreas Calvo Gómez<br>
                >         Systems Engineer<br>
                >         Scytl Secure Electronic Voting<br>
                >         Plaça Gal·la Placidia, 1-3, 1st floor ·
                08006 Barcelona<br>
                >         Phone: <a moz-do-not-send="true"
                  href="tel:%2B%2034%20934%20230%20324"
                  value="+34934230324">+ 34 934 230 324</a><br>
                >         Fax:   <a moz-do-not-send="true"
                  href="tel:%2B%2034%20933%20251%20028"
                  value="+34933251028">+ 34 933 251 028</a><br>
                >         <a moz-do-not-send="true"
                  href="http://www.scytl.com" target="_blank">http://www.scytl.com</a><br>
                ><br>
                >         NOTICE: The information in this e-mail and
                in any of its<br>
                >         attachments is<br>
                >         confidential and intended solely for the
                attention and use of<br>
                >         the named<br>
                >         addressee(s). If you are not the intended
                recipient, any<br>
                >         disclosure,<br>
                >         copying,<br>
                >         distribution or retaining of this message
                or any part of it,<br>
                >         without the<br>
                >         prior<br>
                >         written consent of Scytl Secure Electronic
                Voting, SA is<br>
                >         prohibited and<br>
                >         may be<br>
                >         unlawful. If you have received this in
                error, please contact<br>
                >         the sender<br>
                >         and<br>
                >         delete the material from any computer.<br>
                ><br>
                >         On Fri, 2012-05-04 at 14:03 -0400,
                Shankhadeep Shome wrote:<br>
                >         > No you don't have to change image to
                persistent, it wouldn't<br>
                >         change<br>
                >         > the running vm anyways. After the
                shutdown there are two<br>
                >         more states,<br>
                >         > EPILOG and DONE. EPILOG is reached
                after the VM is<br>
                >         completely shutdown<br>
                >         > and reported back, DONE is after the
                VM files are deleted<br>
                >         from the<br>
                >         > system datastore, you should see both
                steps in the vm log.<br>
                >         Maybe you<br>
                >         > can post the last few lines of the vm
                log, just go<br>
                >         > to /var/log/one/<vm#>.log on the
                opennebula server and post<br>
                >         the last<br>
                >         > 20 lines.<br>
                >         ><br>
                >         > On Fri, May 4, 2012 at 5:07 AM,
                Andreas Calvo<br>
                >         > <<a moz-do-not-send="true"
                  href="mailto:andreas.calvo@scytl.com">andreas.calvo@scytl.com</a>>
                wrote:<br>
                >         >         What I see when I run the
                SHUTDOWN command is:<br>
                >         >         Fri May  4 11:03:11 2012
                [LCM][I]: New VM state is<br>
                >         SHUTDOWN<br>
                >         ><br>
                >         >         Is there something else I
                should do?<br>
                >         >         Image is not marked as
                persistent, should it be<br>
                >         changed?<br>
                >         ><br>
                >         >         On Thu, 2012-05-03 at 23:51
                -0400, Shankhadeep Shome<br>
                >         wrote:<br>
                >         >         > If you use a qcow backing
                store this is what<br>
                >         happens in the<br>
                >         >         background<br>
                >         >         ><br>
                >         >         > qemu-img create
                -backing_store (your original<br>
                >         image) -f<br>
                >         >         qcow2 (running<br>
                >         >         > image)<br>
                >         >         ><br>
                >         >         > when you save as its<br>
                >         >         ><br>
                >         >         > qemu-img convert (running
                image + backing store)<br>
                >         -O qcow2<br>
                >         >         (new base<br>
                >         >         > image)<br>
                >         >         ><br>
                >         >         > The vm log should look
                like this... check to see<br>
                >         if you have<br>
                >         >         errors.<br>
                >         >         > How big is your source
                image? Conversion can take<br>
                >         a while<br>
                >         >         depending on<br>
                >         >         > your image size and
                backing store.<br>
                >         >         ><br>
                >         >         > Thu May  3 23:41:28 2012
                [LCM][I]: New VM state is<br>
                >         SHUTDOWN<br>
                >         >         > Thu May  3 23:41:48 2012
                [VMM][I]: ExitCode: 0<br>
                >         >         > Thu May  3 23:41:48 2012
                [VMM][I]: Successfully<br>
                >         execute<br>
                >         >         virtualization<br>
                >         >         > driver operation:
                shutdown.<br>
                >         >         > Thu May  3 23:41:48 2012
                [VMM][I]: ExitCode: 0<br>
                >         >         > Thu May  3 23:41:48 2012
                [VMM][I]: Successfully<br>
                >         execute<br>
                >         >         network driver<br>
                >         >         > operation: clean.<br>
                >         >         > Thu May  3 23:41:49 2012
                [LCM][I]: New VM state is<br>
                >         EPILOG<br>
                >         >         > Thu May  3 23:42:42 2012
                [TM][I]: mvds:<br>
                >         >         > Moving
                /var/lib/one/datastores/0/88/disk.0 to<br>
                >         datastore<br>
                >         >         ><br>
                >         ><br>
                >         as
                /var/lib/one/datastores/101/4f062daaf6ad2f47fd36c6b35a0bd56c<br>
                >         >         > Thu May  3 23:42:42 2012
                [TM][I]: ExitCode: 0<br>
                >         >         > Thu May  3 23:42:43 2012
                [TM][I]: delete:<br>
                >         >         > Deleting
                /var/lib/one/datastores/0/88<br>
                >         >         > Thu May  3 23:42:43 2012
                [TM][I]: ExitCode: 0<br>
                >         >         > Thu May  3 23:42:43 2012
                [DiM][I]: New VM state is<br>
                >         DONE<br>
                >         >         ><br>
                >         >         > On Thu, May 3, 2012 at
                2:44 PM, Andreas Calvo<br>
                >         >         > <<a
                  moz-do-not-send="true"
                  href="mailto:andreas.calvo@scytl.com">andreas.calvo@scytl.com</a>>
                wrote:<br>
                >         >         > ><br>
                >         >         > > Hi all,<br>
                >         >         > > What is the
                procedure to save a running VM as an<br>
                >         image if<br>
                >         >         it's<br>
                >         >         > running<br>
                >         >         > > with QCOW2?<br>
                >         >         > ><br>
                >         >         > > As per the
                documentation, I've used shutdown<br>
                >         after issuing<br>
                >         >         save as,<br>
                >         >         > but<br>
                >         >         > > the image gets in a
                LOCKED stated and do not<br>
                >         progress.<br>
                >         >         > > If the VM gets
                deleted, the image changes to<br>
                >         READY but I<br>
                >         >         think it's<br>
                >         >         > just<br>
                >         >         > > a link to the old
                image used by the VM. Trying<br>
                >         to start a<br>
                >         >         new<br>
                >         >         > template<br>
                >         >         > > using this new image
                throws an error.<br>
                >         >         > ><br>
                >         >         > > Tried with SHUTDOWN
                and STOP without luck.<br>
                >         >         > ><br>
                >         >         > > I guess I'm missing
                something, does anyone how<br>
                >         to do it?<br>
                >         >         > ><br>
                >         >         > > Thanks in advance<br>
                >         >         > ><br>
                >         >         > >
                _______________________________________________<br>
                >         >         > > Users mailing list<br>
                >         >         > > <a
                  moz-do-not-send="true"
                  href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
                >         >         > ><br>
                >         ><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>
                >         ><br>
                >         ><br>
                >         ><br>
                ><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>
                ><br>
                ><br>
                ><br>
                ><br>
                ><br>
                > --<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">jmelis@opennebula.org</a><br>
                <br>
              </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>
  </body>
</html>