Previous page

Next page

Locate page in Contents

Print this page

Modifying Virtual Machine Configuration

The Parallels C API provides a complete set of functions to modify the configuration parameters of an existing virtual machine. You can find the list of the available functions in the Parallels C API Reference guide by looking at the PHT_VM_CONFIGURATION group. Most of the get/set functions in the group allow to obtain and modify the virtual machine configuration parameters. Some parameters are handled as objects and require extra steps in getting or setting them. The following subsections describe how to modify the most common configuration parameters and provide code samples. The samples assume that:

Note: All operations on virtual machine devices (adding, modifying, removing) must be performed on a stopped virtual machine. An attempt to modify the device configuration on a running machine will result in error.

In This Section

PrlVm_BeginEdit and PrlVm_Commit Functions

Obtaining a PHT_VM_CONFIGURATION handle

Name, Description, Boot Options

RAM Size

Hard Disks

Network Adapters

Please send us your feedback on this help page