Changes

Jump to: navigation, search

User Guide/Operations on Containers

8 bytes added, 16:56, 27 April 2009
m
Starting, Stopping, Restarting, and Querying Status of Container: formatting
# vzlist 101
CTID NPROC STATUS IP_ADDR HOSTNAME
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:
# '''cat /proc/vz/veinfo'''
101 101 0 10 10.0.186.1
0 0 79
This output shows that Container 101 is running, there are 20 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.
The following command is used to stop a Container:

Navigation menu