2.2. System Utilities¶
This section provides information on utilities that can be used to manage Virtuozzo Hybrid Server parameters.
2.2.1. prlsrvctl¶
The prlsrvctl
command-line utility is used to perform management tasks on the hardware node and Virtuozzo Hybrid Server. The tasks include getting the Virtuozzo Hybrid Server information, modifying its preferences, installing a license, obtaining statistics and problem reports, and some others.
prlsrvctl [<command> [<options>]
[-l, --login [<user>[:<passwd>]@]<server>[:<port>]]
Name |
Description |
---|---|
|
The command to execute. |
|
Command options. See individual commands for available options. |
|
Connect to the remote hardware node and execute a command there. If this parameter is omitted, the command will be executed on the local server. |
|
The name of the user used to log in to the remote server. |
|
The user password. If the password is omitted, you will be prompted to enter it. |
|
The remote server IP address or hostname and port number, If port number is omitted, the default port will be used. |
Note
To display help, enter prlsrvctl
on the command-line without any options.
2.2.1.1. prlsrvctl backup¶
The command is used to back up all virtual environments on the node.
prlsrvctl backup [-f,--full] [-i,--incremental]
[-s,--storage <user>[:<password>]@<server>[:<port>]]
[--description <desc>] [-u,--uncompressed]
Name |
Description |
---|---|
|
Creates a full backup of each virtual environment on the node. A full backup contains all the virtual environment data. |
|
Creates an incremental backup of each virtual environment on the node. An incremental backup contains only the files that were changed since the previous full or incremental backup. This is the default backup type. |
|
The host to store backup images at. |
|
Adds a description to each virtual environment backup. |
|
Does not compress backup images. |
2.2.1.2. prlsrvctl info¶
Displays the hardware node and Virtuozzo Hybrid Server configuration information.
prlsrvctl info
The information returned by the info
command includes the following:
Server ID and hostname.
Virtuozzo Hybrid Server version number.
Default directory for storing virtual machine files.
Virtuozzo Hybrid Server memory limits.
Virtuozzo Hybrid Server minimum allowable security level.
Default directory for storing virtual machine backups.
Virtuozzo Hybrid Server license information.
Server hardware configuration information.
Other miscellaneous info.
2.2.1.3. prlsrvctl net¶
The prlsrvctl net
command is used to create and configure virtual networks.
Subcommands
Name |
Description |
---|---|
|
Creates a new virtual network |
|
Configures the parameters of an existing virtual network. |
|
Removes an existing virtual network. |
|
List the available virtual networks. |
net add
Creates a new virtual network.
prlsrvctl net add <vnetwork_ID> [-i, --ifname <if>] [-m, --mac <mac_address>]
[-t, --type <bridged|host-only>] [-d, --description <desc>]
[--ip <IP_address>[/<mask>]] [--dhcp-server <on|off>]
[--dhcp-ip <IP_address>] [--ip-scope-start <IP_address>]
[--ip-scope-end <IP_address>] [--ip6 <IP_address>[/</emphasis><mask>_]]
[--dhcp6-server <on|off>] [--dhcp-ip6 <IP_address>]
[--ip6-scope-start <IP_address>] [--ip6-scope-end <IP_address>]
Name |
Description |
---|---|
|
A user-defined name that will identify the new virtual network. |
|
The name of a physical network adapter on the hardware node to which this virtual network should be bound. |
|
The MAC address of a virtual network adapter on the hardware node to which this virtual network should be bound. |
|
The type of the virtual network to create. Possible values are:
|
|
A user-defined description of the virtual network. Descriptions with white spaces must be enclosed in quotation marks. |
|
Set an IPv4/IPv6 address and subnet mask for the Virtuozzo Hybrid Server virtual adapter. |
|
Enable or disable the Virtuozzo Hybrid Server virtual DHCPv4/DHCPv6 server. |
|
Set an IPv4/IPv6 address for the Virtuozzo Hybrid Server virtual DHCPv4/DHCPv6 server. |
|
Set the starting and ending IPv4/IPv6 addresses for the DHCPv4/DHCPv6 pool. The virtual machines and containers connected to the network you are creating will automatically receive their IPv4/IPv6 addresses from the respective DHCPv4/DHCPv6 pool. |
net set
Configures the settings of an existing virtual network.
prlsrvctl net set <vnetwork_ID> [-i, --ifname <if>] [-m, --mac <mac_address>]
[-t, --type <bridged|host-only>] [-d, --description <desc>]
[--ip <IP_address>[/<mask>]] [--dhcp-server <on|off>]
[--dhcp-ip <IP_address>] [--ip-scope-start <IP_address>]
[--ip-scope-end <IP_address>] [--ip6 <IP_address>[/</emphasis><mask>_]]
[--dhcp6-server <on|off>] [--dhcp-ip6 <IP_address>]
[--ip6-scope-start <IP_address>] [--ip6-scope-end <IP_address>]
Name |
Description |
---|---|
|
The name of the virtual network to modify. |
|
The name of a physical network adapter on the hardware node to which this virtual network should be bound. |
|
The MAC address of a virtual network adapter on the hardware node to which this virtual network should be bound. |
|
The type of the virtual network to modify. Possible values are:
|
|
A user-defined description of the virtual network. Descriptions with white spaces must be enclosed in quotation marks. |
|
Set an IPv4/IPv6 address and subnet mask for the Virtuozzo Hybrid Server virtual adapter. |
|
Enable or disable the Virtuozzo Hybrid Server virtual DHCPv4/DHCPv6 server. |
|
Set an IPv4/IPv6 address for the Virtuozzo Hybrid Server virtual DHCPv4/DHCPv6 server. |
|
Set the starting and ending IPv4/IPv6 addresses for the DHCPv4/DHCPv6 pool. The virtual machines and containers connected to the network you are creating will automatically receive their IPv4/IPv6 addresses from the respective DHCPv4/DHCPv6 pool. |
net del
Deletes an existing virtual network.
prlsrvctl net del <vnetwork_ID>
Name |
Description |
---|---|
|
The name of the virtual network to delete. |
net list
Lists the existing virtual networks.
prlsrvctl net list
2.2.1.4. prlsrvctl problem-report¶
Generates and displays problem reports.
prlsrvctl problem-report
The command collects technical data about Virtuozzo Hybrid Server and the hardware node and displays the report on screen (the output can also be piped to a file). The report can then be directed to the Virtuozzo technical support team for analysis.
2.2.1.5. prlsrvctl set¶
Configures Virtuozzo Hybrid Server preferences.
prlsrvctl set [-s, --min-security-level <low|normal|high>]
[--mng-settings <allow|deny>]
[--device <device> --assignment <host|vm>_]
[--backup-storage [<user>[:<passwd>]@]<server>[:<port>]]
[--backup-tmpdir <path>] [--backup-path <path>]
[--backup-mode <push|push-with-reversed-delta>]
[--idle-connection-timeout <timeout>]
[--verbose-log <on|off>] [--cluster-mode <on|off>]
[--cpu-features-mask <{+|-}feature1,feature2=value[,...]>]
[--vm-cpulimit-type <full|guest>]
[--vcmmd-policy <density|performance>]
[--vnc-ssl-certificate <path> --vnc-ssl-key <path>] [--vnc-clipboard <on|off>]
[--vnc-default-address <ip>]
Name |
Description |
---|---|
|
The lowest allowable security level that can be used to connect to the hardware node. The following options are available:
|
|
Grants or denies permission to new users to modify Virtuozzo Hybrid Server preferences. By default, only administrators of the host OS can modify Virtuozzo Hybrid Server preferences. When a new user profile is created (this happens when a user logs in to the hardware node for the first time), he/she will be granted or denied this privilege based on the default setting. This parameter allows you to set that default setting. Please note that this parameter only affects new users (the users that will be created in the future). The profiles of the existing users will not be modified. |
|
Allows to set the assignment mode for the specified VTd device. The following options are available:
|
|
The default backup server where to store virtual machine backups. Requires RSA authentication to be set up. See Setting Up RSA Authentication Between Nodes. |
|
The name and path of the default directory on the backup server where to store virtual machine backups. |
|
Turns the verbose output for the command on or off. |
|
Turns the cluster mode on or off. |
|
Sets a timeout interval in seconds after which, if no data has been received from the storage server or backup client, the process of backup/restore is terminated. |
|
Sets the directory for temporary snapshots created during backup. If
this directory is set without setting the backup mode as well, and if
the value is not empty, the backup mode automatically switches to
|
|
Sets the backup mode. If both the |
|
Changes CPU features mask on the host. To mask/unmask features, use
the Note the following:
|
|
Specifies the type of virtual machine threads to be affected by the CPU limit:
With the Note the following:
|
|
Switches the automatic memory management policy on the host:
Note Before setting a policy, make sure there are no running virtual machines or containers on the host. |
|
Names and paths of SSL certificate file and key used to encrypt VNC connections on the node. To disable VNC encryption, specify empty arguments (e.g., ‘’). |
|
You can enable or disable the option of copying to the clipboard. |
|
Specify a default VNC address for all created VMs after setting the
option. If used, |
2.2.1.6. prlsrvctl usb¶
The prlsrvctl usb
command is used to permanently assign a USB device to a specific virtual machine. This functionality works only with virtual machines (not containers).
Subcommands
Name |
Description |
---|---|
|
Lists USB devices connected to the server together with the information about their virtual machine assignments for the current user. |
|
Permanently assigns a USB device to the specified virtual machine. |
|
Removes a previously created USB device assignment. |
usb list
Lists the USB devices connected to the physical server.
prlsrvctl usb list
Returns a list of USB devices in tabular format with the following columns:
Name - the USB device name.
ID - a string that uniquely identifies the USB devices on the physical server. The ID never changes even if the device is disconnected from the server and then reconnected again. Please note that if a device ID is listed in quotes, they are a part of the ID and must be included in other calls that use it as an input parameter.
VM UUID - a universally unique ID of the virtual machine to which this USB device is permanently assigned. If a USB device is not assigned to any virtual machine, this column will be empty.
usb set
Permanently assigns a USB device to the specified virtual machine. A permanently assigned USB device will be connected to the virtual machine automatically every time you start this virtual machine and connect the device to the hardware node. This functionality works only with virtual machines (not containers).
prlsrvctl usb set <usb_dev_ID> <VM_UUID>
Name |
Description |
---|---|
|
The USB device ID. To obtain the list of USB devices connected to the server use the |
|
The UUID of the virtual machine to which to assign the USB device. |
usb del
Deletes a USB device assignment previously created with the usb set
command.
prlsrvctl usb del <usb_dev_ID>
Name |
Description |
---|---|
|
The USB device ID. To see the current USB device assignments for the current user use the |
2.2.1.7. prlsrvctl user list¶
Displays the list of Virtuozzo Hybrid Server users. Only those users are displayed who has created at least one virtual machine and container.
prlsrvctl user list [-o, --output <name|mng_settings|def_vm_home>]
Name |
Description |
---|---|
|
Fields to include in the output. The following fields are available:
The fields must be specified in lowercase. |
2.2.1.8. prlsrvctl user set¶
Configures the profile of the user currently logged in to the Virtuozzo Hybrid Server server.
prlsrvctl user set [--def-vm-home <path>]
Name |
Description |
---|---|
|
The default virtual machine and container directory name and path. |
2.2.1.9. prlsrvctl cttemplate¶
The prlsrvctl cttemplate
command is used to manage OS and application EZ templates for containers on the Virtuozzo Hybrid Server server.
list
Lists all the OS and application templates installed on the server.
prlsrvctl cttemplate list
copy
Copies the specified OS or application template from the local server to the destination server. To copy an application EZ template, additionally specify the os_template_name
parameter.
prlsrvctl cttemplate copy <dst_node> <name> [<os_template_name>] [-f, --force]
Name |
Description |
---|---|
|
OS or application template name. |
|
OS template name. Required for copying application templates. |
|
Destination server specified in the format [<user>[:<password>]@]<server>[:<port>]. |
|
Specifies whether all validation checks should be skipped. |
remove
Removes the specified OS or application template from the server.
prlsrvctl cttemplate remove <name> [<os_template_name>]
Name |
Description |
---|---|
|
OS or application template name. |
|
OS template name. Required for deleting application templates. |