Red Hat Training

A Red Hat training course is available for Red Hat Satellite

34.91. Method: provisionVirtualGuest

Description

Provision a guest on the host specified. This schedules the guest for creation and begins the provisioning process when the host checks in. If OSAD is enabled, provisioning begins immediately. Defaults to mac_address=random.

Parameters

The following parameters are available for this method:

  • string sessionKey
  • int serverId - ID of host to provision guest
  • string guestName
  • string profileName - Kickstart profile to use
  • int memoryMb - Memory to allocate to the guest
  • int vcpus - Number of virtual CPUs to allocate to the guest
  • int storageGb - Size of the guest's disk image
Returns

The following return values are available for this method:

  • int - 1 on success, exception thrown otherwise