meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| domestic:rosplatforma:man:prlctl [2023/01/26 08:58] – [Backup and restore management] mchus | domestic:rosplatforma:man:prlctl [2023/02/09 06:43] (current) – mchus | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== prlctl ====== | ====== prlctl ====== | ||
| - | ---- | ||
| - | |||
| ===== NAME ===== | ===== NAME ===== | ||
| Line 8: | Line 6: | ||
| ===== SYNOPSIS | ===== SYNOPSIS | ||
| - | prlctl **create** <// | + | prlctl **create** <// |
| - | prlctl **backup** <// | + | prlctl **backup** <// |
| - | prlctl **backup-list** [//ve_id// // | + | prlctl **backup-list** [//ve_id// // |
| - | prlctl **backup-delete** {**< | + | prlctl **backup-delete** {**< |
| - | prlctl **restore** {**< | + | prlctl **restore** {**< |
| - | prlctl **capture** <// | + | prlctl **capture** <// |
| - | prlctl **clone** <// | + | prlctl **clone** <// |
| - | prlctl **delete** <// | + | prlctl **delete** <// |
| prlctl **installtools** <// | prlctl **installtools** <// | ||
| - | prlctl **exec** <// | + | prlctl **exec** <// |
| prlctl **enter** <// | prlctl **enter** <// | ||
| Line 32: | Line 30: | ||
| prlctl **console** <// | prlctl **console** <// | ||
| - | prlctl **list** [**-a, | + | prlctl **list** [**-a,< |
| - | prlctl **list** -i,--info [**-f, | + | prlctl **list** -i,< |
| - | prlctl **migrate** < | + | prlctl **migrate** < |
| prlctl **pause** <// | prlctl **pause** <// | ||
| - | prlctl **problem-report** <// | + | prlctl **problem-report** <// |
| - | prlctl **reinstall** <// | + | prlctl **reinstall** <// |
| - | prlctl **register** <// | + | prlctl **register** <// |
| prlctl **reset** <// | prlctl **reset** <// | ||
| Line 54: | Line 52: | ||
| prlctl **reset-uptime** <// | prlctl **reset-uptime** <// | ||
| - | prlctl **set** <// | + | prlctl **set** <// |
| - | * [**--3d-accelerate** <//off// //highest// // | + | * [**< |
| - | * [**--cpuunits** <// | + | * [**< |
| - | * [**--cpu-hotplug** <//on// // | + | * [**< |
| - | * [**--ioprio** <// | + | * [**< |
| - | * [**--mem-hotplug** <//on// // | + | * [**< |
| - | * [**--memguarantee** <// | + | * [**< |
| - | * [**--description** <// | + | * [**< |
| - | * [**--autostop** <// | + | * [**< |
| - | * [**--autocompact** <//on// // | + | * [**< |
| - | * [**--tools-autoupdate** <//on// // | + | * [**< |
| - | * [**--on-crash** <// | + | * [**< |
| - | * [**--vnc-mode** <// | + | * [**< |
| - | * [**--name** <// | + | * [**< |
| - | * [**--netfilter** <// | + | * [**< |
| - | * [**--swappages** // | + | * [**< |
| - | * [**--features** // | + | * [**< |
| - | * [**--device-add** <//hdd// //cdrom// //net// //fdd// //serial// // | + | * [**< |
| - | * [**--device-connect** <// | + | * [**< |
| - | * [**--device-bootorder** "<// | + | * [**< |
| - | * [**--offline-management** <//on// // | + | * [**< |
| - | * [**--hostname** <// | + | * [**< |
| - | * [**--rate** <// | + | * [**< |
| - | * [**--applyconfig** <// | + | * [**< |
| - | * [**--nested-virt** <//on// // | + | * [**< |
| - | * [**--efi-boot** <//on// // | + | * [**< |
| - | * [**--ha-enable** <//yes// //no//>] [**--ha-prio** <// | + | * [**< |
| - | * [**--template** <//yes// // | + | * [**< |
| - | * [**--backup-add** <// | + | * [**< |
| - | * [**--backup-del** <// | + | * [**< |
| prlctl **start** <// | prlctl **start** <// | ||
| - | prlctl **stop** <// | + | prlctl **stop** <// |
| - | prlctl **snapshot** <// | + | prlctl **snapshot** <// |
| - | prlctl **snapshot-list** <// | + | prlctl **snapshot-list** <// |
| - | prlctl **snapshot-delete** <// | + | prlctl **snapshot-delete** <// |
| - | prlctl **snapshot-switch** <// | + | prlctl **snapshot-switch** <// |
| prlctl **suspend** <// | prlctl **suspend** <// | ||
| Line 101: | Line 99: | ||
| prlctl **unregister** <// | prlctl **unregister** <// | ||
| - | prlctl **mount** <// | + | prlctl **mount** <// |
| prlctl **umount** <// | prlctl **umount** <// | ||
| - | prlctl **move** <// | + | prlctl **move** <// |
| - | prlctl **statistics** {<// | + | prlctl **statistics** {<// |
| ===== DESCRIPTION | ===== DESCRIPTION | ||
| Line 117: | Line 115: | ||
| The following flags can be used with the majority of **prlctl** commands. | The following flags can be used with the majority of **prlctl** commands. | ||
| - | * **-l, | + | * **-l,< |
| - | * **-p, | + | * **-p,< |
| - | * **-v, | + | * **-v,< |
| - | * **--timeout < | + | * **< |
| ==== Managing virtual environments ==== | ==== Managing virtual environments ==== | ||
| - | * **create** <// | + | * **create** <// |
| - | * Use the **--changesid** option to assign the new Windows-based virtual machine a new Windows security identifier (SID). Note: R-Virtualization Guest Tools must be installed in the virtual machine. | + | * Use the **< |
| - | * Use the **--uuid** option to manually specify the UUID to use. | + | * Use the **< |
| - | * **create** <// | + | * **create** <// |
| - | * **create** <// | + | * **create** <// |
| - | * Use the **--dst** option to set the path to the directory on the R-Virtualization server where the **< | + | * Use the **< |
| - | * Use the **--no-hdd** option to create virtual environment without hard disk drives. | + | * Use the **< |
| * After the virtual environment has been successfully created, you should install the corresponding operating system inside it. | * After the virtual environment has been successfully created, you should install the corresponding operating system inside it. | ||
| - | * **clone** <// | + | * **clone** <// |
| - | * Use the **--template** option to create a template of a virtual environment. | + | * Use the **< |
| - | * Use the **--dst** option to specify the path to the directory where the **< | + | * Use the **< |
| - | * Use the **--changesid** option to assign the clone a new Windows security identifier (SID). Note: R-Virtualization Guest Tools must be installed in the original Windows-based virtual machine. | + | * Use the **< |
| - | * Use the **--linked** option is used to create a linked clone of the virtual environment. | + | * Use the **< |
| - | * Use the **--detach-external-hdd** <//yes// //no//> option to specify whether to keep or remove hard disks located outside of the original virtual environment. If you specify //yes//, outside hard disks will be removed from the resulting configuration. If you specify //no//, outside hard disks will remain in the resulting configuration. Note: In either case, outside hard disks will not be copied to the destination. | + | * Use the **< |
| - | * **delete** <// | + | * **delete** <// |
| * **installtools** <// | * **installtools** <// | ||
| - | * **exec** <// | + | * **exec** <// |
| * **enter** <// | * **enter** <// | ||
| * **console** <// | * **console** <// | ||
| - | * **capture** <// | + | * **capture** <// |
| * **pause** <// | * **pause** <// | ||
| - | * **problem-report** <// | + | * **problem-report** <// |
| - | * **register** <// | + | * **register** <// |
| - | * **reinstall** <// | + | * **reinstall** <// |
| * **reset** <// | * **reset** <// | ||
| * **start** <// | * **start** <// | ||
| * **restart** <// | * **restart** <// | ||
| - | * **stop** <// | + | * **stop** <// |
| * **status** <// | * **status** <// | ||
| * **unregister** <// | * **unregister** <// | ||
| Line 158: | Line 156: | ||
| * **resume** <// | * **resume** <// | ||
| * **reset-uptime** <// | * **reset-uptime** <// | ||
| - | * **mount** <// | + | * **mount** <// |
| * **umount** <// | * **umount** <// | ||
| - | * **move** <// | + | * **move** <// |
| ==== Container action scripts ==== | ==== Container action scripts ==== | ||
| Line 170: | Line 168: | ||
| Custom action scripts can be of two types: | Custom action scripts can be of two types: | ||
| - | | + | |
| - | | + | |
| - | **vps.mount**, | + | * **vps.mount**, |
| + | * **start** - Executed in container context on container start. | ||
| + | * **stop** - Executed in container context on container stop. | ||
| + | * **vps.umount**, | ||
| - | Executed after a container is mounted. Can be global or container-specific. | + | <WRAP center round tip 60%> |
| - | + | All action scripts except **start** and **stop** are executed in the host context. The **start** and **stop** scripts are executed in the container context. | |
| - | **start** | + | </ |
| - | + | ||
| - | Executed in container context on container start. | + | |
| - | + | ||
| - | **stop** | + | |
| - | + | ||
| - | Executed in container context on container stop. | + | |
| - | + | ||
| - | **vps.umount**, | + | |
| - | + | ||
| - | Executed before a container unmounted. Can be global or container-specific. | + | |
| - | + | ||
| - | **NOTE**: | + | |
| The environment passed to the **mount** and **umount** scripts is the standard environment of the parent (e.g., prlctl) with two additional variables: **$VEID** and **$VE_CONFFILE**. The first has the container UUID and the second has the full path to container’s configuration file. Other container configuration parameters required for the script (such as **$VE_ROOT**) can be obtained from the global and per-container configuration files. | The environment passed to the **mount** and **umount** scripts is the standard environment of the parent (e.g., prlctl) with two additional variables: **$VEID** and **$VE_CONFFILE**. The first has the container UUID and the second has the full path to container’s configuration file. Other container configuration parameters required for the script (such as **$VE_ROOT**) can be obtained from the global and per-container configuration files. | ||
| - | **Listing virtual environments\\ | + | ==== Listing virtual environments |
| - | list** [**-a, | + | * **list** [**-a,< |
| - | <// | + | |
| - | + | | |
| - | List the virtual environments currently existing on the R-Virtualization server. By default, only running VEs are displayed. | + | * **-L** |
| - | + | * **< | |
| - | **-o, --output** // | + | |
| - | + | | |
| - | Display only the specified // | + | |
| - | + | ||
| - | **-s, | + | |
| - | + | ||
| - | Sort by the value of //field// (arguments are the same as those for **-o**). Add **-** before the field name to reverse the sort order. | + | |
| - | + | ||
| - | | + | |
| - | + | ||
| - | **--vmtype** <//ct// //vm// //all//> | + | |
| - | + | ||
| - | Display only virtual environments of the specified type. | + | |
| - | + | ||
| - | **-t, --template** | + | |
| - | + | ||
| - | Include templates in the output. | + | |
| - | + | ||
| - | **-j, | + | |
| - | + | ||
| - | Produce output in the JSON format. | + | |
| - | + | ||
| - | **list** -i,--info [**-f, | + | |
| - | ct vm all**] [**-j, --json**] | + | |
| - | + | ||
| - | Display the information on the VE configuration. By default, the information on all VEs currently existing on the R-Virtualization server is shown. Use the **--full** option to display additional information about virtual environments. You can also use the **--json** option to produce machine-readable output in JSON format. | + | |
| ==== Configuring VE resource parameters ==== | ==== Configuring VE resource parameters ==== | ||
| - | set** <// | + | * **set** <// |
| - | This command is used to set and configure various VE parameters.\\ | + | The following options can be used with the **set** command. |
| - | The following options can be used with the **set** command: | + | |
| === CPU parameters === | === CPU parameters === | ||
| - | --cpus** <// | + | * **< |
| - | + | * **< | |
| - | Set the number of CPU cores per CPU socket to be available to the VE. | + | * **< |
| - | + | * **< | |
| - | **--cpu-sockets** <// | + | * **< |
| - | + | * **< | |
| - | Set the number of CPU sockets to be available to the VE. | + | * **< |
| - | + | ||
| - | **--cpu-hotplug** <//on// //off//> | + | |
| - | + | ||
| - | Enable or disable CPU hot-plugging support in the virtual environment. | + | |
| - | + | ||
| - | **--cpuunits** <// | + | |
| - | + | ||
| - | Sets the CPU weight for the virtual environment. This is a positive integer number that defines how much CPU time the virtual environment can get as compared to the other virtual environments running on the server. The larger the number, the more CPU time the virtual environment can receive. Possible values range from 8 to 500000. If this parameter is not set, the default value of 1000 is used. | + | |
| - | + | ||
| - | **--cpulimit** <// | + | |
| - | + | ||
| - | Sets the CPU limit, in percent or megahertz (MHz), the virtual environment is not allowed to exceed. By default, the limit is set in percent. To specify the limit in MHz, specify " | + | |
| - | + | ||
| - | **--cpumask** < | + | |
| - | + | ||
| - | Defines the CPUs on the physical server to use for executing the virtual environment process. A CPU affinity mask can be a single CPU number or a CPU range separated by commas (0, | + | |
| - | + | ||
| - | **--nodemask** < | + | |
| - | + | ||
| - | Defines the NUMA node on the physical server to use for executing the virtual environment process. A node mask can be a single number or a range separated by commas, e.g., 0,2,3-10. | + | |
| === Memory parameters === | === Memory parameters === | ||
| - | --memsize** <// | + | * **< |
| - | + | * **< | |
| - | Set the amount of memory that the virtual environment can consume. | + | * **< |
| - | + | ||
| - | **--mem-hotplug** <//on// //off//> | + | |
| - | + | ||
| - | Enable or disable memory (RAM) hot-plugging support in the virtual environment. | + | |
| - | + | ||
| - | **--memguarantee** <// | + | |
| - | + | ||
| - | Set the amount of memory (RAM) that will be guaranteed to a virtual machine or container. The guaranteed memory is a percentage of total RAM that is set for the virtual machine or container with the **--memsize** option. By default, memory guarantee is set to ’auto’ (depends on vcmmd policy for virtual machine and no guarantee for containter). | + | |
| === Boot order parameters === | === Boot order parameters === | ||
| - | --device-bootorder** <//" | + | * **< |
| - | + | * **< | |
| - | Used to specify the order of boot devices for a virtual environment. Supported devices are HDD, CD/DVD, FDD, Network. A device name can obtained using the ’prlctl list -i’ command. | + | * //on//: The virtual environment is booting using the EFI firmware. |
| - | + | * //off//: The virtual environment is booting using the BIOS firmware. This option is used by default. | |
| - | **--efi-boot** <//on// //off//> | + | * **< |
| - | + | * **< | |
| - | Set EFI boot options: //\\ | + | |
| - | on//: The virtual environment is booting using the EFI firmware. //\\ | + | |
| - | off//: The virtual environment is booting using the BIOS firmware. This option is used by default. | + | |
| - | + | ||
| - | **--select-boot-device** <//on// //off//> | + | |
| - | + | ||
| - | Enable or disable the selection of a boot device at the virtual environment startup. | + | |
| - | + | ||
| - | **--external-boot-device** <// | + | |
| - | + | ||
| - | Set an external device from which to boot the virtual environment. | + | |
| === Video parameters === | === Video parameters === | ||
| - | --videosize** <// | + | * **< |
| - | + | * **< | |
| - | Set the amount of memory for the virtual environment graphic card. | + | * **< |
| - | + | ||
| - | **--3d-accelerate** <//off// //highest// //dx9//> | + | |
| - | + | ||
| - | Set 3d acceleration video mode. | + | |
| - | + | ||
| - | **--vertical-sync** <//on// //off//> | + | |
| - | + | ||
| - | Set vertical synchronization video mode. | + | |
| === I/O priority management === | === I/O priority management === | ||
| - | --ioprio** <// | + | * **< |
| + | * **< | ||
| + | * **b**, **B** < | ||
| + | * **k**, **K** < | ||
| + | * **m**, **M** < | ||
| + | * **g**, **G** < | ||
| + | * By default, the I/O limit of each virtual environment is set to 0 (that is, not limited). | ||
| - | Assigns I/O priority to VE. // | + | |
| - | + | ||
| - | **--iolimit** | + | |
| - | + | ||
| - | Sets the I/O limit for the virtual environment. If no suffix is specified, the parameter is set in megabytes per second. The possible suffixes are listed below: **\\ | + | |
| - | b**, **B** -- bytes **\\ | + | |
| - | k**, **K** -- kilobytes **\\ | + | |
| - | m**, **M** -- megabytes **\\ | + | |
| - | g**, **G** -- gigabytes | + | |
| - | + | ||
| - | By default, the I/O limit of each virtual environment is set to 0 (that is, not limited). | + | |
| - | + | ||
| - | **--iopslimit** <// | + | |
| - | + | ||
| - | Assigns Input/ | + | |
| === Network parameters === | === Network parameters === | ||
| - | --apply-iponly** <//yes no// | + | **< |
| - | + | ||
| - | If set to " | + | |
| === Container specific parameters === | === Container specific parameters === | ||
| - | --netfilter** <// | + | * **< |
| + | * // | ||
| + | * // | ||
| + | * // | ||
| + | * //full// < | ||
| + | * Note: This parameter cannot be applied to running Containers. | ||
| + | * **< | ||
| + | * **< | ||
| - | Restrict access to iptable modules inside | + | <WRAP center round tip 60%> |
| - | disabled// -- no modules are allowed. //\\ | + | Changing this parameter for a running Container, requires |
| - | stateless// -- all modules except NAT and conntracks are allowed. //\\ | + | </WRAP> |
| - | stateful// -- all modules except NAT are allowed. //\\ | + | |
| - | full// -- (default) all modules are allowed. | + | |
| - | Note: This parameter cannot be applied to running Containers. | + | |
| - | + | ||
| - | **--swappages** // | + | |
| - | + | ||
| - | This parameter limits the amount of swap space that can be allocated to processes running in a Container. | + | |
| - | + | ||
| - | **--quotaugidlimit** //num// | + | |
| - | + | ||
| - | Sets the maximum number of user/group IDs in a Container for which disk quota is calculated. If this value is set to **0**, user and group disk quotas are not calculated. For ploop-based Containers, quotaugidlimit can be only enabled or disabled. Setting the //num// parameter to a value greater than 0 enables the quota, and **0** disables the quota. | + | |
| - | + | ||
| - | Note: Changing this parameter for a running Container, requires the Container be restarted. | + | |
| - | + | ||
| - | **--features** // | + | |
| - | + | ||
| - | Enables/ | + | |
| - | + | ||
| - | You can use the following values for //name//: **bridge**, **ipgre**, **ipip**, **nfs**, **nfsd**, **ppp**, **sit**, **time**. | + | |
| === VNC parameters === | === VNC parameters === | ||
| - | --vnc-mode** <// | + | * **< |
| - | + | * **< | |
| - | Enables/ | + | * **< |
| - | + | * **< | |
| - | **--vnc-port** <// | + | * **< |
| - | + | ||
| - | Sets the VNC port. | + | |
| - | + | ||
| - | **--vnc-passwd** <// | + | |
| - | + | ||
| - | Sets the VNC password to //passwd//. If **-** is specified, user is prompted to enter the password or, in case the standard input is redirected (e.g. by using command pipeline), the password is read from the standard input. | + | |
| - | + | ||
| - | **--vnc-nopasswd** | + | |
| - | + | ||
| - | Do not require a password for VNC connections. | + | |
| - | + | ||
| - | **--vnc-address** <// | + | |
| - | + | ||
| - | Sets the VNC address. | + | |
| === High Availability Cluster === | === High Availability Cluster === | ||
| - | --ha-enable** <//yes// //no//> | + | * **< |
| + | * **< | ||
| - | Adds the virtual environment to (**yes**) or removes it (**no**) from the High Availability Cluster. By default, the parameter is set to **yes**. | + | === Optimization parameters === |
| - | **--ha-prio** <//number//> | + | |
| - | Sets the virtual environment priority in the High Availability Cluster. Virtual environments with a higher priority are restarted first in the case of a system failure. If the parameter is not set for a virtual environment (default), it has the lowest priority and is restarted after all virtual environments with any priorities set. | + | === Miscellaneous parameters === |
| - | Optimization parameters | + | * **<nowiki>--</ |
| - | --nested-virt** <//on// //off//> | + | |
| - | + | * **< | |
| - | Disable or enable nested virtualization. | + | * **< |
| - | + | * **< | |
| - | **Miscellaneous parameters\\ | + | * //on//: The virtual environment is started automatically on the R-Virtualization server boot. \ |
| - | --applyconfig** <// | + | * //off//: The virtual environment is left in the stopped state on the R-Virtualization server boot. |
| - | + | * //auto//: The virtual environment is returned to the state it was in when the R-Virtualization server was turned off. | |
| - | Apply the resource parameter values from the specified VE configuration file to the virtual environment. The parameters defining the OS family and OS version are left intact. | + | * **< |
| - | + | * **< | |
| - | **--description** <// | + | * **< |
| - | + | * **< | |
| - | Set the VE description. | + | * **< |
| - | + | * **< | |
| - | **--name** <// | + | * **< |
| - | + | * **< | |
| - | Change the VE name. | + | |
| - | + | ||
| - | **--rename-ext-disks** | + | |
| - | + | ||
| - | Rename bundles of the external disks on vm rename. That is move external disk from path /// | + | |
| - | + | ||
| - | **--autostart** <//on// //off// // | + | |
| - | + | ||
| - | Set the virtual environment start-up options: //\\ | + | |
| - | on//: The virtual environment is started automatically on the R-Virtualization server boot. //\\ | + | |
| - | off//: The virtual environment is left in the stopped state on the R-Virtualization server boot. //\\ | + | |
| - | auto//: The virtual environment is returned to the state it was in when the R-Virtualization server was turned off. | + | |
| - | + | ||
| - | **--autostart-delay** <// | + | |
| - | + | ||
| - | Delay some seconds at virtual environment autostart. | + | |
| - | + | ||
| - | **--autostop** <// | + | |
| - | + | ||
| - | Specifies the mode to set the virtual environment on the R-Virtualization Service shutdown. | + | |
| - | + | ||
| - | **--autocompact** <//on// //off//> | + | |
| - | + | ||
| - | Turns on/off automatic virtual disk image compact. | + | |
| - | + | ||
| - | **--tools-autoupdate** <//on// //off//> | + | |
| - | + | ||
| - | Turns on/off automatic updating of R-Virtualization Guest Tools in the guest operating system. If this option is set to on, R-Virtualization Guest Tools updates will be performed automatically every time an update is available for R-Virtualization software. If this option is set to off, no automatic R-Virtualization Guest Tools updates will be performed, so that you can do it manually at a convenient time. | + | |
| - | + | ||
| - | **--on-crash** <// | + | |
| - | + | ||
| - | Specifies what to do with the virtual environment if it crashes: **pause** or **restart**. The problem report is sent by default. To omit, specify **no-report**. | + | |
| - | + | ||
| - | **--userpasswd** <// | + | |
| - | + | ||
| - | Sets the password for the specified user in the virtual environment. If the user account does not exist, it is created. R-Virtualization Guest Tools must be installed in the virtual environment for the command to succeed. If the **--crypted** parameter is specified, the system assumes that the passwords are encrypted (for Containers only). | + | |
| - | + | ||
| - | **--host-admin** <// | + | |
| - | + | ||
| - | Specifies a host OS administrator’s name if an administrator’s password is required to change the password for the specified user in the virtual environment. | + | |
| - | + | ||
| - | **--template** <//yes// //no//> | + | |
| - | + | ||
| - | Convert the virtual environment to template and vice versa. | + | |
| === Managing VE devices === | === Managing VE devices === | ||
| - | The following options can be used to manage VE devices: **--device-add**, | + | The following options can be used to manage VE devices: **< |
| - | **--device-add** <//hdd// //cdrom// //net// //fdd// //serial// //usb// //pci//> [**device_options**] | + | **< |
| == Adding virtual hard disk drives to VE == | == Adding virtual hard disk drives to VE == | ||
| - | --device-add** //hdd// [**--image** <// | + | **< |
| - | **image_name**: | + | * **image_name**: |
| - | size**: the size of the hard disk drive, in megabytes. If the **--no-fs-resize** option is specified, the last partition on the hard disk is not resized. **\\ | + | * **size**: the size of the hard disk drive, in megabytes. If the **< |
| - | iface**: virtual hard disk interface type: either //ide// or //scsi// or //virtio//. **\\ | + | * **iface**: virtual hard disk interface type: either //ide// or //scsi// or // |
| - | subtype**: SCSI controller subtype: // | + | * **subtype**: |
| - | position**: the SCSI or IDE device identifier to be used for the disk drive. Allowed ranges:\\ | + | * **position**: |
| - | 0-3 for IDE disk drives\\ | + | |
| - | 0-6 for SCSI disk drives **\\ | + | |
| - | mnt**: the mount point to automount virtual hard disk inside the container’s guest OS | + | * **mnt**: the mount point to automount virtual hard disk inside the container’s guest OS |
| == Managing virtual hard disk drives encryption == | == Managing virtual hard disk drives encryption == | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| - | **--device-add** // | + | |
| - | --device-set** // | + | |
| - | --device-set** | + | * **encryption-keyid**: the identifier of a key used to encrypt the hard disk drive. When this option is used along with the **< |
| - | --device-set** | + | |
| + | | ||
| - | **encrypt**: | + | == Connecting physical |
| - | decrypt**: decrypt the encrypted hard disk drive **\\ | + | |
| - | encryption-keyid**: | + | |
| - | reencrypt**: | + | |
| - | no-wipe**: remove the original virtual hard disk after it had been encrypted without securely erasing its data from the host disk drive. Without this option, after a virtual disk had been successfully encrypted, the original unencrypted data is securely erased from the host hard disk drive. | + | |
| - | Connecting physical hard disks to VE | + | **< |
| - | --device-add** //hdd// **--device** <// | + | |
| - | **device**: the name of the physical hard disk on the R-Virtualization server to be connected to the VE. You can use the **server info** command to view the name of all physical disks currently existing on the R-Virtualization server. **\\ | + | * **device**: the name of the physical hard disk on the R-Virtualization server to be connected to the VE. You can use the **server info** command to view the name of all physical disks currently existing on the R-Virtualization server. |
| - | iface**: virtual hard disk interface type: either //ide// or //scsi// or //virtio//. **\\ | + | * **iface**: virtual hard disk interface type: either //ide// or //scsi// or // |
| - | position**: the SCSI or IDE device identifier to be used for the disk drive. Allowed ranges:\\ | + | * **position**: |
| - | 0-3 for IDE disk drives\\ | + | |
| - | 0-6 for SCSI disk drives | + | |
| == Adding virtual CD/DVD-ROM drives to VE == | == Adding virtual CD/DVD-ROM drives to VE == | ||
| - | --device-add** //cdrom// **--image** <// | + | **< |
| - | **image**: connect the specified image file (either on the R-Virtualization server or on the client computer where you are running the **prlctl** utility) to the virtual environment. The following image file formats are supported: .iso, .cue, .ccd, and .dmg. **\\ | + | * **image**: connect the specified image file (either on the R-Virtualization server or on the client computer where you are running the **prlctl** utility) to the virtual environment. The following image file formats are supported: .iso, .cue, .ccd, and .dmg. |
| - | iface**: virtual CD/DVD-ROM interface type: either //ide// or //scsi//. **\\ | + | * **iface**: virtual CD/DVD-ROM interface type: either //ide// or // |
| - | subtype**: SCSI controller subtype: // | + | * **subtype**: |
| - | position**: the SCSI or IDE device identifier to be used for the DVD/CD-ROM drive. Allowed ranges:\\ | + | * **position**: |
| - | 0-3 for IDE disk drives\\ | + | |
| - | 0-6 for SCSI disk drives | + | |
| == Connecting physical DVD/CD-ROM drive to VE == | == Connecting physical DVD/CD-ROM drive to VE == | ||
| - | --device-add** //cdrom// **--device** <// | + | **< |
| - | **device**: the name of the physical DVD/CD-ROM on the R-Virtualization server to be connected to the VE. You can use the **server info** command to view the name of all DVD/CD-ROM drives currently existing on the R-Virtualization server. **\\ | + | * **device**: the name of the physical DVD/CD-ROM on the R-Virtualization server to be connected to the VE. You can use the **server info** command to view the name of all DVD/CD-ROM drives currently existing on the R-Virtualization server. |
| - | iface**: virtual CD/DVD-ROM interface type: either //ide// or //scsi//. **\\ | + | * **iface**: virtual CD/DVD-ROM interface type: either //ide// or // |
| - | position**: the SCSI or IDE device identifier to be used for the DVD/CD-ROM drive. Allowed ranges:\\ | + | * **position**: |
| - | 0-3 for IDE disk drives\\ | + | |
| - | 0-6 for SCSI disk drives | + | |
| == Adding virtual floppy disk drive to VE == | == Adding virtual floppy disk drive to VE == | ||
| - | --device-add** //fdd// | + | **< |
| == Connecting physical floppy disk drive to VE == | == Connecting physical floppy disk drive to VE == | ||
| - | --device-add** //fdd// **--device** <// | + | **< |
| == Adding virtual network adapters == | == Adding virtual network adapters == | ||
| - | --device-add** //net// {**--type** // | + | **< |
| - | **type**: the type of the network adapter to create in the virtual environment. **\\ | + | * **type**: the type of the network adapter to create in the virtual environment. |
| - | network_id**: | + | * **network_id**: |
| - | mac**: the MAC address to be assigned to the virtual network adapter. If you omit this option, the MAC address will be automatically generated by the R-Virtualization software. **\\ | + | * **mac**: the MAC address to be assigned to the virtual network adapter. If you omit this option, the MAC address will be automatically generated by the R-Virtualization software. |
| - | ipadd**: the IP address to be assigned to the network adapter in the virtual environment. **\\ | + | * **ipadd**: the IP address to be assigned to the network adapter in the virtual environment. |
| - | ipdel**: the IP address to be removed from the network adapter in the virtual environment. **\\ | + | * **ipdel**: the IP address to be removed from the network adapter in the virtual environment. |
| - | dhcp**: specifies whether the virtual network adapter should get its IP settings through a DHCP server. **\\ | + | * **dhcp**: specifies whether the virtual network adapter should get its IP settings through a DHCP server. |
| - | dhcp6**: specifies whether the virtual network adapter should get its IPv6 settings through a DHCP server.\\ | + | * **dhcp6**: specifies whether the virtual network adapter should get its IPv6 settings through a DHCP server. Use the **< |
| - | Use the **--ipadd** option to switch from DHCP to a static IP address. **\\ | + | * **gw**: the default gateway to be used by the virtual environment. |
| - | gw**: the default gateway to be used by the virtual environment. **\\ | + | * **gw6**: the default IPv6 gateway to be used by the virtual environment. |
| - | gw6**: the default IPv6 gateway to be used by the virtual environment. **\\ | + | * **nameserver**: |
| - | nameserver**: | + | * **searchdomain**: |
| - | searchdomain**: | + | * **configure**: |
| - | configure**: | + | * **ipfilter**: |
| - | ipfilter**: determines if the specified network adapter is configured to filter network packages by IP address. If set to " | + | * **macfilter**: |
| - | macfilter**: | + | * **preventpromisc**: |
| - | preventpromisc**: | + | * **adapter-type**: |
| - | adapter-type**: | + | |
| == Adding virtual serial port to VE == | == Adding virtual serial port to VE == | ||
| - | --device-add** //serial// {**--device** <// | + | **< |
| - | | + | * **device**: the number of the serial port on the R-Virtualization server to be used by the VE. |
| - | + | * **output**: the path to the file where the output of the virtual serial port will be sent. | |
| - | **device**: the number of the serial port on the R-Virtualization server to be used by the VE. **\\ | + | * **socket**: the name of the physical socket on the R-Virtualization server where the serial port is to be connected. You can use the **< |
| - | output**: the path to the file where the output of the virtual serial port will be sent. **\\ | + | * **socket-tcp**: |
| - | socket**: the name of the physical socket on the R-Virtualization server where the serial port is to be connected. You can use the **--socket-mode** option to configure the port to operate in client or server mode. By default, server mode is enabled. **\\ | + | * **socket-udp**: |
| - | socket-tcp**: | + | |
| - | socket-udp**: | + | |
| == Enable USB support == | == Enable USB support == | ||
| - | --device-add** <// | + | **< |
| == Connecting VT-d PCI devices == | == Connecting VT-d PCI devices == | ||
| - | --device-add** <// | + | * **< |
| + | * **< | ||
| + | * **< | ||
| + | * **< | ||
| + | * **< | ||
| + | * **< | ||
| + | * **backup_id**: | ||
| + | * **disk_name**: | ||
| + | * **iface**: Virtual hard disk interface: //ide//, //scsi//. | ||
| + | * **position**: | ||
| + | * 0-3 for IDE disk drives | ||
| + | * 0-6 for SCSI disk drives | ||
| + | * **< | ||
| - | Connects the specified VT-d PCI device to the virtual environment. To list the available devices, use the **prlsrvctl info** command. | + | <WRAP center round tip 60%> |
| - | + | To detach a single backup | |
| - | **--device-set** | + | </WRAP> |
| - | [**--connect** **--disconnect**] | + | |
| - | + | ||
| - | Used to configure various parameters of the specified virtual device. After its adding to the virtual environment, | + | |
| - | + | ||
| - | **--device-del** <// | + | |
| - | + | ||
| - | Removes the specified device from the virtual environment. If **--detach-only** is specified and the device is a virtual hard disk drive, the disk image is preserved. If **--destroy-image** is specified, the virtual HDD image is removed from the server. If **--destroy-image-force** is specified, | + | |
| - | the virtual HDD image is removed from all snapshots and from the server. The default action on deleting a virtual HDD is to preserve the HDD image as if **--detach-image** was specified. | + | |
| - | + | ||
| - | **--device-connect** <// | + | |
| - | + | ||
| - | Used to connect the specified device to a running VE. Supported device types: fdd, cdrom, net. The device name could be obtained using the ’prlctl list -i’ command. | + | |
| - | + | ||
| - | **--device-disconnect** | + | |
| - | + | ||
| - | Disconnect the specified | + | |
| - | + | ||
| - | **--backup-add** <// | + | |
| - | [**--position** <// | + | |
| - | + | ||
| - | Attach a backup to a virtual environment. **\\ | + | |
| - | backup_id**: | + | |
| - | disk_name**: | + | |
| - | iface**: Virtual hard disk interface: //ide//, //scsi//. **\\ | + | |
| - | position**: The SCSI, IDE device identifier to be used for the disk drive. Allowed ranges:\\ | + | |
| - | 0-3 for IDE disk drives\\ | + | |
| - | 0-6 for SCSI disk drives | + | |
| - | + | ||
| - | **--backup-del** | + | |
| - | + | ||
| - | Detach either the backup with the identifier **backup_id** or detach all backups from the virtual environment.\\ | + | |
| - | NOTE: To detach a single backup disk, use the **--device-del** command. | + | |
| ==== Backup and restore management ==== | ==== Backup and restore management ==== | ||
| - | The following command and options can be used to back up and restore a virtual environment. The **--storage** option allows you to specify the backup server. If this option is omitted, the local server is used. | + | The following command and options can be used to back up and restore a virtual environment. The **< |
| - | * **backup** <// | + | * **backup** <// |
| - | * **-f, | + | * **-f,< |
| - | * **-i, | + | * **-i,< |
| - | * **--no-compression** - Do not compress backup image. | + | * **< |
| - | * **--no-reversed-delta** - Do not create an intermediate temporary image for reversed delta writes. | + | * **< |
| - | * **--no-tunnel** - Do not use connection tunneling for backup. Connection tunneling is enabled for backup by default to provide secure data transmission. | + | * **< |
| - | * **backup-list** [//ve_id// // | + | * **backup-list** [//ve_id// // |
| - | * **restore** {< | + | * **restore** {< |
| - | * **-n, | + | * **-n,< |
| - | * **--dst** < | + | * **< |
| - | * **--no-tunnel** - Do not use connection tunneling for restore. Connection tunneling is enabled for restore by default to provide secure data transmission. | + | * **< |
| - | * **--live** - Live restore reduces VM downtime by starting the restored VM right after the restore process begins.= | + | * **< |
| - | * **backup-delete** {<// | + | * **backup-delete** {<// |
| ==== Migration management ==== | ==== Migration management ==== | ||
| The following options can be used to migrate a virtual environment from the source server **src** to the destination server **dst**. If the virtual environment is running, the migration is performed as follows. First, virtual environment data is copied to the destination server, then the virtual environment is suspended, and, finally, the remaining data is migrated. After the virtual environment has been successfully migrated, it is removed from the source server. | The following options can be used to migrate a virtual environment from the source server **src** to the destination server **dst**. If the virtual environment is running, the migration is performed as follows. First, virtual environment data is copied to the destination server, then the virtual environment is suspended, and, finally, the remaining data is migrated. After the virtual environment has been successfully migrated, it is removed from the source server. | ||
| - | * **migrate** < | + | * **migrate** < |
| - | * **--changesid** - This option is used to change the current Windows security identifier (SID) of a Windows-based virtual machine template. It requires R-Virtualization Guest Tools to be installed in the virtual machine template. | + | * **< |
| - | * **--clone** - If this option is provided, the original virtual environment will be cloned to destination and left intact on the source server. The clone will have a different UUID, MAC address, and SID (Windows-based virtual machines only; if **--changesid** is used) and will have offline management disabled. If this option is omitted, the original virtual environment will be removed from the source server after migration. | + | * **< |
| - | * **--remove-src** - If this option is provided, the source bundle will be removed after migration. Cannot be used together with **--clone**. This option is enabled for virtual machines by default. | + | * **< |
| - | * **--no-compression** - Do not compress data during migration. | + | * **< |
| - | * **--no-tunnel** - Do not use connection tunneling for migration. Connection tunneling is enabled for migration by default to provide secure data transmission. | + | * **< |
| - | * **--ssh** <// | + | * **< |
| <WRAP center round tip 60%> | <WRAP center round tip 60%> | ||
| Line 637: | Line 454: | ||
| ==== Snapshot management ==== | ==== Snapshot management ==== | ||
| - | * **snapshot** <// | + | * **snapshot** <// |
| - | * **snapshot-list** <// | + | * **snapshot-list** <// |
| - | * **snapshot-delete** <// | + | * **snapshot-delete** <// |
| - | * **snapshot-switch** <// | + | * **snapshot-switch** <// |
| ==== Hostname management ==== | ==== Hostname management ==== | ||
| - | * **--hostname** <// | + | * **< |
| ==== Offline management ==== | ==== Offline management ==== | ||
| - | * **--offline-management** <//on// //off//> - Enable/ | + | * **< |
| - | * **--offline-service** <// | + | * **< |
| ==== Network bandwidth management ==== | ==== Network bandwidth management ==== | ||
| - | * **--rate** <// | + | * **< |
| - | * **--ratebound** <//yes// //no//> - If set to "// | + | * **< |
| ===== Performance statistics ===== | ===== Performance statistics ===== | ||
| - | * **statistics** {<// | + | * **statistics** {<// |
| - | * **--filter** <// | + | * **< |
| ==== Storage device statistics ==== | ==== Storage device statistics ==== | ||
| Line 716: | Line 533: | ||
| * guest.fs# | * guest.fs# | ||
| - | * **--loop** - Print statistics every second until the program is terminated. | + | * **< |
| - | * **--all** - Print statistics for all running virtual machines and containers on the server. | + | * **< |
| ===== DIAGNOSTICS | ===== DIAGNOSTICS | ||
| Line 727: | Line 544: | ||
| To create and start a VM having the name of //win2003// and based on the ’Windows XP’ template: | To create and start a VM having the name of //win2003// and based on the ’Windows XP’ template: | ||
| - | | + | |
| | | ||
| Line 744: | Line 561: | ||
| ===== SEE ALSO ===== | ===== SEE ALSO ===== | ||
| - | **prlsrvctl**(8) | + | **[[domestic: |
| ===== COPYRIGHT | ===== COPYRIGHT | ||