3.2.2. prlctl create

This command is used to create new containers.

Syntax. 

prlctl create <CT_name> --vmtype ct [<options>]

With this command, you can create regular containers. A unique container name is required for this command.

Table 3.8. Options

NameDescription

<CT_name>

An arbitrary name to assign to the new container.

--vmtype ct

Tells the prlctl create command to make a container. If the option is omitted, a virtual machine is created instead.

--ostemplate <name>

OS EZ template to use for creating the container. If omitted, this value is taken from the DEF_OSTEMPLATE parameter in the global OpenVZ configuration file.

--config <name>

Container sample configuration file to use for creating the container. Sample configuration files are located in /etc/vz/conf and have names in the format ve-<name>.conf-sample. The sample configuration files usually have a number of resource control limits for the container and some application templates to be added to the container immediately upon its creation. If you skip this option and the default configuration file name is not specified in the global OpenVZ configuration file, you will have to set resource control parameters for the container using the prlctl set command.

--uuid <uuid>

A custom UUID to assign to the container.