Previous page

Next page

Locate page in Contents

Print this page

vzctl

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:

convert

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

create

Used to create Containers.

delete

Used to remove a Container.

destroy

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

mount

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

umount

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

start

Starts a Container.

stop

Stops a Container.

restart

Restarts a Container.

status

Displays the Container status.

set

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

unset

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

enter

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.

recover

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

quotaon

Turns the disk quota on for the given Container.

quotaoff

Turns the disk quota off for the given Container.

quotainit

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

runscript

Runs shell scripts inside the given Container.

suspend

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

restore

Used to restore a Container from its dump file.

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

--verbose

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.

--quiet

Disables logging to screen and to the log file.

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

--version

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

--help

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