Virtuozzo Virtualization SDK C API Reference
|
The PrlVmCfg_GetDefaultHddSize function returns the default hard disk size for to the specified OS type and version.
PRL_RESULT PrlVmCfg_GetDefaultHddSize( PRL_UINT32 guestOsVersion, PRL_UINT32_PTR pnHddSize );
PrlApiVm.h
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.
PRL_ERR_SUCCESS - function completed successfully.
When creating a virtual machine using a default configuration, the default hard disk is defined for every supported operating system type and version. The default HDD sizes can be retrieved using this function. The OS types are defined in the PrlOses.h file as macros. Look for the macros that are prefixed with PVS_GUEST_TYPE_ (e.g. PVS_GUEST_TYPE_MACOS). The OS versions can be found in the same file. The names of the macros are prefixed with PVS_GUEST_VER_ (e.g. PVS_GUEST_VER_MACOS_LEOPARD).