|
|
|
|
|
|
|
|
|
|
xen-users
[Xen-users] [Xen-bugs] [Bug 892] [SR]xm restore fail for hvm domain afte
...information only...(not a call)
Hallo fan.zhao!
I do not have a solution for this problem.
But i have a similary problem.
(see my memo)
regards Heiko
---------------------------------------------------------------------
problem:
- after reboot xenhost, any VMs (Win2k, full virtualized)
cannot complete restored.
details:
- xenhost != workstation
- the VMs was created with "sdl=1" and DISPLAY=$myhost:0
- start xenhost will exec "xendomains start",
without defined variable $DISPLAY at this time.
- this VMs running, but seen to be broken.
- do you exec "xendomains stop" now, a broken VM cannot save.
s. Test 2
workaround:
- set DISPLAY before running "init.d/xendomains start"
- or write this line:
echo "export DISPLAY=$DISPLAY >> /etc/sysconfig/xendomains
--------------------------------------------------------
selma:~# xm info
...
xen_major : 3
xen_minor : 0
xen_extra : .5-rc2
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 : Fri Apr 20 17:52:48 2007 +0100
14889:898e999f62d7
cc_compiler : gcc version 4.1.2 20061115 (prerelease) (Debian
4.1.1-21)
...
- Test 2
- vm7_w2k with $DISPLAY
- vm8_w2k3 without $DISPLAY
# unset DISPLAY
# xm create vm8_w2k3
# export DISPLAY=$myhost:0
# xm create vm7_w2k
# xm list
Name ID Mem VCPUs State
Time(s)
Domain-0 0 1000 4 r-----
152.5
vm7_w2k 2 256 1 -b----
20.2
vm8_w2k3 1 256 1 ------
0.0
selma:/etc/xen# /etc/init.d/xendomains stop
Shutting down Xen domains: vm7_w2k(save)....../etc/init.d/xendomains: line
188:
3999 Terminated watchdog_xm save
vm8_w2k3(save)/etc/init.d/xendomains: line 306: 3999 Terminated
w
atchdog_xm save
................................................................................
................................................................................
................................................................................
............................................................./etc/init.d/xendoma
ins: line 306: 4163 Terminated xm save $id
$XENDOMAINS_SAVE/$name
!(shut).Domain 1 terminated
All domains terminated
/etc/init.d/xendomains: line 188: 11228 Terminated
watchdog_xm shut
down
/etc/init.d/xendomains: line 188: 11228 Terminated
watchdog_xm shut
down
SHUTDOWN_ALL ...........................Domain migrating-vm8_w2k3
terminated
All domains terminated
/etc/init.d/xendomains: line 306: 11228 Terminated
watchdog_xm shut
down
/etc/init.d/xendomains: line 306: 11263 Terminated
watchdog_xm shut
down 1
[done]
- timeout 2 minutes
selma:~# ls -al /var/lib/xen/save/
total 278192
drwxr-xr-x 2 root root 4096 May 8 07:55 .
drwxr-xr-x 5 root root 4096 May 7 07:59 ..
-rwxr-xr-x 1 root root 284572012 May 8 07:55 vm7_w2k
-rwxr-xr-x 1 root root 1303 May 8 07:55 vm8_w2k3
- vm8_w2k3 not save
only header was written
- a file xen.qemu-dm.X was created
selma:/tmp# ls -al /tmp
total 16440
drwxrwxrwt 4 root root 4096 May 8 06:44 .
drwxr-xr-x 22 root root 4096 Apr 18 12:29 ..
drwxrwxrwt 2 root root 4096 May 3 07:17 .ICE-unix
drwxrwxrwt 2 root root 4096 May 3 07:17 .X11-unix
-rwxr-xr-x 1 root root 8394400 May 3 07:52 xen.qemu-dm.1
- this file exist until removed by root
selma:/etc/xen# /etc/init.d/xendomains start
Restoring Xen domains: vm7_w2k vm8_w2k3Error: Restore failed
Usage: xm restore <CheckpointFile> [-p]
Restore a domain from a saved state.
-p, --paused Do not unpause domain after restoring it
!.
[done]
- this errormessage is human unreadable.
- "xendomains stop" write header-info "memory foo" to
$XENDOMAINS_SAVE/$dom
Can "xendomains start" checking filesize integrity ?
- sample:
fsize=`stat -c %s $XENDOMAINS_SAVE/$dom`
#mem set in readln
## check filesize with 10% toleranz
if [ $(($fsize+$fsize/10)) -lt $(($mem*1024*1024)) ]; then
echo "check filesize integrity failed"
continue
fi
xm restore $dom
+----------------------------------------------------------------+
| Name: Heiko Lehmann |
| Anschrift: FHL-HRZ, Groszenhainer Str. 57, 01968 Senftenberg |
| Telephon: 03573/85/358 \\|// |
| E-Mail: hlehmann@xxxxxxxxxxxxx (o^o) |
+--------------------------------------------------oo0-(_)-0oo---+
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-users] [Xen-bugs] [Bug 892] [SR]xm restore fail for hvm domain after dom0 is re,
Heiko Lehmann <=
|
|
|
|
|