<p class="pblock pxtip">可以判断以下大多数虚拟架构,包括:VMware、Hyper-V、VirtualPC、VirtualBox、OpenVZ / Virtuozzo、Linux-VServer、UML、IBM PowerVM Lx86 Linux/x86 emulator、Hitachi Virtualization Manager (HVM) Virtage logical 、partitioning、IBM SystemZ、Parallels、Xen、QEMU/KVM
<p class="yahei pxtitle">一、下载
<pre class="brush:shell;">wget http://soft.vpsmm.com/virt-what-1.11.tar.gz
<p class="yahei pxtitle">二、安装
<pre class="brush:shell;">tar zxf virt-what-1.11.tar.gz #解压缩包
cd virt-what-1.11 #进入目录
./configure #按默认设置
make && make install #编译并安装
<p class="yahei pxtitle">三、使用
<pre class="brush:shell;">virt-what
<p class="yahei pxtitle">懒人方法
<pre class="brush:shell;">apt-get install virt-what #debian/ubuntu安装
yum install virt-what #centos安装
virt-what #运行
<pre class="brush:shell;">#在阿里云执行后,得出结果:
Last login: Mon Jul 13 14:13:11 2015 from 125.39.87.63
root@bj:~# virt-what
xen
xen-hvm