Creating Virtual Machines with CloudForms Management Engine

Updated -

Infrastructure -> Virtual Machines displays the virtual machines in your environment.

6334.png

By default, the web interface uses virtual thumbnails to represent virtual machines. Each thumbnail quadrant displays a basic piece of information about a virtual machine. Click on a thumbnail to see details about a virtual machine.

2137_0.png

  1. Operating system of the Virtual Machine
  2. Virtual Machine Host software
  3. Status of Virtual Machine
  4. Number of Snapshots for this Virtual Machine
Icon Description
2138.png Template: Virtual Template
2139.png Retired: Virtual Machine has been retired
2140.png Archived: Virtual Machine has no Host or Datastore associated with it
2141.png Orphaned: Virtual Machine has no Host but does have a Datastore associated with it
2142.png Disconnected: Virtual Machine is disconnected
2143.png On: Virtual Machine is powered on
2144.png Off: Virtual Machine is powered off
2145.png Suspended: Virtual Machine has been suspended

Provisioning Virtual Machines

When a virtual machine is provisioned, it goes through multiple phases. First, the machine is requested. The request includes ownership information, tags, virtual hardware requirements, the operating system, and customizations. Second, the request is approved, either automatically or manually. Finally, the request is executed.

Execution consists of pre-processing and post-processing. Pre-processing acquires IP addresses for the user, creates VMDB instances, and creates the virtual machine based on information in the request. Post-processing activates the VMDB instance.

2314.png

You can provision virtual machines through various methods. One method is to provision a virtual machine directly from a template stored on a provider.

  1. Navigate to Infrastructure -> Virtual Machines.

  2. Click 2007.png Lifecycle, then click 1848.png Provision VMs.

  3. Select a template from those listed and click Continue.

  4. In the Request tab, enter an E-Mail address, First Name, and Last Name. The appliance uses this e-mail address to send status updates during the provisioning process. Completing the other fields in the Request tab is optional.

  5. Click the Purpose tab to select tags for the provisioned virtual machine if required.

  6. Click the Catalog tab to select a template. This tab is context sensitive based on provider. For templates on Red Hat providers:

    a. Select the Name of a template to use.

    b. For Provision Type, select either ISO, PXE, or Native Clone. You must select Native Clone in order to use a Cloud-Init template.

    • If Native Clone is selected, select Linked Clone to create a linked clone to the virtual machine instead of a full clone. This is equivalent to Thin Template Provisioning in Red Hat Enterprise Virtualization. Since a snapshot is required to create a linked clone, this box is only enabled if a snapshot is present. Select the snapshot to use for the linked clone.
    • If ISO is selected, select an ISO Image to use for provisioning.
    • If PXE is selected, select a PXE Server and Image to use for provisioning.

    c. Under Count, set the number of virtual machines you want to create in this request to 1.

    d. Use Naming to specify a VM Name and VM Description.

  7. Click the Environment tab. As automatic placement can only be used if environment objects are tagged with provisioning scope tags, you must select a location for the requested VM manually.

    a. Datacenter: select Default

    b. Cluster: select Default

    c. Host: select the desired host

    d. Datastore: select the desired datastore

  8. Click the Hardware tab to set the number of CPUs, amount of memory, and disk format: thin, pre-allocated/thick or same as the provisioning template (default). If required, set a VM memory reservation amount.

  9. Click the Network tab and select rhevm as the vLan adapter. Additional networking settings that are internal to the operating system appear on the Customize tab.

  10. Click the Customize tab to customize the operating system of the new virtual machine. These options vary based on the operating system of the template.

  11. For Windows provisioning:

    a. To use a customer specification from the provider, click Specification. To select an appropriate template, choose from the list in the custom specification area. The values that are honored by CloudForms Management Engine display. To modify the specification, select Override Specification Values. You can create and edit customization templates by navigating to Infrastructure -> PXE, and selecting Customization Templates from the accordion menu.

    Note

    Any values in the specification that do not show in the CloudForms Management Engine console's request dialogs are not used by CloudForms Management Engine. For example, for Windows operating systems, if you have any run once values in the specification, they are not used in creating the new virtual machines. Currently, for a Windows operating system, CloudForms Management Engine honors the unattended GUI, identification, workgroup information, user data, windows options, and server license. If more than one network card is specified, only the first is used.

    2337.png

    b. Select Sysprep Answer File, to upload a Sysprep file or use one that exists for a custom specification on the Provider where the template resides. To upload a file, click Browse to find the file, and then upload. To use an answer file in Customization Specification, click on the item. The answer file uploads automatically for viewing. You cannot make modifications to it.

  12. For Linux provisioning:

    a. Under Credentials, enter a Root Password for the root user to access the instance.

    b. Enter the IP Address Information for the instance. Leave as DHCP for automatic IP assignment from the provider.

    c. Enter any DNS information for the instance if necessary.

    d. Select Customize Template for additional instance configuration. Select from the Kickstart or Cloud-Init customization templates stored on your appliance.

  13. Click the Schedule tab to select when provisioning begins.

    a. In Schedule Info, select when to start provisioning. If you select Schedule, enter a date and time. Select Stateless if you do not want the files deleted after the provision completes. A stateless provision does not write to the disk so it requires the PXE files on the next boot.

    b. In Lifespan, select to power on the virtual machines after they are created, and to set a retirement date. If you select a retirement period, enter a date for a retirement warning.

    2338.png

  14. Click Submit.

The provisioning request is sent for approval. Single instance requests are pre-approved. A request for multiple instances must be approved by an administrator. The administrator and super administrator roles can also edit, delete, and deny the requests. You can see all provisioning requests where you are either the requester or the approver.

After submission, the appliance assigns each provision request a Request ID. If an error occurs during the approval or provisioning process, use this ID to locate the request in the appliance logs. The Request ID consists of the region associated with the request followed by the request number. As regions define a range of one trillion database IDs, this number can be several digits long.

Example

Request 99 in region 123 results in Request ID 123000000000099.


Approving Provisioning Requests

Single instance provisioning requests are pre-approved. An administrator must approve requests for multiple instances before provisioning begins.

  1. Navigate to Services -> Requests.

  2. Click on the request you want to approve.

  3. Enter a Reason for the approval.

  4. Click 1852.png Approve this request.


Controlling Virtual Machines

You can start, stop, and suspend a virtual machine through the CloudForms Management Engine web interface.

  1. Navigate to Infrastructure -> Virtual Machines.

  2. Select the virtual machines that you want to change the power state for.

  3. Click 1998.png Power Operations.

  4. Click the button for the desired power operation:

    • 1999.png Power On the selected virtual machines.

    • 2000.png Power Off the selected virtual machines.

    • 2004.png Suspend the selected virtual machines.

    • 2001.png Reset the selected virtual machines.

    • 2002.png Shutdown Guest operating systems.

    • 2003.png Restart Guest operating systems.

  5. Click OK.

Comments