3.2.9. prlctl register, unregister

The register command is used to register a container with OpenVZ.

The unregister command removes a container from the OpenVZ registry.

Syntax. 

prlctl register <path> [--preserve-uuid <yes|no>]
prlctl unregister <CT_name>

Table 3.15. Options

NameDescription

<path>

Full path to the container directory.

<CT_name>

The name of the container to remove from the OpenVZ registry.

--preserve-uuid <yes|no>

Specifies what to do with the container UUID (universally unique identifier). If you specify yes, the UUID is preserved. If you specify no, the UUID is regenerated.

Note

Note: By default, UUIDs are regenerated.

  • Use the register command when you have a container on the server that does not show up in the list of the containers registered with the OpenVZ. This can be a container that was previously removed from the registry or that was copied from another location.
  • The unregister command removes a container from the OpenVZ registry, but does not delete the container files from the server. You can re-register the container later using the register command.