OpenVZ container-related commands
This section shows commands for performing OpenVZ container-based VM-related tasks.
How to do it…
Let's start using OpenVZ container-related commands by working through the following steps:
Use the following command to see a list of all the containers in a node:
#pvectl list
The preceding command only shows the list of containers that are hosted in the node where this command is issued. Pvectl is a wrapper from Proxmox around the original OpenVZ
vzctl
command.The following screenshot shows a list of containers in the example
pmx1
node:Use the following command to start a container:
#pvectl start <ct_id>
Use the following command to stop a container:
#pvectl stop <ct_id>
The preceding command is equivalent to pushing the power button or unplugging the power cord of a physical node
Use the following command to shut down a container gracefully:
#pvectl shutdown <ct_id>
Use the following command to restart a container:
#pvectl restart <ct_id...