vserver8
The vserver utility enables you to manage the state of vservers, including building, starting, stopping, etc.
Usage
vserver [{-s | --sync}]
[{-v | --verbose}]
[--silent]
[--]
vserver
command
[--help]
args*
Commands
start[--rescue[--rescue-init] program args]
-
Starts the specified vserver. The optional argument
--rescuestarts the vserver in rescue mode, which runs program args* to start the vserver instead of whatever is configured. The optional argument--rescue-initmakes the command appear as PID 1 in the vserver. This can be used to start /bin/bash to investigate why a vserver is not able to start correctly.
stop[--rescue-init]
-
Stops the specified vserver, and kills the remaining processes. The optional argument
--rescue-initcan be used to stop a vserver that was started with the option of the same name.
restart
-
Restarts the specified vserver. This is the subsequent execution of a synchronized 'stop' and a 'start'.
condrestart
-
Restarts a running vserver.
suexecuser program args*
-
Executes program args* as the specified user in the vserver.
execprogram args*
-
Executes program args* as the root user in the vserver.
enter
-
Executes the configured shell (default: /bin/bash if it exists) in the vserver and allocates a pty.
chkconfigchkconfig-options*
-
Modifies the init-system; currently, only Red Hat's
chkconfigis supported.
running
-
Returns an exit code of 0 iff the vserver is running, 1 if not.
status
-
Provides some human readable status information about the vserver, and succeeds iff the vserver is running.
buildbuildopts*
-
Create a vserver from scratch, where the buildopts* are a set of options and a build method. As this option calls vserver-build, please see vserver-build(8) for a complete listing of possible options and methods.
delete
-
Remove a vserver.
unify[-R] [vunify-opts*]
-
Unify or de-unify the vserver with its reference vserver(s).
- pkg install pkg*
-
Installs package(s) pkg in the vserver.
apt-get,apt-config,apt-cacheapt-opts*
-
Execute the apt-* command for the given vserver
rpmrpm-opts*
-
Execute the
rpmcommand for the given vserver.
pkgmgmtexternalize|internalize[-y]
-
Externalize or internalize the package-management for the given vserver. ´Externalize' means that package metadata and management tools (apt-get,rpm) are living in the host, while 'internalize' means that data and programs from the vserver will be used.
hashify
-
Hashify the vserver.
Files
/usr/sbin/vserver
/etc/vservers/*
/var/lib/vservers/*
Examples
Please contribute some, if you feel it's important.
Releases
7 releases since Debian 3.1 (Sarge); the text changed 2 times.
--nodev until Debian 3.1 (Sarge);
--silent until Debian 3.1 (Sarge).