Editing User Guide/Operations on Containers

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 175: Line 175:
 
  # vzlist 101
 
  # vzlist 101
 
       CTID      NPROC STATUS  IP_ADDR        HOSTNAME                         
 
       CTID      NPROC STATUS  IP_ADDR        HOSTNAME                         
        101         10 running 10.0.186.1      server101.mydomain.com
+
    101             10 running 10.0.186.1      server101.mydomain.com  
  
Still another way of getting the Container status is checking the <code>/proc/vz/veinfo</code> file. This file lists all the Containers currently running on the Hardware Node. Each line presents a running Container in the ''<CT_ID> <reserved> <number_of_processes> <IP_address> ...'' format:
+
Still another way of getting the Container status is checking the <code>/proc/vz/veinfo</code> file. This file lists all the Containers currently running on the Hardware Node. Each line presents a running Container in the ''CT_ID reserved number_of_processes IP_address...'' format:
  
 
  # '''cat /proc/vz/veinfo'''
 
  # '''cat /proc/vz/veinfo'''
         101    0    10      10.0.186.1
+
    101         0    10      10.0.186.1
 
           0    0    79
 
           0    0    79
  
This output shows that Container 101 is running, there are 10 running processes inside the Container, and its IP address is 10.0.186.1. The second line corresponds to the Container with ID 0, which is the Hardware Node itself.
+
This output shows that Container 101 is running, there are 20 running processes inside the Container, and its IP address is 10.0.186.1. The second line corresponds to the Container with ID 0, which is the Hardware Node itself.
  
 
The following command is used to stop a Container:
 
The following command is used to stop a Container:

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)