summaryrefslogtreecommitdiffstats
path: root/virt-what.in
diff options
context:
space:
mode:
authorBarış Metin <baris@metin.org>2011-01-19 15:08:23 +0000
committerRichard W.M. Jones <rjones@redhat.com>2011-01-19 15:08:23 +0000
commit0e473a63d6dda59615b13c964149d8c1d9326bb7 (patch)
tree748310da926bfee13d9e120d2e3a9e307fe700d7 /virt-what.in
parent9975d7cf6f74ea588d79a82a9a3843aa6629f4da (diff)
downloadvirt-what-0e473a63d6dda59615b13c964149d8c1d9326bb7.tar.gz
virt-what-0e473a63d6dda59615b13c964149d8c1d9326bb7.tar.xz
virt-what-0e473a63d6dda59615b13c964149d8c1d9326bb7.zip
Add support for detecting Linux VServer.
Diffstat (limited to 'virt-what.in')
-rw-r--r--virt-what.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/virt-what.in b/virt-what.in
index e311067..22cbca1 100644
--- a/virt-what.in
+++ b/virt-what.in
@@ -121,6 +121,11 @@ if [ -d $root/proc/vz -a ! -d $root/proc/bc ]; then
echo openvz
fi
+# Check for Linux-VServer
+if cat $root/proc/self/status | grep -q "VxID: [0-9]*"; then
+ echo linux_vserver
+fi
+
# Check for UML.
# Added by Laurent Léonard.
if grep -q 'UML' $root/proc/cpuinfo; then