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 administrator. The syntax of vzctl is:

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

vzctl --version

vzctl --help

Where command can be one of the following:


Used to create a Container.


Used to remove a Container.


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


Used to mount the Container private area.


Used to unmount the Container private area.


Starts a Container.


Stops a Container.


Restarts a Container.


Displays the Container status.


Used to set Container parameters, including resource control settings, the Container private area location, its hostname, IP addresses, etc.


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

exec, exec2

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


Used to mount folders and drives of the Hardware Node to a Container.


Used to unmount external folders and drives of the Hardware Node from a Container.


Used to create a new Container drive by mounting it to a loopback file on the Hardware Node.


Used to unmount the Container drive mounted by means of the vzctl partadd command from a file on the Hardware Node.


Used to manage network adapters on the Hardware Node and inside Containers.


Use to restore the original state of the Container system and application files if the Container was broken for some reason or other.


Used to shrink Container virtual disk drives of the compact type.

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


Disables logging to the display and to the log file.


Sets the log level to the maximum possible value for this vzctl session.

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


Displays the Virtuozzo version currently installed on the Hardware Node.


Displays the usage information on vzctl.

In This Section

vzctl create

vzctl delete and vzctl destroy

vzctl mount and vzctl umount

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

vzctl set

vzctl exec, vzctl exec2, and vzctl enter

vzctl mountext and vzctl umountext

vzctl partadd and vzctl partdel

vzctl reinstall

vzctl shrink

Please send us your feedback on this help page