Virtuozzo Virtualization SDK C API Reference
|
Obtains the boot device sequence index.
PRL_RESULT PrlBootDev_GetSequenceIndex( PRL_HANDLE hVmBootDev, PRL_UINT32_PTR pnSequenceIndex );
PrlApiVm.h
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.
PRL_ERR_SUCCESS - function completed successfully.
The boot device sequence index starts with 0. When a virtual machine is powered on, it will first try to boot from the boot device that has a sequence index of 0. If it cannot boot from the device, it will try to boot from the device with sequence index 1, and so forth.