prlsrvctl


NAME

prlsrvctl − utility for managing R-Virtualization Server.

SYNOPSIS

prlsrvctl info [-j, –json] [–license] [-f, –full]

prlsrvctl set [-s,–min-security-level <low|normal|high>] [{–device <device> –assignment <host|vm>}] [–backup-storage <user[[:passwd]@server[:port]]>] [–backup-path <path>] [–idle-connection-timeout <timeout>] [–backup-tmpdir tmpdir] [–allow-attach-screenshots <on|off>] [–cpu-features-mask <{{//+//,//-//}//feature1//,//feature=value//}[//,//...]>] [–vm-cpulimit-type <full|guest>] [–vcmmd-policy <density|performance>] [–vnc-ssl-certificate <fname> –vnc-ssl-key <fname>] [OPTIONS]

prlsrvctl install-license -k,–key <key> [-n,–name <name>] [-c,–company <name>] [OPTIONS]

prlsrvctl update-license [OPTIONS]

prlsrvctl user list [-j, –json] [OPTIONS]

prlsrvctl user set –def-vm-home <path>

prlsrvctl problem-report <-d,–dump|-s,–send [–proxy <user[:password]@proxyhost[:port]> | –no-proxy]> [–stand-alone]

prlsrvctl net add <vnetwork_id> [-i,–ifname <if>] [-m,–mac <mac_address>] [-t,–type <bridged|host-only>] [-d,–description <description>] [–ip <ip[/mask]>] [–dhcp-server <on|off>] [–dhcp-ip <ip>] [–ip-scope-start <ip>] [–ip-scope-end <ip>] [–ip6 <ip[/mask]>] [–dhcp6-server <on|off>] [–dhcp-ip6 <ip>] [–ip6-scope-start <ip>] [–ip6-scope-end <ip>]

prlsrvctl net set <vnetwork_id> [-i,–ifname <if>] [-m,–mac <mac_address>] [-t,–type <bridged|host-only>] [-d,–description <description>] [–ip <ip[/mask]>] [–dhcp-server <on|off>] [–dhcp-ip <ip>] [–ip-scope-start <ip>] [–ip-scope-end <ip>] [–ip6 <ip[/mask]>] [–dhcp6-server <on|off>] [–dhcp-ip6 <ip>] [–ip6-scope-start <ip>] [–ip6-scope-end <ip>]

prlsrvctl net del <vnetwork_id>

prlsrvctl net info <vnetwork_id>

prlsrvctl net list [-j, –json]

prlsrvctl privnet add <private_network_id> [-a,–ipadd <ip[/mask]>] [–global <yes|no>]

prlsrvctl privnet set <private_network_id> [-a,–ipadd <ip[/mask]>] [-d,–ipdel <ip[/mask]>] [–global <yes|no>]

prlsrvctl privnet del <private_network_id>

prlsrvctl privnet list [-j, –json]

prlsrvctl usb list [-j, –json] [OPTIONS]

prlsrvctl usb set <usb_dev_id> <vm_uuid | vm_name> [OPTIONS]

prlsrvctl usb del <usb_dev_id> [OPTIONS]

prlsrvctl cttemplate list [-j, –json]

prlsrvctl cttemplate remove <name> [<os_template_name>]

prlsrvctl cttemplate copy <dst_node> <name> [<os_template_name>] [-f,–force]

prlsrvctl backup [-f,–full] [-i,–incremental] [-s,–storage <user[:password]@server[:port]>] [–description <desc>] [-u,–uncompressed]

prlsrvctl tc restart

DESCRIPTION

The prlsrvctl utility is used to manage R-Virtualization Server.

OPTIONS

Flags

The following flags can be used with the majority of prlsrvctl commands.

  • -l,–login user[[:passwd]@server - Connect to the remote R-Virtualization server using the IP address or hostname of server and the specified credentials (i.e. the user username and passwd password). If no connection parameters are specified, prlsrvctl assumes that the command is run on the local server.
  • –timeout <sec> - Specify custom operation timeout in seconds (by default any operation has infinit timeout).

Configuring R-Virtualization Server parameters

set [SET_OPTIONS]

This command is used to set and configure various VM parameters.
The following options can be used with the set command:

  • -s,–min-security-level <low|normal|high> - Specifies the minimum allowable security level that can be used by users to connect to the server:
    • low - none of the transmitted data is encrypted.
    • normal - only the most important data is encrypted.
    • high - all transmitted data is encrypted.
  • –device <device> –assignment <host|vm> - Set assignment mode for VTd devices.
  • –backup-path <path> - Set the backup location on the local server.
  • –idle-connection-timeout <timeout> - 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.
  • –backup-tmpdir <tmpdir> - Set the backup directory for temporary snapshot creation.
  • –backup-storage <user[[:passwd]@server[:port]]> - Set the default backup server. To unset, specify empty arguments.
  • –allow-attach-screenshots <on|off> - Enables/disables attaching virtual machine and host screenshots to Problem Report.
  • –cpu-features-mask <{{+,-}feature1,feature=value}[,…]> - Changes host’s global CPU features mask. NOTE: All virtual machines and Containers on the host must be stopped. On/off (boolean) features can be masked and unmasked using the {+,-}feature syntax. Omitting the sign is equivalent to unmasking, e.g., the +feature syntax. Features which require specific values can be set using the feature=value syntax. For a list of host’s CPU features which are supported, maskable, and already masked, run the prlsrvctl info –full command.
  • –vm-cpulimit-type <full|guest> - Specifies whether the CPU limit affects all virtual machine threads including service (full), or guest threads only (guest).
  • –vcmmd-policy <density|performance> - Sets host’s global vcmmd policy. NOTE: Before setting the policy, stop all virtual machines and containers on the host or temporarily migrate them live to another host.
  • –vnc-ssl-certificate <fname> –vnc-ssl-key <fname> = Install an SSL certificate and a private key to encrypt all VNC connections on node. To disable VNC encryption, specify empty arguments (e.g., ’’).

Managing R-Virtualization server

  • install-license -k,–key <key> [-n,–name <name>] [-c,–company <name>] - Install R-Virtualization license.
  • update-license - Update current R-Virtualization license.
  • info - Show detailed information about the R-Virtualization server configuration. If the –license option is specified, only the license info is displayed. You can use the –json option to produce machine-readable output in JSON format.
  • problem-report <-d,–dump|-s,–send [–proxy <user[:password]@proxyhost[:port]> | –no-proxy]> [–stand-alone] - Generate a problem report. If the -s,–send option is specified, the report will be sent to the report server. The –stand-alone option allows you to generate a report when the R-Virtualization Server service is not running.

Listing R-Virtualization server users

user list - Lists the R-Virtualization server users.

Configuring user settings

user set - This command is used to manage the settings of the user currently logged in to the R-Virtualization server.

You can use the following option with the command:

  • –def-vm-home <path> - Set the default location on the R-Virtualization server for storing virtual machines of the current user.

Configuring R-Virtualization Server Virtual Networks

net [NET_OPTIONS]

This command is used to manage Virtual Networks on the R-Virtualization server. vnetwork_id denotes the Virtual Network you want to configure.

The following actions can be used with the net command:

  • add Create a new Virtual Network.
  • set Update the Virtual Network’s properties.
  • del Remove the specified Virtual Network.
  • info Show detailed information about the specified Virtual Network.
  • list List the available Virtual Networks on the R-Virtualization server.

The following options can be used with the net actions:

  • -i,–ifname <if> - Set the name of the network card on the R-Virtualization server to which the Virtual Network will be bound.
  • -m,–mac <mac> - Set the MAC address of the network card on the R-Virtualization server to which the Virtual Network will be bound. The network card with the specified MAC address must exist on the R-Virtualization server.
  • -t,–type <bridged|host-only> - Specifies the type of the Virtual Network.
    • bridged A virtual machine connected to this type of Virtual Network appears as an independent computer on the network.
    • host-only A virtual machine connected to this type of Virtual Network can access only the R-Virtualization server and the virtual machines connected to the same Virtual Network.
  • -d,–description <description> - Set the Virtual Network description.
  • –ip <ip[/mask]> - Set an IPv4 address and subnet mask for the R-Virtualization virtual adapter.
  • –dhcp-server <on|off> - Enable or disable the R-Virtualization virtual DHCPv4 server.
  • –dhcp-ip <ip> - Set an IPv4 address for the R-Virtualization virtual DHCPv4 server.
  • –ip-scope-start <ip> - Set a start IPv4 address for the pool of IPv4 addresses.
  • –ip-scope-end <ip> - Set an end IPv4 address for the pool of IPv4 addresses.
  • –ip6 <ip[/mask]> - Set an IPv6 address and subnet mask for the R-Virtualization virtual adapter.
  • –dhcp6-server <on|off> - Enable or disable the R-Virtualization virtual DHCPv6 server.
  • –dhcp-ip6 <ip> - Set an IPv6 address for the R-Virtualization virtual DHCPv6 server.
  • –ip6-scope-start <ip> - Set a start IPv6 address for the pool of IPv6 addresses.
  • –ip6-scope-end <ip> - Set an end IPv6 address for the pool of IPv6 addresses.

Configuring R-Virtualization Server IP private networks

privnet [PRIVNET_OPTIONS]

This command is used to manage IP private networks on the R-Virtualization server. private_network_id denotes the IP private network you want to configure.
The following actions can be used with the privnet command:

  • add Create a new IP private network.
  • set Update the IP private network’s properties.
  • del Remove the specified IP private network.
  • list List the available IP private networks on the R-Virtualization server.

The following options can be used with the privnet command:

  • -a,–ipadd <addr> - Add the IP subnet to the list of subnets in the specified IP private network. Specify an asterisk (’*’) to make the IP private network “weak” and allow its IP addresses to access all other IP addresses, excluding those in regular private networks.
  • -d,–ipdel <addr> - Remove the IP subnet from the list of subnets in the specified IP private network.
  • –global <yes|no> - Specify whether the IP subnet defines global range of the IP addresses to be treated as covered by some private network or just particular IP private network.

Configuring Automatic USB Device Assignments

usb list - List the USB devices installed on the server together with the information on their assignments for the current user.

usb set <usb_dev_id> <vm_uuid | vm_name> - Assign the USB device with ID <usb_dev_id> to the virtual machine <vm_uuid>. This USB device will be connected to the specified virtual machine when you start the virtual machine or attach the device to the R-Virtualization server.

usb del <usb_dev_id> - Remove the assignment for the USB device with ID <usb_dev_id>.

Configuring templates for Containers

cttemplate list - List the OS and application templates installed on the R-Virtualization server.

cttemplate remove <name> [<os_template_name>] - Remove the specified OS or application template from the R-Virtualization server. To delete an application template, you need to additionally indicate the os_template_name parameter.

cttemplate copy <dst_node> <name> [<os_template_name>] [-f,–force] - Copies the specified OS or application template from the local server to the destination server dst_node. To copy an application template, you need to additionally indicate the os_template_name parameter. The destination server must be specified in this format: [user[:password]@]server_IP_address_or_hostname[:port]. If the –force option is specified, all validation checks will be skipped.

plugin list - List all installed R-Virtualization plugins.

plugin refresh - Refresh installed R-Virtualization plugins.

Backup management

backup [-f,–full] [-i,–incremental] [-s,–storage <user[:password]@server[:port]>] [–description <desc>] [-u,–uncompressed] - Back up all virtual environments on the node.

  • -f,–full - Create a full backup of each virtual environment on the node. A full backup contains all the virtual environment data.
  • -i,–incremental - Create 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.
  • -s,–storage <user[:password]@server[:port]> - Specify the host to store backup images at.
  • –description <desc> - Add a description desc to each virtual environment backup.
  • -u,–uncompressed - Do not compress backup images.

Traffic control management

tc restart - Apply the traffic shaping setting to all running virtual environments.

DIAGNOSTICS

prlsrvctl returns 0 upon successful command execution. If a command fails, it returns the appropriate error code.

SEE ALSO

prlctl(8)

Copyright © 2012-2017 R-Platforma LLC, All rights reserved. Copyright © 2017-2019 R-Platforma LLC, All rights reserved.