
91
OpenVZ Command Line Interface
OpenVZ is shipped with a number of command line tools. This chapter documents the utilities,
which are supported in OpenVZ. For every utility, all available command-line options and
switches are described.
Matrix of OpenVZ Command Line Utilities
The table below contains the full list of OpenVZ command-line utilities.
General utilities
are intended for performing day-to-day maintenance tasks:
vzctl
Utility to control Virtual Private Servers.
vzlist
Utility to view a list of VPSs existing on the Node with additional information.
vzquota
Utility to control OpenVZ disk quotas.
Template management tools
allow template creation, maintenance and installation of
applications into VPS:
vzpkgls
Utility to get a list of templates available on the Hardware Node and in VPSs.
vzpkgcache
Create/update a set of template caches.
vzrpm
Simple rpm wrapper to use rpm with a particular VPS.
vzyum
Yum wrapper to use yum with a particular VPS.
Supplementary tools
perform a number of tasks and are used by other OpenVZ utilities:
vzdqcheck
Print file space current usage from quota’s point of view.
vzdqdump
and
vzdqload
Utilities to dump the VPS user/group quota limits and grace times from the
kernel or the quota file or for loading them to a quota file.
vzcpucheck
Utility for checking CPU utilization by Virtual Private Servers.
vzmemcheck
Utility for checking the HN and VPS current memory parameters.
vzcalc
Utility to calculate resource usage by a Virtual Private Server.
vzpid
Utility that prints Virtual Private Server id the process belongs to.
vzsplit
Utility to generate VPS configuration file sample, “splitting” the Hardware
Node into equal parts.
vzcfgvalidate
Utility to validate Virtual Private Server configuration file correctness.