<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi.<br>
    <br>
    The shutdown make a copy of a Running machine (after make a
    shutdown) is... like a ordered shutdown<br>
    <br>
    onevm delete, just destroy a VM (not make a copy, therefore is
    necesary make de scp manual to keep the lasted VM)<br>
    <br>
    For example.<br>
    <br>
    imagine that:<br>
    <br>
     you, in 2011, make a image and upload to openebula repository
    (oneimage create ...). That image is a empty  OS<br>
    <br>
    after, you instanciate that image, and install some app (like
    tomcat, for example)<br>
    <br>
    your machine is running during 2011, and in 2012 (365 days later)
    you do the following command:<br>
    <br>
    onevm delete VM-ID<br>
    <br>
    Now, you LOST your work during 365 days. Because OpenNebula assumes,
    that not need make a copy<br>
    <br>
    If, instead delete, you use "onevm shutdown VM-ID". OpenNebula
    update your repository image. Now you have at local repository an
    image updated 365 days.<br>
    <br>
    Hope that help :)<br>
    <br>
    <br>
    <br>
    <br>
    El 05/06/12 13:51, Mohsen Amini escribió:
    <blockquote
cite="mid:CA+NRpTmsnck1hhzr6YQXpXRQaEtw5N39NCS6EHLnmPWqGG8YOg@mail.gmail.com"
      type="cite">
      <div dir="ltr"><font>Thank you for the comprehensive response.<br>
          <br>
          May I ask what is the difference of <br>
          onevm shutdown <br>
          and<br>
          onevm delete<br>
          ?<br>
          <br>
          Thanks<br clear="all">
        </font>
        <div dir="ltr">--------<br>
          Mohsen Amini Salehi<br>
          PhD Student<br>
          CLOUDS Lab, 
          <div>Room 5.30A, ICT building,<br>
            Department of Computing and Information Systems,<br>
            Melbourne University,
            <div><a moz-do-not-send="true"
                href="http://www.csse.unimelb.edu.au/%7Emohsena"
                target="_blank">http://www.csse.unimelb.edu.au/~mohsena</a></div>
          </div>
        </div>
        <br>
        <br>
        <br>
        <div class="gmail_quote">On Tue, Jun 5, 2012 at 8:05 PM,
          Alejandro Feijoo Fraga <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:alfeijoo@cesga.es"
              target="_blank">alfeijoo@cesga.es</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"> <br>
              The problem is at kvm dom0 (not opennebula) i have a
              similar problem some times...  but i dont know how
              solve... <br>
              <br>
              in my case. when that happend i just return manually the
              image to the repository.<br>
              <br>
              for example, if the image disk is 111, the VM is 4444 and
              the dom0 is 99.99.99.99 i do the following<br>
              <br>
              as oneadmin<br>
              <br>
              oneimage show 111 | grep SOURCE<br>
              <br>
              that return the path, similar like that:
              /srv/cloud/one/var/images/5963e9e0f2ed9524e90c3b4c1d8b01ab<br>
              <br>
              then make a backup (backup are your friend)<br>
              <br>
              cp
              /srv/cloud/one/var/images/5963e9e0f2ed9524e90c3b4c1d8b01ab
/srv/cloud/one/var/images/5963e9e0f2ed9524e90c3b4c1d8b01ab.bk<br>
              <br>
              now, i can shutdown the VM<br>
              <br>
              ssh VM && shutdown -h now <br>
              <br>
              check if at dom0 the VM is running (KVM)<br>
              <br>
              virsh list | grep one-4444<br>
              <br>
              (if no output, jump to scp command)<br>
              <br>
              else do: virsh destroy one-4444 (or destroy VMID)<br>
              <br>
              and after retreive the image:<br>
              <br>
              scp 99.99.99.99:/path/to/image/4444/images/disk.0
              /srv/cloud/one/var/images/5963e9e0f2ed9524e90c3b4c1d8b01ab<br>
              <br>
              usually disk.0 is the image correct to backup, but see
              deployment.0 file to see if you need backup other disk
              (deployment.0 file is at disk.0 directory)<br>
              <br>
              at the last, delete VM under OpenNebula (onevm delete
              4444)<br>
              <br>
              <br>
              Sure you yet know the steps, sorry 4 the possible spam :)
              <br>
              <br>
              keep in touch to see if anybody can resolve the problem to
              stop an unstoppable VM.
              <div class="im"><br>
                <br>
                El 05/06/12 10:42, Mohsen Amini escribió: </div>
              <blockquote type="cite">
                <div dir="ltr"><font>Hello everybody,</font>
                  <div>
                    <div class="h5">
                      <div><font><br>
                        </font></div>
                      <div><font>I came to know that onevm shutdown
                          <vmid> does not work.</font></div>
                      <div><font><br>
                        </font></div>
                      <div><font>In fact, in the begining the VM goes to
                          the "shutdown" state but after some time it
                          again changes to "runn".</font></div>
                      <div><font><br>
                        </font></div>
                      <div><font>Can someone help me on this issue?</font></div>
                      <div><font><br>
                        </font></div>
                      <div><font>Regards,<br clear="all">
                        </font>
                        <div dir="ltr">--------<br>
                          Mohsen Amini Salehi<br>
                          PhD Student<br>
                          CLOUDS Lab, 
                          <div>Room 5.30A, ICT building,<br>
                            Department of Computing and Information
                            Systems,<br>
                            Melbourne University,
                            <div><a moz-do-not-send="true"
                                href="http://www.csse.unimelb.edu.au/%7Emohsena"
                                target="_blank">http://www.csse.unimelb.edu.au/~mohsena</a></div>
                          </div>
                        </div>
                        <br>
                      </div>
                    </div>
                  </div>
                </div>
                <br>
                <fieldset></fieldset>
                <br>
                <div class="im">
                  <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>
<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>
</pre>
                </div>
              </blockquote>
              <br>
            </div>
            <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>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>