CLOUDSTACK-448: Detect when running inside Xen HVM

This was reported by Jason Bausewein <jason.bausewein@tier3.com>
This commit is contained in:
Wido den Hollander 2012-11-09 13:58:24 +01:00
parent d251bafbd4
commit e477e1b78d

View File

@ -103,7 +103,7 @@ get_boot_params() {
[ $? -ne 0 ] && log_it "Failed to detect hypervisor type, bailing out of early init" && exit 10
case $hyp in
xen-domU)
xen-domU|xen-hvm)
cat /proc/cmdline > /var/cache/cloud/cmdline
sed -i "s/%/ /g" /var/cache/cloud/cmdline
;;