In CentOS, determine whether your VPS is OpenVZ or Xen.

Source: Internet
Author: User
Tags vps

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.