In CentOS, determine whether your VPS is OpenVZ or Xen.
Generally, VPS Virtualization Technologies include Xen, OpenVZ, Xen HVM, and VMware. How can we determine which virtualization technology your VPS is based on?
1. Run the ls/proc/command. Generally, the Xen VPS and/proc Directory have the xen directory, and openvz has the vz directory.
2. Run the free-m command to check the memory. openvz does not have swap. Of course, xen does not have swap, but xen can be added, but openvz does not.
3. Run the uname-a command. xen is displayed in some xen VPS.
4. Run the ifconfig command to view the NIC. openvz generally uses the venet0: * command and the xen usually uses the eth * command *.
5. view the virtual technology on the VPS Control Panel, such as SolusVM and vePortal control panel.
6. use special software: virt-what, virt-what is a script for judging the virtual technology used in the current environment. Common virtual technologies can basically be identified normally.
Run the following command to install gcc and make ):
Wgethttp: // lele.redhat.com /~ Rjones/virt-what/files/virt-what-1.9.tar.gz
Tar zxvf virt-what-1.9.tar.gz
Cd virt-what-1.9/
./Configure
Make & make install
Run virt-what again, and the script will judge the virtual technology used in the current environment. The success rate of VPS testing on www.k3456.net is relatively high.