Hi all,
I have some problem with xm save/restore in Xen-4.0.0 & linux-2.6.31.13,
First, the /etc/init.d/xendomains seems do not work
properly because of bash version. So I modified it as follow:
root@r02k08027 # diff -up /etc/init.d/xendomains
/etc/init.d/xendomains_31
--- /etc/init.d/xendomains 2010-04-08 00:12:04.000000000 +0800
+++ /etc/init.d/xendomains_31 2010-04-19 22:45:35.000000000 +0800
@@ -182,11 +182,11 @@ rdnames()
parseln()
{
- if [[
"$1" =~ '(domain' ]]; then
+ if [[
"$1" == '(domain'* ]]; then
name=;id=
- else if
[[ "$1" =~ '(name' ]]; then
+ else if
[[ "$1" == '(name'* ]]; then
name=$(echo $1 | sed -e 's/^.*(name \(.*\))$/\1/')
- else if [[
"$1" =~ '(domid' ]]; then
+ else if
[[ "$1" == '(domid'* ]]; then
id=$(echo $1 | sed -e 's/^.*(domid \(.*\))$/\1/')
fi; fi;
fi
Then service xendomains start/stop works correctly.
But there is a significant problem. I tried to save and restore these VMs:
redhat-4.6-32bit with pv driver, redhat-4.6-32bit
without pv driver;
WindowsServer2003-32bit with pv driver (Xenpv-win-32bit-0.97.4.exe),
WindowsServer2003-32bit without pv driver;
WindowsServer2008-64bit with pv driver (Xenpv-win-64bit-0.97.4.exe),
WindowsServer2008-64bit without pv driver.
Others are OK, only redhat-4.6-32bit domain with pv
driver failed. But this VM is the most important for me. When saving it, it
blocks, the size of the saved file is always 1.8K:
-rwxr-xr-x 1 root root 1.8K Apr 17 19:08 redhat-4.6-32
The error xend.log report is:
DEBUG (XendCheckpoint:124) [xc_save]:
/usr/lib64/xen/bin/xc_save 4 3 0 0 4
INFO (XendCheckpoint:423) xc_save: failed to get
the suspend evtchn port
The pv driver of redhat-4.6-32bit are:
[root@localhost ~]# lsmod|grep xen
xen_vnif 28672 0
xen_balloon 17488 1 xen_vnif
xen_vbd 20592 3
xen_platform_pci 73692
3 xen_vnif,xen_balloon,xen_vbd,[permanent]
[root@localhost ~]# modinfo xen_vnif
filename:
/lib/modules/2.6.9-67.ELsmp/extra/xenpv/0.1-10.el4/xen-vnif.ko
alias:
xen:vif
alias:
xen:vif
license:
Dual BSD/GPL
vermagic:
2.6.9-67.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4
depends:
xen-platform-pci,xen-balloon
[root@localhost ~]# modinfo xen_balloon
filename:
/lib/modules/2.6.9-67.ELsmp/extra/xenpv/0.1-10.el4/xen-balloon.ko
license:
Dual BSD/GPL
vermagic:
2.6.9-67.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4
depends:
xen-platform-pci
[root@localhost ~]# modinfo xen_vbd
filename:
/lib/modules/2.6.9-67.ELsmp/extra/xenpv/0.1-10.el4/xen-vbd.ko
alias:
xen:vbd
license:
Dual BSD/GPL
vermagic:
2.6.9-67.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4
depends:
xen-platform-pci
[root@localhost ~]# modinfo xen_platform_pci
filename:
/lib/modules/2.6.9-67.ELsmp/extra/xenpv/0.1-10.el4/xen-platform-pci.ko
author:
ssmith@xxxxxxxxxxxxx
description:
Xen platform PCI device
license:
GPL
license:
Dual BSD/GPL
license:
GPL
vermagic:
2.6.9-67.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4
depends:
alias:
pci:v00005853d00000001sv*sd*bc*sc*i*
alias:
pci:v0000FFFDd00000101sv*sd*bc*sc*i*
xm info: host : SS01 release : 2.6.31.13 version : #1 SMP Fri Apr 16 14:58:38 CST 2010
machine : x86_64 nr_cpus : 16 nr_nodes : 2 cores_per_socket : 4 threads_per_core : 2
cpu_mhz : 2400 hw_caps : bfebfbff:28100800:00000000:00001b40:009ce3bd:00000000:00000001:00000000 virt_caps : hvm total_memory : 24540
free_memory : 7 node_to_cpu : node0:0,2,4,6,8,10,12,14 node1:1,3,5,7,9,11,13,15 node_to_memory : node0:7
node1:0 node_to_dma32_mem : node0:5 node1:0 max_node_id : 1 xen_major : 4
xen_minor : 0 xen_extra : .0-rc9-pre 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 : Sat Mar 27 16:01:35 2010 +0000 21078:f3db0ae08304
xen_commandline : cc_compiler : gcc version 4.1.2 20080704 (Red Hat 4.1.2-46) cc_compile_by : root cc_compile_domain : (none)
cc_compile_date : Fri Apr 9 15:34:38 CST 2010 xend_config_format : 4
Is there anyone can give me a good idea?
I’ll try another version of pv driver or another
version of redhat…
Thanks
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|