From: Ewan Mellor Subject: Re: live saving of domU Date: Wed, 10 May 2006 17:32:13 +0100 Message-ID: <20060510163213.GF4954@leeni.uk.xensource.com> References: <871640aa0605100840t14a9f9deqf5c9be99f56917b7@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <871640aa0605100840t14a9f9deqf5c9be99f56917b7@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jayesh Salvi Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On Wed, May 10, 2006 at 10:40:31AM -0500, Jayesh Salvi wrote: > 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 parameter has not been renamed -- the rename was for a similar flag passed in to the device migration code, but the live flag for migration remains. > [Snip] > > 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. The reason it's not supported at the moment is this: if you take a snapshot of a VM, then run for a bit, and then try and run the snapshot against the same filesystem that you were using before, you will inevitably corrupt the filesystem. If you had a way to snapshot the storage at the same time as the VM, then you could make live snapshotting of VMs work properly. As it is, this is not integrated into Xend at the moment, and not supported because of the danger of filesystem corruption if you don't know what you are doing. Ewan.