如何检测Linux VPS系统架构是Xen、KVM还是OpenVZ

结果

[root]# virt-what
xen
xen-hvm

Centos

wget http://people.redhat.com/~rjones/virt-what/files/virt-what-1.12.tar.gz
tar zxvf virt-what-1.12.tar.gz
cd virt-what-1.12/
./configure
make && make install
virt-what

Ubuntu/debian

apt-get install virt-what
virt-what