All of lore.kernel.org
 help / color / mirror / Atom feed
* BUG - 'xl restore' does not overwrite HVM
@ 2018-04-10  6:07 Peter McLaren
  2018-04-10  8:44 ` Wei Liu
  0 siblings, 1 reply; 4+ messages in thread
From: Peter McLaren @ 2018-04-10  6:07 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 2378 bytes --]

Hi
with at least 1 version of Windows 10 (build 16299), the 'xl restore' command does not overwrite the previously running HVM. The symptoms are:
1) the restore appears to rapidly complete after approx 50% of the time
2)  files created after the save in the running HVM are present after the restore
3) the Windows system tries to recover.

I have tried restoring both with a shutdown of the Windows system or a destroy. In both cases the results are the same.

I have listed some relevant info below. Any help would be appreciated.

Thanks

Peter


My xen config is immediately below and the HVM config below that:
root@debian:~# xl info
host                   : debian
release                : 3.16.0-4-amd64
version                : #1 SMP Debian 3.16.51-3 (2017-12-13)
machine                : x86_64
nr_cpus                : 2
max_cpu_id             : 3
nr_nodes               : 1
cores_per_socket       : 2
threads_per_core       : 1
cpu_mhz                : 2926
hw_caps                : bfebfbff:20100800:00000000:00000900:0408e3bd:00000000:00000001:00000000
virt_caps              : hvm
total_memory           : 4060
free_memory            : 2248
sharing_freed_memory   : 0
sharing_used_memory    : 0
outstanding_claims     : 0
free_cpus              : 0
xen_major              : 4
xen_minor              : 4
xen_extra              : .1
xen_version            : 4.4.1
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          :
xen_commandline        : placeholder
cc_compiler            : gcc (Debian 4.9.2-10) 4.9.2
cc_compile_by          : ian.jackson
cc_compile_domain      : eu.citrix.com
cc_compile_date        : Thu Sep  7 18:01:06 UTC 2017
xend_config_format     : 4

Config:
#kernel=@/usr/lib/xen-4.0/boot/hvmloader@
builder = 'hvm'
memory = 2048
vcpus = 1
name="W10N"
vif = ['bridge=xenbr0']
#disk = ['phy:/dev/vg0/W10N,xvda,w','file:/media/usb/isos/windows10_16299.iso,hdc:cdrom,r']
disk = ['phy:/dev/vg0/W10N,xvda,w','file:/root/windows10_16299.iso,hdc:cdrom,r']
acpi = 1
boot = "cdn"
sdl = 0
serial = 'pty'
usb = 1
keymap="en-gb"
vnc = 1
vnclisten = ''
vncpasswd = ""
root@debian:~#

Peter McLaren


[-- Attachment #1.2: Type: text/html, Size: 7277 bytes --]

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG - 'xl restore' does not overwrite HVM
  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>
  0 siblings, 1 reply; 4+ messages in thread
From: Wei Liu @ 2018-04-10  8:44 UTC (permalink / raw)
  To: Peter McLaren; +Cc: Wei Liu, xen-devel

On Tue, Apr 10, 2018 at 06:07:12AM +0000, Peter McLaren wrote:
> Hi
> with at least 1 version of Windows 10 (build 16299), the 'xl restore' command does not overwrite the previously running HVM. The symptoms are:
> 1) the restore appears to rapidly complete after approx 50% of the time
> 2)  files created after the save in the running HVM are present after the restore
> 3) the Windows system tries to recover.
> 
> I have tried restoring both with a shutdown of the Windows system or a destroy. In both cases the results are the same.
> 
> I have listed some relevant info below. Any help would be appreciated.

What do you mean by "overwrite HVM"? What do you want to achieve?

Wei.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG - 'xl restore' does not overwrite HVM
       [not found]   ` <SLXP216MB0400FAC3A91143808D845971FBBE0@SLXP216MB0400.KORP216.PROD.OUTLOOK.COM>
@ 2018-04-10  9:01     ` Wei Liu
       [not found]       ` <SL2P216MB039425B752274B32187B408EFBBE0@SL2P216MB0394.KORP216.PROD.OUTLOOK.COM>
  0 siblings, 1 reply; 4+ messages in thread
From: Wei Liu @ 2018-04-10  9:01 UTC (permalink / raw)
  To: Peter McLaren; +Cc: Xen-devel, Wei Liu

(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).

Wei.

> 
> Get Outlook for Android<https://aka.ms/ghei36>
> 
> ________________________________
> From: Wei Liu <wei.liu2@citrix.com>
> Sent: Tuesday, April 10, 2018 6:44:26 PM
> To: Peter McLaren
> Cc: xen-devel@lists.xen.org; Wei Liu
> Subject: Re: [Xen-devel] BUG - 'xl restore' does not overwrite HVM
> 
> On Tue, Apr 10, 2018 at 06:07:12AM +0000, Peter McLaren wrote:
> > Hi
> > with at least 1 version of Windows 10 (build 16299), the 'xl restore' command does not overwrite the previously running HVM. The symptoms are:
> > 1) the restore appears to rapidly complete after approx 50% of the time
> > 2)  files created after the save in the running HVM are present after the restore
> > 3) the Windows system tries to recover.
> >
> > I have tried restoring both with a shutdown of the Windows system or a destroy. In both cases the results are the same.
> >
> > I have listed some relevant info below. Any help would be appreciated.
> 
> What do you mean by "overwrite HVM"? What do you want to achieve?
> 
> Wei.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG - 'xl restore' does not overwrite HVM
       [not found]       ` <SL2P216MB039425B752274B32187B408EFBBE0@SL2P216MB0394.KORP216.PROD.OUTLOOK.COM>
@ 2018-04-20 10:32         ` Wei Liu
  0 siblings, 0 replies; 4+ messages in thread
From: Wei Liu @ 2018-04-20 10:32 UTC (permalink / raw)
  To: Peter McLaren; +Cc: Xen-devel, Wei Liu

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-20 10:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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.