From: Barış Metin Date: Wed, 19 Jan 2011 15:08:23 +0000 (+0000) Subject: Add support for detecting Linux VServer. X-Git-Tag: 1.6~8 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=0e473a63d6dda59615b13c964149d8c1d9326bb7;p=virt-what.git Add support for detecting Linux VServer. --- 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.