Collapse All
Virtuozzo Virtualization SDK C API Reference
ContentsIndex
PreviousUpNext
PrlDispCfg_SetMinVmMem Function
PHT_DISP_CONFIG  See Also

Allows to set the minimum required memory size that must be allocated to an individual virtual machine.

Syntax
PRL_RESULT PrlDispCfg_SetMinVmMem(
    PRL_HANDLE hDispConfig, 
    PRL_UINT32 nMemSize
);
File

PrlApiDisp.h

Parameters

hDispConfig
A handle of type PHT_DISP_CONFIG.
nMemSize
The new minimum size (in megabytes).

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

By default, virtual machine memory limits are calculated automatically. If needed, you can set your own minimum memory limit using this function. Please note that the new value must not fall below the size of the minimum memory limit set for Virtuozzo Service, which can be obtained using the PrlDispCfg_GetMinReservMemLimit function. The actual memory size for a virtual machine is set when configuring it and will be validated against the value set here.

See Also
Links
Copyright ©2016-2017 Parallels International GmbH. All rights reserved.