CLOUDSTACK-448: Detect when running inside Xen HVM This was reported by Jason Bausewein <jason.bausew...@tier3.com>
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/9aef5ed9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/9aef5ed9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/9aef5ed9 Branch: refs/heads/4.0 Commit: 9aef5ed985b513edd674d1fd8a068e2384511a04 Parents: 432ff7e Author: Wido den Hollander <w...@widodh.nl> Authored: Fri Nov 9 13:58:24 2012 +0100 Committer: David Nalley <da...@gnsa.us> Committed: Wed Nov 28 17:50:10 2012 -0500 ---------------------------------------------------------------------- .../debian/config/etc/init.d/cloud-early-config | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/9aef5ed9/patches/systemvm/debian/config/etc/init.d/cloud-early-config ---------------------------------------------------------------------- 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 8036359..fc08af4 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 ;;