Virtuozzo Virtualization SDK C API Reference
|
Enables or disables the time synchronization feature in a virtual machine.
PRL_RESULT PrlVmCfg_SetTimeSynchronizationEnabled( PRL_HANDLE hVmCfg, PRL_BOOL bEnabled );
PrlApiVm.h
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid handle was passed.
PRL_ERR_SUCCESS - function completed successfully.
You can synchronize the time in a virtual machine with the time in the host OS. To do so, the time synchronization feature must be enabled using the PrlVmCfg_SetTimeSynchronizationEnabled function. The time will be synchronized at predefined time intervals. To set the time interval, use the PrlVmCfg_SetSmartGuardInterval function. This feature requires Virtuozzo Tools installed in a virtual machine.