WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] live saving of domU

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] live saving of domU
From: "Jayesh Salvi" <jayeshsalvi@xxxxxxxxx>
Date: Wed, 10 May 2006 10:40:31 -0500
Delivery-date: Wed, 10 May 2006 09:08:54 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=XMuRJHhhbQmErBmV0dKE+3XpsT7cQagUW8yGhPTHB2r47OgOVGvOYvKSdIa7xpAsNj7UFI/GOZX08NvVueTcHnQfFiP6IQI0p6TbePSldwR1fBA1gFkRFUr+2oPO1yU4fwz702TU1siQkQVdwvDxOG98HZnF+M5q0sgeJBulU68=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

Could anyone tell me, why 'xm save' has live parameter set to false by default. From yesterday's patch ([PATCH] [XenD] Migration-related change) i guess this paramter is renamed to network.

This is the piece of code I am talking about:
XendDomain.py:
   def domain_save(self, domid, dst):
        """Start saving a domain to file.

        @param dst:      destination file
        """

        try:
            dominfo = self.domain_lookup_by_name_or_id_nr(domid)
            if not dominfo:
                raise XendInvalidDomain(str(domid))

            if dominfo.getDomid() == PRIV_DOMAIN:
                raise XendError("Cannot save privileged domain %i" % domid)

            fd = os.open(dst, os.O_WRONLY | os.O_CREAT | os.O_TRUNC )
            try:
--->                # For now we don't support 'live checkpoint'
--->                return XendCheckpoint.save(fd, dominfo, False)
            finally:
                os.close(fd)

I am interested in saving the state of a virtual machine to a file, but want to continue it running. I want to backup the state of the machine, so I want this to be unintrusive operation. I would like to pause the domU and save it to file but keeping it still in memory. After save to file is done I will unpause the domU.

I don't see why this shouldn't be possible if live migration works so well.

Is it possible? Are there any hidden xm options for doing live save, if not where can I tweak this?

Please let me know.

Thanks,
--
Jayesh
------------------------------------------------------------------------
Everything you can imagine is real
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>