From e477e1b78daf7e9f063a8d3f30a3319acaf406ce Mon Sep 17 00:00:00 2001 From: Wido den Hollander Date: Fri, 9 Nov 2012 13:58:24 +0100 Subject: [PATCH] CLOUDSTACK-448: Detect when running inside Xen HVM This was reported by Jason Bausewein --- patches/systemvm/debian/config/etc/init.d/cloud-early-config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/systemvm/debian/config/etc/init.d/cloud-early-config b/patches/systemvm/debian/config/etc/init.d/cloud-early-config index 258e71e24a9..f1c487dd47a 100755 --- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config +++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config @@ -102,8 +102,8 @@ get_boot_params() { local hyp=$(hypervisor) [ $? -ne 0 ] && log_it "Failed to detect hypervisor type, bailing out of early init" && exit 10 - case $hyp in - xen-domU) + case $hyp in + xen-domU|xen-hvm) cat /proc/cmdline > /var/cache/cloud/cmdline sed -i "s/%/ /g" /var/cache/cloud/cmdline ;;