All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Peter McLaren <petermclaren_aus@hotmail.com>
Cc: Xen-devel <xen-devel@lists.xenproject.org>,
	Wei Liu <wei.liu2@citrix.com>
Subject: Re: BUG - 'xl restore' does not overwrite HVM
Date: Fri, 20 Apr 2018 11:32:09 +0100	[thread overview]
Message-ID: <20180420103209.x5hb664mfqvr3zei@citrix.com> (raw)
In-Reply-To: <SL2P216MB039425B752274B32187B408EFBBE0@SL2P216MB0394.KORP216.PROD.OUTLOOK.COM>

Hello

Please use "reply-all" in the future.

On Tue, Apr 10, 2018 at 09:48:01AM +0000, Peter McLaren wrote:
> 
> 
> Peter McLaren
> 
> 
> ________________________________
> From: Wei Liu <wei.liu2@citrix.com>
> Sent: Tuesday, 10 April 2018 7:01 PM
> To: Peter McLaren
> Cc: Wei Liu; Xen-devel
> Subject: Re: [Xen-devel] BUG - 'xl restore' does not overwrite HVM
> 
> (Add back xen-devel)
> 
> Hello Peter
> 
> Please don't top-post.
> 
> On Tue, Apr 10, 2018 at 08:52:10AM +0000, Peter McLaren wrote:
> > Hi Wei
> > I would like the restore command to return the HVM to the exact state it was at when the save command was performed.
> > Thanks
> > Peter
> 
> >>I think what you need is disk snapshot -- because you want your disk >> to return to its previous state.
> 
> >> I don't think xen 4.4 supports that. IIRC even the latest version of Xen
> >> doesn't have disk snapshot support. You will have to manually >> snapshot your disk (like using lvm snapshot).
> 
> (Apologies - I had to look up top-post to understand what you meant)
> Snapshotting (in Linux) enables one to track changes. I am looking to
> achieve the following. 'xl save' saves a running domain to a state
> file so that it can be restored later. 'xl restore' restores from this
> checkpoint file.  And it isn't.  Otherwise what would the purpose the
> commands be? Oddly, it does do the save/restore correctly but for an
> earlier version of Windows.
> 

xl save has a '-c' option. But as said, IIRC xl save only saves cpu and
memory state, but not disk state. You will need to snaptshot the disk
yourself.

That is to say, it anything is committed to the disk, it will stay there
even after you restore the cpu and memory state.

Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

      parent reply	other threads:[~2018-04-20 10:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-10  6:07 BUG - 'xl restore' does not overwrite HVM Peter McLaren
2018-04-10  8:44 ` Wei Liu
     [not found]   ` <SLXP216MB0400FAC3A91143808D845971FBBE0@SLXP216MB0400.KORP216.PROD.OUTLOOK.COM>
2018-04-10  9:01     ` Wei Liu
     [not found]       ` <SL2P216MB039425B752274B32187B408EFBBE0@SL2P216MB0394.KORP216.PROD.OUTLOOK.COM>
2018-04-20 10:32         ` Wei Liu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180420103209.x5hb664mfqvr3zei@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=petermclaren_aus@hotmail.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.