3.2. prlctl

prlctl is the primary tool for container management. To use it, you have to log in to the server as the root user.

Syntax. 

prlctl <subcommand> <CT_name>
prlctl --version
prlctl --help

Table 3.5. Subcommands

NameDescription

create

Creates a new container.

delete

Deletes a container.

mount

Mounts the container private area and executes the container mount script.

umount

Unmounts the container private area and executes the unmount script.

start

Starts a container.

stop

Stops a container.

restart

Restarts a container.

status

Displays the container status.

set

Sets container parameters: resource control settings, hostname, IP addresses, and so on.

enter

Logs in to a container without knowing its root password.

exec

Runs arbitrary commands in a container without logging in to it.

suspend

Saves the state of a running container in a dump file.

resume

Restores a container from its dump file.

snapshot snapshot-list snapshot-switch snapshot-delete

Creates and manages container snapshots.

console

Creates a command prompt channel to a container.

Table 3.6. Options

NameDescription

--version

Displays the prlctl package version currently installed on the server.

--help

Displays the usage information about prlctl.