1, through the system on the relevant directory or file to judge
Execution: ls/proc/, the general Xen Vps,/proc directory below will have Xen directory, OpenVZ will have vz directory.
2, implementation: Free-m Look at the memory, OpenVZ no swap, of course there is no swap, Xen, but Xen is can add, OpenVZ not. KVM is full virtualization and you can add swap on your own.
3, execution: uname-a some Xen VPS will show Xen.
4, implementation: Ifconfig View network card, OpenVZ is generally venet0:*, Xen, KVM is generally eth*.
5, through the VPS Control Panel view, like SOLUSVM, Veportal Control Panel display virtual technology.
6, the use of specialized software: Virt-what, Virt-what is a judge of the current environment using the virtual technology of the script, the common virtual technology is basically able to identify the normal.
You can install the following command (you need to install GCC, make):
wget http://people.redhat.com/~rjones/virt-what/files/virt-what-1.15.tar.gztar zxvf virt-what- 1.15 . TAR.GZCD virt-what-1.15/. /&& make install
Virt-what
Run Virt-what, the script will determine the current environment used by the virtual technology, VPS Detective with the VPS on hand test success rate is still relatively high.
Judging VPS based on that virtual technology? Xen, OpenVZ, Xen HVM, KVM, or VMware