From 0e473a63d6dda59615b13c964149d8c1d9326bb7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Wed, 19 Jan 2011 15:08:23 +0000 Subject: [PATCH] Add support for detecting Linux VServer. --- virt-what.in | 5 +++++ virt-what.pod | 6 ++++++ 2 files changed, 11 insertions(+) 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 + +This process is running in a Linux VServer container. + +Status: contributed by Barış Metin + =item B This is KVM. -- 1.8.3.1