These would be found for example on Amazon EC2 or Citrix Xen.
This also adds all the extra files found under /sys/hypervisor
on this platform.
15 files changed:
--- /dev/null
+Sun Dec 19 14:18:54 EST 2010
--- /dev/null
+gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)
--- /dev/null
+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
--- /dev/null
+e7a4b45e-2172-c900-4ba4-dd8796ce14cb
echo xen-domU
fi
is_xen=1
echo xen-domU
fi
is_xen=1
-elif [ -d $root/proc/xen ]; then
- # This directory can be present when Xen paravirt drivers are
- # installed, even on baremetal. Don't confuse people by
- # printing anything.
- :
+elif [ -f $root/sys/hypervisor/type ] &&
+ grep -q "xen" $root/sys/hypervisor/type; then
+ # Ordinary kernel with pv_ops. There does not seem to be
+ # enough information at present to tell whether this is dom0
+ # or domU. XXX
+ echo xen