
Reference 92
vzctl
vzctl
is the primary tool for Virtual Private Server management. To use it, you have to log in
to the Hardware Node as the root user. The syntax of
vzctl
is:
vzctl [
verbosity-options
]
command
vpsid
[
command-specific-options
]
Where
command
can be one of the following:
create
Used to create Virtual Private Servers and base for Shared Virtual Private Servers
destroy
Used to destroy a Virtual Private Server
mount
Allows mounting Virtual Private Server private area and executing VPS mount
script
umount
Allows dismounting Virtual Private Server private area and executing umount
script
start
Starts a Virtual Private Server
stop
Stops a Virtual Private Server
restart
Restarts a Virtual Private Server
status
Displays a Virtual Private Server status
set
Used to set Virtual Private Server parameters, including resource control settings,
location of private area, VPS hostname, IP addresses and VPS root user password
enter
Provides a way for hardware node administrator to “enter” a Virtual Private Server
without knowing VPS root password. Use this command with caution and never run
it on un-trusted Virtual Private Servers.
exec, exec2
These two commands allow running arbitrary commands inside a VPS without
logging in to the corresponding VPS. The difference between two is the returned
status.
Verbosity options can be used with any of the above commands and they are:
--verbose
Overrides the
LOG_LEVEL
setting from the OpenVZ global configuration file
/etc/sysconfig/vz
and sets log level to maximum possible value for this
vzctl
session.
--quiet
Disables logging to screen and to the log file.