Collapse All
Virtuozzo Virtualization SDK C API Reference
ContentsIndex
PreviousUpNext
PrlSrv_CreateUnattendedCd Function
PHT_SERVER

Creates a bootable ISO-image for unattended Linux installation.

Syntax
PRL_HANDLE PrlSrv_CreateUnattendedCd(
    PRL_HANDLE hServer, 
    PRL_UINT32 nGuestType, 
    PRL_CONST_STR sUserName, 
    PRL_CONST_STR sPasswd, 
    PRL_CONST_STR sFullUserName, 
    PRL_CONST_STR sOsDistroPath, 
    PRL_CONST_STR sOutImagePath
);
File

PrlApiVm.h

Parameters

hServer
A handle of type PHT_SERVER identifying the Virtuozzo Service.
sUserName
User name.
sPasswd
Password.
sFullUserName
Full user name.
sOsDistroPath
A full path to the OS distribution image or folder.
sOutImagePath
A full path to output ISO-image file.
nGuestDistroType
Guest OS version from the (PVS_GUEST_VER_...).
sPath
Full path to the OS distribution image or folder.

Returns

A handle of type PHT_JOB containing the results of this asynchronous operation or PRL_INVALID_HANDLE if there's not enough memory to instantiate the job object.

Remarks

The following steps describe how to prepare a virtual machine for unattended Linux installation:

  1. Create a virtual machine. The machine should have all the necessary devices, like hard drive and CD drive.
  2. Insert Linux installation CD-ROM into the drive (or mount a disk image).
  3. Execute the PrlVm_CreateUnattendedCd function to create a bootable ISO-image.
  4. Set created ISO-image as boot device.
  5. Start the virtual machine. The machine will boot from the created ISO-image.
  6. Perform unattended Windows installation as usual.
To get the return code from the PHT_JOB object, use the PrlJob_GetRetCode function. Possible values are: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

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