This product is protected by United States and international copyright laws. The product’s underlying
technology, patents, and trademarks are listed at http://www.parallels.com/trademarks.
Microsoft, Windows, Windows Server, Windows NT, Windows Vista, and MS-DOS are registered trademarks of
Microsoft Corporation.
Linux is a registered trademark of Linus Torvalds.
Mac is a registered trademark of Apple, Inc.
All other marks and names mentioned herein may be trademarks of their respective owners.
3
Contents
Introduction 5
About Parallels Command Line Tools......................................................................................................... 5
Organization of This Guide.......................................................................................................................... 6
General Syntax............................................................................................................................................. 8
General Syntax........................................................................................................................................... 20
prlctl set .......................................................................................................................................... 20
Parallels Server, Parallels Workstation, and Parallels Desktop come with two command-line
utilities: prlsrvctl and prlctl.
prlsrvctl
The prlsrvctl utility is used to administer Parallels Service (the core component of any
Parallels hypervisor-based virtualization product). The tasks that can be performed include
getting general information about the Parallels Service and its configuration settings, modifying
Parallels Service preferences, getting a list of users, obtaining statistics, installing a license, and
others.
To launch the utility from the command line, type:
prlsrvctl
prlctl
The prlctl utility is used to perform administration tasks on virtual machines. The utility
supports a full range of tasks from creating and administering virtual machines to installing
Parallels Tools, getting statistics, and generating problem reports.
To launch the utility from the command line, type:
prlctl
The rest of this guide provides detailed technical information about commands and options
available with each utility.
Introduction 6
Organization of This Guide
This guide is organized into the following chapters:
Introduction (you are reading it now).
Parallels Service Management. Provides technical information about the prlsrvctl utility, its
commands and options.
Virtual Machine Management. Provides technical information about the prlctl utility, its
commands and options.
Feedback
If you spot a typo in this guide, or if you have an opinion about how to make this guide more
helpful, you can share your comments and suggestions with us by completing the
Documentation Feedback form on our website (http://www.parallels.com/en/support/usersdoc/).
7
C HAPTER 2
Parallels Service Management
Parallels Virtualization Service is a core component of any Parallels hypervisor-based
virtualization product. Parallels Service is managed using the prlsrvctl command-line
utility, which is supplied with all Parallels virtualization products and is installed on the host
machine during the product installation.
Between curly brackets and/or separated
by pipe (|).
Examples:
ID|name
{-o name|-dname}
Parameter followed by the same
parameter in brackets with ellipses.
Parameters that the user must type exactly as
shown.
Parameter values that the user must supply.
Optional parameters.
Set of choices from which the user must choose
only one.
Parameters that can be repeated more than once
in the same command line.
Example: name[,name...]
Parallels Service Management 8
General Syntax
The prlsrvctl command-line utility is used to perform management tasks on Parallels
Service. The tasks include getting the Parallels Service information, modifying Parallels Service
preferences, installing a license, obtaining statistics and problem reports, and some others.
user Name of the user on the remote server. passwdThe user password. If the password is omitted, you will be
serverThe remote server IP address or hostname.
-v, --verbose
number
Command options. See individual commands for available options.
Connect to the remote Parallels Service and execute a command on
it. If this parameter is omitted, the command will be executed on
the local machine.
prompted to enter it.
Show verbose output. The greater the number, the more verbose
output will be produced.
Remarks
To display help, enter prlsrvctl on the command line without any parameters.
Links
Legend (p. 7)
Parallels Service Management 9
prlsrvctl Commands
prlsrvctl info
Displays the host computer and the Parallels Service configuration information.
Syntax
prlsrvctl info
Remarks
The information returned by the info command includes the following:
Host machine name.
Parallels virtualization product version number.
Host operating system type and version.
The default virtual machine directory name and path.
Parallels Service memory limits.
Parallels Service minimum allowable security level.
The default backup directory name and path for virtual machines.
Parallels license information.
Host machine hardware configuration information.
Other miscellaneous info.
Links
General Syntax (p. 8), Legend (p. 7)
Parallels Service Management 10
prlsrvctl install-license
Installs Parallels Server, Parallels Desktop, or Parallels Workstation license on the host
computer.
The prlsrvctl net command allows you to create and configure Parallels virtual networks.
The following subsections describe how to perform individual virtual network configuration
tasks.
Parallels Service Management 11
Creating a New Virtual Network
The prlsrvctl net add command can be used to create a new virtual network.
A user-defined name that will identify the new virtual
network.
-i,--ifname if
-m,--mac mac_address
-t,--type value
-d,--description
description
Links
General Syntax, Legend (p. 7)
The name of a physical network adapter on the host computer
to which this virtual network should be bound.
The MAC address of a virtual network adapter on the host
computer to which this virtual network should be bound.
The type of the virtual network to create. Possible values are:
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 host
computer and the virtual machines connected to the
same virtual network.
shared -- a virtual machine connected to this type
of virtual network uses the host computer network
connections.
A user-defined description of the virtual net wo rk .
Parallels Service Management 12
Modifying a Virtual Network
The prlsrvctl net set command allows you to modify an existing virtual network.
Syntax
prlsrvctl net set vnetwork_id -i --ifname if-m --mac mac_address] [,] [,
[-t,--type bridged|host-only|shared]
[-d,--description description]
[-n, --name new_name]
Parameters
Name Description
vnetwork_id
The name of the virtual network to modify.
-i,--ifname if
-m,--mac mac_address
-t,--type
-d,--description
description
-n, --name new_name
Links
The name of a physical network adapter on the host computer
to which this virtual network should be bound.
The MAC address of a virtual network adapter on the host
computer to which this virtual network should be bound.
The type of the virtual network to create. Possible values are:
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 host
computer and the virtual machines connected to the
same virtual network.
shared -- a virtual machine connected to this type
of virtual network uses the host computer network
connections.
A user-defined description of the virtual net wo rk .
A new name for the virtual network. Use this parameter if you
would like to rename the virtual network.
General Syntax, Legend (p. 7)
Parallels Service Management 13
Deleting a Virtual Network
The prlsrvctl net del command allows to delete an existing virtual network.
Syntax
prlsrvctl net del vnetwork_id
Parameters
Name Description
vnetwork_id
The name of the virtual network to delete.
Links
General Syntax, Legend (p. 7)
Listing Existing Virtual Networks
The prlsrvctl net list command lists the existing virtual networks.
Syntax
prlsrvctl net list
Links
General Syntax, Legend (p. 7)
Parallels Service Management 14
prlsrvctl problem-report
Obtains the Parallels Service problem report and displays it on the screen.
Syntax
prlsrvctl problem-report
Parameters
The command accepts no parameters.
Remarks
The command collects technical data about the Parallels Service and displays the report on the
screen (the output can also be piped to a file). The report can then be directed to Parallels
technical support for analysis.
Sets the upper limit of the memory size that can be reserved
for Parallels Service operation. The following options are
available:
-s,--min-security-level
-c,--cep
--mng-settings
auto -- if this option is used, the memory size will
be calculated automatically.
size -- user-defined memory size, in megabytes.
The lowest allowable security level that can be used to
connect to the Parallels Service. The following options are
available:
low -- plain TCP/IP (no encryption).
normal -- most important data is sent and received
using SSL over TCP/IP (user credentials during
login, guest OS clipboard, etc.) Other data is sent
and received using plain TCP/IP with no encryption.
high -- all of the data is sent and received using
SSL.
Enables/disables the participation in the Customer
Experience Program. The following options are available:
on -- enables CEP.
off -- disables CEP.
Allows to grant or deny permission to new users to modify
Parallels Service preferences. By default, only administrators
of the host OS can modify Parallels Service preferences.
When a new Parallels Service user profile is created (this
happens when a user logs in to Parallels Service for the first
time), he/she will be granted or denied this privilege based on
the default setting. This parameter allows 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.
Parallels Service Management 16
--device device -assignment
Allows to set the assignment mode for the specified VTd
device. The following options are available:
host -- assign the device to host.
vm -- assign the device to virtual machines.
--backup-storage
userName of the user on the backup server.
passwdThe user password.
serverThe backup server IP address or hostname.
portPort number. If omitted, the default port number will be used.
--backup-path path
--default-encryptionplugin plugin-id
--reset-defaultencryption-plugin
The default backup server where virtual machine backups will
be stored.
Name and path of the default directory on the backup server
where virtual machines backups will be stored.
Allows to specify which encryption plug-in should be used by
default. An encryption plug-in implements an encryption
algorithm, which is used to encrypt a virtual machine. Use
this option to specify the ID of the plug-in, which should be
used by default.
Resets the default encryption plug-in assignment and sets the
built-in plug-in to be used by default.
Links
General Syntax (p. 8), Legend (p. 7)
prlsrvctl shutdown
Shuts down the Parallels Service.
Syntax
prlsrvctl shutdown [-f,--force]
Parameters
Name Description
-f, --force
Links
General Syntax (p. 8), Legend (p. 7)
Specifies whether the shutdown operation should be for c ed. If one or
more virtual machines are running, clients are connected, or some
tasks are currently in progress, then forcing the shutdown will stop
all processes automatically and will shut down the Parallels Service.
Subscribes to receive statistics on the periodic basis. Once you
execute the command with this option, the statistics will be
displayed in your console window every time a new set of values is
collected. To unsubscribe, press the Enter key or Ctrl-C in your
console window.
This parameter is not currently used.
Links
General Syntax (p. 8), Legend (p. 7)
Parallels Service Management 18
prlsrvctl user list
Displays the list of Parallels Service users.
Syntax
prlsrvctl user list [-o,--output name[,name...]]
Parameters
Name Description
-o,--output name
Names of the fields to include in the output. The following fields are
available:
name -- User name.
mng_settings -- Indicates whether the user is allowed
to modify Parallels Service preferences.
def_vm_home -- The user default virtual machine
folder.
The fields must be specified using the lower case letters.
See Also
prlsrvctl user set
Links
General Syntax (p. 8), Legend (p. 7)
19
C HAPTER 3
Virtual Machine Management
Parallels virtual machines can be managed using the prlctl command-line utility, which is
supplied with all Parallels hypervisor-based virtualization products, such as Parallels Server,
Parallels Desktop, and Parallels Workstation. The utility is installed on the host machine during
the product installation.
Between curly brackets and/or separated
by pipe (|).
Examples:
ID|name
{-o name|-dname}
Parameter followed by the same
parameter in brackets with ellipses.
Parameters that the user must type exactly as
shown.
Parameter values that the user must supply.
Optional parameters.
Set of choices from which the user must choose
only one.
Parameters that can be repeated more than once
in the same command line.
Example: name[,name...]
Virtual Machine Management 20
General Syntax
The prlctl utility is used to perform administration tasks on virtual machines. The utility
supports a full range of tasks from creating and administering virtual machines to installing
Parallels Tools, getting statistics, and generating problem reports.
The name of the command to execute (see the table below for the
complete list of commands).
ID
name
options
-v, --verbose number
The ID of the virtual machine on which to perform the operation.
To obtain the list of the available virtual machines, use the
prlctl list command (p. 49).
The name of the virtual machine on which to perform the
operation. To obtain the list of the available virtual machines, use
the prlctl list command (p. 49).
Command options. See individual commands for available
options.
Show verbose output. The greater the number, the more verbose
output will be produced.
Remarks
To display help, enter prlctl without any parameters.
Links
Legend (p. 7)
prlctl
Parallels virtual machines can be managed using the pctl command-line utility. The utility is
installed on the Parallels server during the product installation.
prlctl set
The prlctl set command is used to modify the configuration of a virtual machine and manage
virtual machine devices and shared folders. The following subsections provide technical
information on how to use the command to perform these tasks.
Virtual Machine Management 21
Modifying Virtual Machine Configuration
The prlctl set command can be used to modify some of the virtual machine configuration
parameters, including virtual CPU availability, RAM and video memory size, startup and
shutdown options, and some others.
Target virtual machine name.
Number of virtual CPUs in the virtual
machine. If the host has more than one CPU,
this option allows to set the number of virtual
CPUs to be available in the virtual machine.
The amount of memory (RAM) available to
the virtual machine, in megabytes.
The amount of video memory available to the
virtual machine graphics card.
Short description of the virtual machine.
Defines the virtual machine start-up options:
on -- the virtual machine is started
automatically on the Parallels Service
startup.
off -- the autostart is off. This is the
default virtual machine start-up mode.
auto -- resume the virtual machine state
prior to the Parallels Service shutdown.
If you set this option to on or auto, you must
additionally specify the --start-as-user
option (see below).
--autostart-delay number
--autostop stop|suspend
Sets the time delay used during the virtual
machine automatic startup.
Sets the automatic shutdown mode for the
specified virtual machine:
stop -- the virtual machine is stopped
when you shut down the Parallels Service.
suspend -- the virtual machine is
suspended when the Parallels Service is
shut down.
Virtual Machine Management 22
--start-as-user
administrator|owner|user:passwd
Links
General Syntax, Legend (p. 7)
Specifies the account to use to autostart the
virtual machine:
administrator -- start the virtual
machine as the administrator of the host
operating system.
owner -- start the virtual machine as the
virtual machine owner.
user:passwd -- start the virtual
machine as the specified user.
Virtual Machine Management 23
Managing Virtual Devices
The prlctl set command allows to add virtual devices to a virtual machine and to modify
and delete existing virtual devices.
General Syntax
prlctl set ID|VM_name --device-add dev_typeoptions
prlctl set ID|VM_name --device-set name options
prlctl set ID|VM_name --device-del name
Parameters
Name Description
ID
The virtual machine ID.
VM_name
--device-add dev_typeoptions
--device-set name options
--device-del name
The virtual machine name.
Adds a virtual device to the specified virtual
machine.
The dev_type parameter specifies the virtual
device type (hdd, cdrom, fdd, net, etc.).
The options parameters specifies device-type
specific options.
Modifies the configuration of an existing virtual
device in the specified virtual machine.
The name parameter specifies the virtual
device name.
The options parameters specifies devicetype specific options.
Deletes a virtual device from the virtual
machine. The name parameter specifies the
name of the virtual device to delete.
Remarks
All device-related parameters can be subdivided into the following categories:
Hard disk drives (p. 25)
Optical disk drives (p. 27)
Network cards (p. 30)
Floppy disk drives (p. 29)
USB devices (p. 34)
Serial ports (p. 32)
Parallel ports (p. 33)
Sound cards (p. 35)
Each group of parameters is explained in the following subsections in detail.
Notes
Virtual Machine Management 24
All operations on virtual machine devices (adding, modifying, or removing a device) must be
performed on a stopped virtual machine. An attempt to perform any of these operations on a
running virtual machine will result in error.
Links
Legend (p. 7)
Virtual Machine Management 25
Hard Disk Drive Management Parameters
This group of parameters is used to add and configure virtual hard disks in a virtual machine.
Syntax
prlctl setID|VM_name--device-addhdd [--imagename]
[--typeexpand|plain][--sizenumber][--split]
[--iface ide scsi--positionnumber] |][
[--enable|--disable]
prlctl setID|VM_name--device-sethddN --device name
[--ifaceide|scsi][--positionnumber]
[--enable|--disable]
Parameters
Name Description
ID
VM_name
--device-add
--device-set
hdd
hddN
--image name
The virtual machine ID.
The virtual machine name.
Adds a virtual hard disk drive to the virtual machine.
You can connect up to four IDE devices and up to seven SCSI
devices to a virtual machine. This includes hard disks and optical
disk drives.
Modifies the parameters of an existing virtual hard disk.
Specifies the type of the virtual device to add to the virtual machine
(in this instance, a virtual hard disk).
The name of the virtual hard disk to modify. Virtual hard disks are
named using the hddN format where N is the drive index number
starting from 0 (e.g. hdd0, hdd1). To obtain the list of disk names,
use the prlctl list command with the --info option.
This options is used to create a virtual hard disk using an
image file. You have an option of creating a new image file or
to use an existing image.
--device name
To use an existing image file, specify its name and path
using the name parameter.
To create a new image file, omit the --image parameter.
New image files are created in the virtual machine
directory and are automatically named using the
harddiskN.hdd format, where N is the disk index
number (e.g. harddisk0.hdd, harddisk1.hdd).
This option is used to create a virtual hard disk based on a boot camp
partition (Mac hosts). The name parameter must contain the boot
Virtual Machine Management 26
camp partition name.
--type expand|plain
--size number
--split
--iface ide|scsi
--position number
For image file based virtual disk drives, specified the disk type:
expand -- expanding disk. The image file is small initially and
grows in size as you add data to it. This is the default virtual
disk type.
plain -- plain disk. The image file has a fixed size from the
moment it is created (i.e the space is allocated for the drive
fully). Plain disks perform faster than expan di n g di sks.
The size of the virtual hard disk, in megabytes. The default size is
32,000 MB.
Splits the hard disk image file into 2 GB pieces. You should split a
virtual disk if it is stored on a file system that cannot support files
larger than 2 GB (e.g. FAT16).
Interface type:
ide -- IDE drive.
scsi - SCSI drive (default).
The SCSI or IDE device identifier to be used for the virtual disk. The
allowed ID ranges are the following:
for IDE devices: 0:0, 0:1, 1:0, 1:1;
for SCSI device: 0:0, 1:0, 2:0, 3:0, 4:0, 5:0, 6:0.
You can use one of the following formats for specifying IDs:
ID:bus, ID-bus, ID. For example, if you specify 3:0 (or 3-0 or 3)
as number for a SCSI drive, the guest OS will see the drive as
having ID 3 on SCSI bus 0.
--enable
Enables the specified virtual disk drive. All newly added disk drives
are enabled by default (provided the --disable option is
omitted).
--disable
Disables the specified virtual disk drive. The disk drive itself is not
removed from the virtual machine configuration.
Links
General Syntax, Virtual Device Management (p. 23), Legend (p. 7)
Virtual Machine Management 27
Optical Disk Drive Management Parameters
This group of parameters is used to add and configure virtual optical disk drives, such as DVD
or CD drives.
The virtual machine name.
Adds a DVD/CD drive to the virtual machine. You can connect up to
four IDE devices and up to seven SCSI devices to a virtual machine.
This includes virtual hard disks and DVD/CD drives.
Modifies the parameters of an existing virtual optical disk.
Specifies the virtual device type (in this instance, a CD or DVD
drive).
The name of the DVD/CD drive to modify. The N postfix indicates
the drive index number. To obtain the list of the available drives, use
the prlctl list command with the --info option.
The name of the physical optical disk to connect to the virtual
machine.
The name of an existing disk image file to mount in the virtual
machine. Currently, the following image file formats are supported:
.iso, .cue, .ccd, and .dmg. The image must not be compressed
and/or encrypted.
Interface type:
ide -- IDE disk.
scsi -- SCSI disk (default).
The SCSI or IDE device identifier to be used for the DVD/CD drive.
The allowed ID ranges are the following:
for IDE devices: 0:0, 0:1, 1:0, 1:1;
for SCSI device: 0:0, 1:0, 2:0, 3:0, 4:0, 5:0, 6:0.
You can use one of the following formats for specifying IDs:
ID:bus, ID-bus, ID. For example, if you specify 3:0 (or 3-0 or 3)
as number for a SCSI drive, the guest OS will see the drive as
having ID 3 on SCSI bus 0.
Virtual Machine Management 28
--enable
Enables the specified DVD/CD drive. All newly added drives are
enabled by default (provided the --disable option is omitted).
--disable
Disables the specified optical disk drive. The disk drive itself is not
removed from the virtual machine configuration.
--connect
Automatically connect the specified optical disk drive during the
virtual machine startup process.
--disconnect
Do not automatically connect the specified optical disk drive during
the virtual machine startup process.
Links
General Syntax, Virtual Device Management (p. 23), Legend (p. 7)
Virtual Machine Management 29
Floppy Disk Drive Management Parameters
This group of parameters is used to add floppy disk drives to a virtual machine and to modify
existing virtual floppy disk drives.
The virtual machine name.
Specifies the type of the virtual device to add or modify (in this
instance, a floppy disk drive).
Adds a new floppy disk drive to the virtual machine. You can connect
only one floppy disk drive to a virtual machine.
Modifies the parameters of an existing virtual floppy disk drive.
The name of the physical floppy disk drive to connect to the virtual
machine. If this parameter is omitted, a floppy drive image emulating
the floppy disk drive will be created.
Enables the specified floppy disk drive. All newly added floppy drives
are enabled by default (provided the --disable option was omitted
during the drive creation).
Disables the specified floppy disk drive. The drive itself is not removed
from the virtual machine configuration.
Connect the specified floppy disk drive automatically during the virtual
machine startup process.
Use this option if you don't want the specified floppy disk drive
automatically connected to the virtual machine on its start.
The name and path of an existing floppy disk image file (usually
floppy.fdd) to mount in the virtual machine.
Links
General Syntax, Virtual Device Management (p. 23), Legend (p. 7)
Virtual Machine Management 30
Network Adapter Management Parameters
This group of parameters is used to manage virtual network adapters in a virtual machine.
The virtual machine name.
Adds a new virtual network adapter to the virtual machine.
Used to configure an existing virtual network adapter.
Specifies the virtual device type to add (in this instance, a virtual
network adapter).
The name of the virtual network adapter to modify. To obtain the list
of the available adapters, use the prlctl list command with the -
-info option.
Sets the networking mode for the virtual network adapter:
shared -- Shared networking. Select this option if you wish to
enable Network Address Translation (NAT) for the adapter. The
adapter will share the IP address with the host computer when
communicating with external networks.
host -- Host-only networking. Select this option if you wish the
virtual machine to communicate only with the host computer and
other virtual machines included in the same network. Access to
external networks is not allowed.
bridged -- Bridged networking. The adapter is bound to the
specified physical network adapter. The virtual machine will
appear as a standalone computer on the network.
Used with the bridged networking mode (see above). Specifies the
name of the physical network adapter to which the v irtual adapter
should be bound.
--mac addr
--mac addr|auto
The MAC address to be assigned to the virtual network adapter. If this
option is omitted, the MAC address will be generated automatically.
Specifies the MAC address to assign to an existing network adapter.
Specify a desired MAC address using the addr parameter value or use
the auto option to re-generate the existing address automatically.
Virtual Machine Management 31
--enable
Enables the virtual network card. All newly created network adapters
are enabled by default (provided the --disable option is omitted).
--disable
Disables virtual network adapter. The adapter itself is not removed
from the virtual machine configuration. Please note that a disabled
virtual network adapter can only be enabled in a stopped virtual
machine.
--connect
Automatically connect the virtual network adapter during the virtual
machine startup process.
--disconnect
Do not automatically connect the virtual network adapter during the
virtual machine startup process.
Links
General Syntax, Virtual Device Management (p. 23), Legend (p. 7)
Virtual Machine Management 32
Serial Port Management Parameters
This group of parameters is used to manage serial ports in a virtual machine.
The virtual machine name.
Adds a new serial port to the virtual machine. You can connect up to
four serial ports to a virtual machine.
Modifies the parameters of an existing serial port.
Specifies the type of the virtual device to add (in this instance, a serial
port).
The name of the physical serial port to which to connect the virtual
machine.
The name and path of the output file to which to connect the virtual
serial port.
The name of the physical socket to which to connect the virtual serial
port.
Enables the virtual serial port. All newly added serial ports are enabled
by default (provided the --disable option is omitted).
Disables the virtual serial port.
Automatically connect the virtual serial port during the virtual machine
startup process.
Do not automatically connect the virtual serial port during the virtual
machine startup process.
Links
General Syntax, Virtual Device Management (p. 23), Legend (p. 7)
Virtual Machine Management 33
Parallel Port Management Parameters
This group of parameters is used to manage parallel port in a virtual machine.
The virtual machine name.
Adds a new parallel port to the virtual machine. You can
connect up to three parallel ports to a virtual machine.
Modifies the parameters of an existing virtual parallel port.
Specified the type of the virtual device to add (in this instance,
a virtual parallel port).
The name of the parallel port to modify. To obtain the list of
ports, use the prlctl list command with the --info
option.
The name of the physical parallel port to which to connect the
virtual parallel port.
The name of the output file to which to connect the virtual
parallel port.
Enables the specified parallel port. All newly added parallel
ports are enabled by default (provided the --disable option
was omitted during the port creation).
Disable the specified virtual parallel port. The port itself is not
removed from the virtual machine configuration.
Automatically connect the specified virtual parallel port during
the virtual machine startup process.
--disconnect
Do not automatically connect the specified virtual parallel port
during the virtual machine startup process.
Links
General Syntax, Virtual Device Management (p. 23), Legend (p. 7)
Virtual Machine Management 34
USB Controller Management Parameters
This group of parameters is used to manage the USB controller in a virtual machine.
Syntax
prlctl set ID|VM_name --device-add usb [--enable|--disable]
Parameters
Name Description
ID
The virtual machine ID.
VM_nameusb
The virtual machine name.
The type of the virtual device to add to the virtual machine (in this
instance, a USB device).
--enable
--disable
Enables the USB controller. This is the default option.
Disables the USB controller.
Links
General Syntax, Virtual Device Management (p. 23), Legend (p. 7)
Virtual Machine Management 35
Sound Device Management Parameters
This group of parameters is used to manage sound devices in a virtual machine.
The UUID or the name of the virtual machine to back up.
-s,--storage
user The name of the user on a remote backup server.
passwd The user password. If omitted, the user will be prompted to enter a
server Server hostname or IP address.
port Port number. If omitted, the default port number will be used.
--description desc
-i
-f
This option is used to specify the backup server connection and login
parameters. If this option is omitted, the backup will be saved on the
default backup server. The default backup server can be configured
using the prlsrvctl set command (p. 15).
password.
Backup description.
Create a full backup of the virtual machine. A full backup contains all
virtual machine data.
Create an incremental backup of the virtual machine. An incremental
backup contains only the files changed since the previous full or
incremental backup. This is the default backup type.
The UUID or the name of the virtual machine for which to list the
available backups.
-f, --full
-s,--storage
--localvms
user The name of the backup server user.
passwd The user password.
server Backup server hostname or IP address.
port Port number. If omitted, the default port is used.
Display full backup information.
Backup server connection and login parameters. If this option is
omitted, the backups will be searched for on the default backup server.
The default backup server can be configured using the prlsrvctl set command (p. 15).
List only the backups of the virtual machines that were residing on the
local server .
Links
General Syntax, Legend (p. 7)
Virtual Machine Management 41
prlctl capture
Captures the screen of a virtual machine desktop and saves it to a file on the client machine. The
data is saved in the Portable Network Graphics (PNG) format.
Syntax
prlctl capture ID|name --file name
Parameters
Name Description
ID
The virtual machine ID.
name
--file name
The virtual machine name.
Name and path of the file to which the image should be saved. You
should include the file extension (.png) or the file will be saved without
one.
Links
General Syntax, Legend (p. 7)
prlctl change-passwd
Changes the encryption password for the specified virtual machine.
Syntax
prlctl change-passwd ID|name
Parameters
Name Description
ID
Virtual machine ID.
name
Virtual machine name.
Remarks
The command can be used to change the password that was used to encrypt a virtual machine. A
user will be asked to enter the current and the new password.
The virtual machine must be currently encrypted for this command to work. If you would like to
encrypt an unencrypted virtual machine, use the encrypt command (p. 46).
Links
General Syntax, Legend (p. 7)
Virtual Machine Management 42
prlctl clone
Creates an exact copy of the specified virtual machine.
The name of the virtual machine to clone.
The name to be assigned to the new virtual machine.
Create a virtual machine template instead of a real virtual
machine. Templates are used as a basis for creating new virtual
machines.
Name and path of the new virtual machine directory. If this
parameter is omitted, the new virtual machine will be created in
the default directory.
Virtual Machine Management 43
prlctl create
Creates a new virtual machine. A virtual machine can be created from scratch or from a virtual
machine template. When created from scratch, the target operating system type or version must
be specified. To create a virtual machine from a template, the template name must be passed to
the command.
Syntax
prlctl create name {--ostype name|--distribution {name|list}} [--location
path]
prlctl create name --ostemplate name [--location path]
Parameters
Name Description
name
User-defined new virtual machine name. If the name consists of
two or more words separated by spaces, it must be enclosed in
quotes.
-o, --ostype name
The name of the family of the operating system that will be
installed in the virtual machine. Select from one of the following:
windows
linux
macos
feebsd
os2
msdos
netware
solaris
other (specify this option if the operating system you are
planning to install is not listed above).
Virtual Machine Management 44
-d, --distribution
name|list
The operating system version that you are planning to install in
the virtual machine.
To display the list of known operating systems, supply the list
value instead of the OS name.
Or supply one of the following values (grouped by family):
Windows
win-311
win-95
win-98
win-me
win-nt
win-2000
win-xp
win-2003
win-vista
win-2008
win-7
win (specify this option if the Windows OS version you are
using is not listed above).
Linux
rhel
rhel3
suse
debian
fedora-core (specify this option for all Fedora Core
msdos-6.22
msdos (specify this option for all MS-DOS operating
Virtual Machine Management 45
--ostemplate name
--location path
The name of the virtual machine template from which to create
the new virtual machine. Use the prlctl list --template command to obtain the list of the available
templates.
Name and path of the directory where to store the new virtual
machine files. If this parameter is omitted, the files will be crated
in the default virtual machine directory.
Remarks
When creating a virtual machine from scratch, you may specify the operating system family or
version. If an operating system version is specified using the --distribution parameter,
the virtual machine will be configured for that operating system. If an operating system family is
specified using the --ostype parameter, the virtual machine will be configured for the default
version of this OS family. The default versions are determined internally by Parallels and are
kept in sync with other Parallels management tools such as Parallels Management Console. The
best way to find out the default versions used in your Parallels installation is by creating a
sample virtual machine.
Links
General Syntax, Legend (p. 7)
prlctl delete
Deletes a virtual machine from the <host computer>. The command removes a virtual machine
from the Parallels Service registry and permanently deletes all its files from the host. Once
completed, this operation cannot be reversed.
Syntax
prlctl delete ID|name
Parameters
Name Description
ID
name
Links
General Syntax, Legend (p. 7)
The ID of the virtual machine to delete.
The name of the virtual machine to delete.
The ID of the virtual machine to encrypt or decrypt.
name
--dry-run
The name of the virtual machine to encrypt or decrypt.
Allows to run the encryption or decryption operation using a
simulation. Use this option to verify that the operation can be
performed and that there are no current limitations with the host
computer or the virtual machine that can make the operation invalid.
For example, if you don't have enough space on the host computer,
the simulated run will inform you of this, so you can correct it before
running the actual operation.
Remarks
The encrypt command will encry pt the specified virtual machine and all its data. A user will
be prompted to enter an encryption password after the command is executed from the command
line.
The decrypt command will decrypt the specified virtual machine. A user will have to enter a
password that was selected when the virtual machine was encrypted.
The encryption password can be modified for an encrypted virtual machine using the change-passwd command (p. 41).
Links
General Syntax, Legend (p. 7)
Virtual Machine Management 47
prlctl enter
Creates a command prompt channel to a virtual machine. By using this command, you can
create a command prompt channel and execute commands in a virtual machine. Parallels Tools
must be installed in a virtual machine to use this utility.
Syntax
prlctl enter exec vm_id|vm_name
Parameters
Name Description
vm_id|vm_name
Links
General Syntax, Legend (p. 7)
The UUID or the name of the virtual machine.
prlctl exec
Executes a command inside a virtual machine. Parallels Tools must be installed in a virtual
machine to use this utility. Commands in Linux guests are invoked with bash -c.
Syntax
prlctl exec vm_id|vm_name command
Parameters
Name Description
vm_id|vm_name
command A command to execute.
Links
General Syntax, Legend (p. 7)
The UUID or the name of the virtual machine.
Virtual Machine Management 48
prlctl installtools
Installs Parallels Tools in the specified virtual machine.
Syntax
prlctl installtools ID|name
Parameters
Name Description
ID
The ID of the target virtual machine.
name
The name of the target virtual machine.
Notes
To use this command, the target virtual machine must be running.
Links
General Syntax, Legend (p. 7)
Virtual Machine Management 49
prlctl list
Obtains a list of virtual machines on the host computer. The command allows you to obtain a
summary list containing only the virtual machine ID, name, and status or to obtain a detailed
information about a specific or all virtual machines.
Syntax
prlctl list [--all--template] [--no-header] ] [
[-o,--outputname[,name...]] [-s, --sortname|-name]
prlctl list--info [ID|name]
Parameters
Name Description
-a, --all
List all, running, stopped, suspended, and paused virtual machines. If
this and the rest of the parameters are omitted, only the running virtual
machines will be displayed.
-t, --template
--no-header
ID
-o, --output name
-s, --sort name
-i, --info
ID
List the available virtual machine templates. The real virtual machines
will not be included in the output.
Do not display column headers.
The ID of the virtual machine for which to display the detailed
information. If none specified, the information will be displayed for all
registered virtual machines.
Display one (or any combination) of the following fields:
uuid -- Virtual machine ID.
name -- Virtual machine name.
status --Virtual machine status (running, stopped, etc.).
The above fields can be combined in a single command using comma
separator (e.g. uuid, name). The excluded fields will not be
displayed. The field names must be typed in lower case.
Sort the virtual machine list by the specified parameter in ascending
order.
Display detailed information about a virtual machine.
The ID of the virtual machine for which to display the detailed
information. If not specified, the information will be displayed for all
registered virtual machines.
name
The name of the virtual machine for which to display the detailed
information. If not specified, the information will be displayed for all
registered virtual machines.
Links
General Syntax, Legend (p. 7)
Virtual Machine Management 50
prlctl migrate
Migrates a virtual machine from one host to another.
Syntax
The source virtual machine name.
Name and path of the directory on the destination host where
the virtual machine files should be stored.
Migration mode. See details below.
Notes
This command is available on Parallels Server only.
For the description of the destination host parameters (user_name, password, server, port), see
Virtual Machine Management Commands (p. 19).
Remarks
The following migration modes are supported:
Cold. During cold migration, the source virtual machine is stopped and its files are
transferred to the destination host. This is a simple and straightforward procedure that can be
used when it's safe to stop the source virtual machine.
Warm. The warm migration is performed on a running virtual machine. The migration is
performed in two stages. During the first stage, the virtual machine files are transferred to
the destination host while the machine is still running. During the second stage, the virtual
machine is suspended and the states of the two virtual machines (source and destination) are
synchronized. When the second stage is complete, the migration ends. The synchronization
stage may be a time-consuming operation and there's no guarantee that existing client
connections will remain intact.
Hot. Performs a live migration. The source virtual machine will not be stopped or suspended
at any time. To a logged-in user, the entire migration process will be completely transparent.
The user will not even notice that the virtual machine has changed its location.
The ID of the virtual machine to pause, suspend, or resume.
name
The name of the virtual machine to pause, suspend, or resume.
Remarks
The pause command pauses a virtual machine. To continue the virtual machine operation, use
the prlctl start command (p. 58).
The suspend command suspends the virtual machine operation. When a running virtual
machine is suspended, the state of the virtual machine processes is saved to a file on the host.
After that, the machine is stopped. To resume the machine, use the resume command.
Links
General Syntax, Legend (p. 7)
Virtual Machine Management 52
prlctl problem-report
Obtains a problem report for the specified virtual machine and displays it on the screen.
Syntax
prlctl problem-report ID|name
Parameters
Name Description
ID
The ID of the virtual machine for which to obtain the problem report.
name
The name of the virtual machine for which to obtain the report. If the
name consists of separate words, it must be enclosed in quotes.
Remarks
The command collects technical data about a virtual machine and displays the report on the
screen (the output can also be piped to a file). The report can then be forwarded to the Parallels
technical support for the analysis of the problem.
Links
General Syntax, Legend (p. 7)
Virtual Machine Management 53
prlctl register , unregister
The register command is used to register a virtual machine with Parallels Service.
The unregister command removes a virtual machine from the Parallels Service registry.
Syntax
prlctl register path
prlctl unregister ID|name
Parameters
Name Description
path
An absolute path to the virtual machine directory.
ID|name
The ID or the name of the virtual machine to remove from the
Parallels Service registry.
Remarks
Use the register command when you have a virtual machine on the host that doesn't show
up in the list of the virtual machines registered with the Parallels Service. This can be a machine
that was previously removed from the registry or a machine that was manually copied from
another location.
The unregister command removes a virtual machine from the Parallels Service registry but
does not delete the virtual machine files from the host. You can re-register such a machine with
the Parallels Service later using the register command.
The UUID or the name of the virtual machine. If this option is specified,
the command will restore it from the latest available backup. To restore
a virtual machine from a specific backup, omit this option and specify
the backup ID using the --tag option (described below).
-t,--tag backup_id
-s,--storage
user The name of the backup server user.
passwd The user password.
server The backup server hostname or IP address.
port Port number. If omitted, the default port will be used.
-n, --namenew_name
The backup ID from which to restore a virtual machine.
The backup server connection and login parameters. If this option is
omitted, the backups will be searched for on the default backup server.
The default backup server can be configured using the prlsrvctl set command (p. 15).
A new name to assign to the restored virtual machine. If omitted, the
virtual machine will be restored with the original name.
Links
General Syntax, Legend (p. 7)
Virtual Machine Management 55
prlctl server
Obtains information about host computer and the Parallels Server, Desktop, or Workstation
installed on it. Also, allows to shut down the Parallels Service.
Syntax
prlctl server shutdown|info
Parameters
Name Description
info
Displays the Parallels Service information.
shutdown
Shuts down the Parallels Service. If one or more virtual machines are
running, clients are connected, or some tasks are currently in progress then
the shutdown operation will be aborted.
The ID of the virtual machine to start, stop, or reset.
name
--kill
The name of the virtual machine to start, stop, or reset.
Perform a 'hard' virtual machine shutdown. If this option is omitted,
an attempt to perform a graceful shutdown will be made.
Remarks
The stop command can perform a 'hard' or a graceful virtual machine shutdown. If the -kill parameter is included, the 'hard' shutdown will be performed. If the parameter is omitted,
the outcome of the graceful shutdown attempt will depend on the following:
If the Parallels Tools package is installed in a virtual machine, the graceful shutdown will be
performed using its facilities.
If the Parallels Tools package is not installed, the command will try to perform a graceful
shutdown using ACPI. Depending on the ACPI support availability in the guest operating
system, this may work or not.
The reset command stops and then starts a virtual machine. The command first performs a
'hard' virtual machine shutdown and then starts the virtual machine from the stopped state.
The start command can be used to start a stopped virtual machine or to resume a paused
virtual machine (p. 51).
Links
General Syntax, Legend (p. 7)
59
Index
A
About Parallels Command Line Tools - 5
C
Creating a New Virtual Network - 11
D
Deleting a Virtual Network - 13
F
Feedback - 6
Floppy Disk Drive Management Parameters -