Previous page

Next page

Locate page in Contents

Print this page


vzctl is the primary tool for Container management. To use it, you have to log in to the Hardware Node as the root user. The syntax of vzctl is:

vzctl [--quiet | --verbose] command CT_ID

vzctl --version

vzctl --help

Where command can be one of the following:


Used to convert legacy Containers to the new Virtuozzo Containers 4.0 directory layout.


Used to create Containers.


Used to remove a Container.


Like vzctl delete, this command is also used to remove a Container from the Hardware Node.


Allows mounting the Container private area and executing the Container mount script.


Allows dismounting the Container private area and executing the unmount script.


Starts a Container.


Stops a Container.


Restarts a Container.


Displays the Container status.


Used to set Container parameters, including resource control settings, the location of the Container private area, hostname, IP addresses, and Container root user password.


Used to remove Container parameters (resource control settings, IP addresses, etc.) from the configuration file.


Provides a way for the Hardware Node administrator to "enter" a Container without knowing the Container root password. Use this command with caution and never run it on un-trusted Containers.

exec, exec2

These two commands allow running arbitrary commands inside a Container without logging in to the corresponding Container. The difference between two is the returned status.


Recovers the original state of the Container system and application files in case something has been broken. The user files are left intact.


Turns the disk quota on for the given Container.


Turns the disk quota off for the given Container.


Initializes the disk quota for the given Container with the parameters taken from the Container configuration file.


Runs shell scripts inside the given Container.


Used to save the state of a running Container in a dump file.


Used to restore a Container from its dump file.

Verbosity options can be used with any of the above commands and they are:


Overrides the LOG_LEVEL setting from the Virtuozzo global configuration file /etc/vz/vz.conf and sets log level to maximum possible value for this vzctl session.


Disables logging to screen and to the log file.

You can also pass to vzctl one of the following options:


Displays the vzctl package version currently installed on the Hardware Node.


Displays the usage information on vzctl.

In This Section

vzctl convert

vzctl create

vzctl delete and vzctl destroy

vzctl start, vzctl stop, vzctl restart, and vzctl status

vzctl mount and vzctl umount

vzctl set

vzctl unset

vzctl exec, vzctl exec2, and vzctl enter

vzctl recover and vzctl reinstall

vzctl quotaon, vzctl quotaoff, and vzctl quotainit

vzctl suspend and vzctl resume

vzctl runscript

Please send us your feedback on this help page