Merge pull request #7148 from ladar/fix-parallels-iso-docu

Updated prlctl section with a non-cpu/mem example.
This commit is contained in:
Adrien Delorme 2019-01-03 11:25:19 +01:00 committed by GitHub
commit 9a63e8eeb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -290,24 +290,24 @@ In order to perform extra customization of the virtual machine, a template can
define extra calls to `prlctl` to perform. define extra calls to `prlctl` to perform.
[prlctl](http://download.parallels.com/desktop/v9/ga/docs/en_US/Parallels%20Command%20Line%20Reference%20Guide.pdf) [prlctl](http://download.parallels.com/desktop/v9/ga/docs/en_US/Parallels%20Command%20Line%20Reference%20Guide.pdf)
is the command-line interface to Parallels Desktop. It can be used to configure is the command-line interface to Parallels Desktop. It can be used to configure
the virtual machine, such as set RAM, CPUs, etc. the advanced virtual machine options.
Extra `prlctl` commands are defined in the template in the `prlctl` section. An Extra `prlctl` commands are defined in the template in the `prlctl` section. In the
example is shown below that sets the memory and number of CPUs within the example below `prlctl` is used to explicitly enable the adaptive hypervisor, and
virtual machine: disable 3d acceleration:
``` json ``` json
{ {
"prlctl": [ "prlctl": [
["set", "{{.Name}}", "--memsize", "1024"], ["set", "{{.Name}}", "--3d-accelerate", "off"],
["set", "{{.Name}}", "--cpus", "2"] ["set", "{{.Name}}", "--adaptive-hypervisor", "on"]
] ]
} }
``` ```
The value of `prlctl` is an array of commands to execute. These commands are The value of `prlctl` is an array of commands to execute. These commands are
executed in the order defined. So in the above example, the memory will be set executed in the order defined. So in the above example, 3d acceleration will be disabled
followed by the CPUs. first, followed by the command which enables the adaptive hypervisor.
Each command itself is an array of strings, where each string is an argument to Each command itself is an array of strings, where each string is an argument to
`prlctl`. Each argument is treated as a [template engine](/docs/templates/engine.html). The only available `prlctl`. Each argument is treated as a [template engine](/docs/templates/engine.html). The only available