From ca3ea22325471ef0c4cc4e412360f0ab667ca13e Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Tue, 1 Oct 2013 09:47:08 -0400 Subject: [PATCH] rcS: Use 'xm' for Xen 4.2 as 'xl' has issues with save/restore of PVHVM guests. Signed-off-by: Konrad Rzeszutek Wilk --- root_image/etc/init.d/rcS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/root_image/etc/init.d/rcS b/root_image/etc/init.d/rcS index 9ba8765..17ced11 100755 --- a/root_image/etc/init.d/rcS +++ b/root_image/etc/init.d/rcS @@ -102,7 +102,9 @@ if [ $XEND_LOAD -eq 1 ]; then /etc/init.d/xencommons start fi # Xen 4.2 and above should use 'xl' instead of 'xm' - if [ "$XEN_VERSION" -lt 42 ]; then + # But Xen 4.2 has busted 'xl' when it comes to save/restore + # of PVHVM guests, so lets just skip it and use 'xm'. + if [ "$XEN_VERSION" -lt 43 ]; then /etc/init.d/xend start else echo "run_hotplug_scripts=0" >> /etc/xen/xl.conf -- 2.39.5