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

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

vzctl --version

vzctl --help

Where command can be one of the following:

create

Used to create a Container.

delete

Used to remove a Container.

destroy

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

mount

Used to mount the Container private area.

umount

Used to unmount the Container private area.

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 Container private area location, its hostname, IP addresses, etc.

enter

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.

mountext

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

umountext

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

partadd

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

partdel

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

interface

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

reinstall

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

shrink

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:

--quiet

Disables logging to the display and to the log file.

--verbose

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

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

--version

Displays the Virtuozzo version currently installed on the Hardware Node.

--help

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