6,534
edits
Changes
→Setting Name for Container: fixed formatting
You can also set a name for Container 101 by editing its configuration file. In this case you should proceed as follows:
When specifying names for Containers, please keep in mind the following:
After the name has been successfully assigned to Container 101, you can start using it instead of ID 101 to perform Container-related operations on the Node. For example:
# '''vzctl stop computer1'''
Stopping container ...
Container was stopped
Container is unmounted
# '''vzctl start computer1'''
Starting container ...
...
You can find out what name is assigned to Container 101 in one of the following ways:
# '''vzlist -o name 101'''
NAME
computer1
# '''grep NAME= /etc/vz/conf/101.conf'''
NAME="computer1"
# '''ls -l /etc/vz/names/ | grep /101.conf'''
lrwxrwxrwx 1 root root 21 Jan 16 20:18 computer1 -> /etc/vz/conf/101.conf
== Storing Extended Information on Container ==