User`s guide
Operations on Virtual Machines and Containers 26
Creating a Virtual Machine and
Container
This section explains how to create a new Parallels virtual machine and Container. The options
you should pass to this command differ depending on whether you want to create a virtual
machine or Container.
Creating a Container
To create a Container, you can use the pctl create command. This command requires the
following parameters:
Argument Description
Container ID A numeric ID associated with a Container (101, 403, and so on). The
Container ID should be an integer greater than 100 and unique for a
given Parallels server.
OS template name The name of the OS template to base your Container on. Parallels
Server Bare Metal is shipped with a number of ready-to-use OS
templates. To find out the names of the available templates, use the
vzpkg list -O command.
For the list of operating systems you can run in your virtual
machines and Containers, see Supported Guest Operating Systems
(p. 28).
Co
nfiguration file The name of the sample configuration file that will be used for
setting all the Container resource control parameters. The sample
configuration files are residing in the /etc/vz/conf directory on
the physical server and have names with the following mask: ve-
<configname>.conf-sample. The most commonly used
sample is the ve-basic.conf-sample file. This sample file has
resource control parameters suitable for most Containers.
Thus, for example, you can create a new Container by executing the following command:
# pctl create 101 --ostemplate fedora-core-9-x86 -–config basic
Creating Container private area (fedora-core-9-x86)
...
Container private area was created
In this case Parallels Server Bare Metal will create a Container with ID 101, the Fedora 9 OS
installed inside, and the configuration parameters taken from the ve-basic.conf-sample
sample configuration file.
Note: For more information on options you can pass to pctl create when creating
Containers, see the Parallels Command Line Reference Guide.
Creating a Virtual Machine
The process of creating a new virtual machine includes the following steps:










