summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--virt-what.in5
-rw-r--r--virt-what.pod6
2 files changed, 11 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
diff --git a/virt-what.pod b/virt-what.pod
index 06308b4..409a6e1 100644
--- a/virt-what.pod
+++ b/virt-what.pod
@@ -31,6 +31,12 @@ This is Hyper-V.
Status: from MSDN description, not tested.
+=item B<linux_vserver>
+
+This process is running in a Linux VServer container.
+
+Status: contributed by Barış Metin
+
=item B<kvm>
This is KVM.