3.9.1. Creating a Configuration Sample

Before you can start using virtual machine configuration samples, you need to create at least one configuration sample. The easiest way of doing this is to follow the steps below:

  1. Create a virtual machine configuration, for example:

    # prlctl create VmConfiguration
  2. Set the parameters for the virtual machine configuration as you want them to be. For example, you can use the prlctl set command to set the required amount of memory and disk space. All your parameters are saved to the config.pvs file of the VmConfiguration virtual machine. (For the list of parameters that can be applied from a configuration sample, see Section 3.9.3, “Parameters Applied from Configuration Samples” below.)
  3. Copy the config.pvs file to the /etc/parallels/samples directory. If this directory does not exist, create it:

    # mkdir /etc/parallels/samples
    # cp /vz/vmprivate/VmConfiguration/config.pvs /etc/parallels/samples/configMySQL.pvs

The latter command copies the config.pvs file to the configMyDB.pvs file.