Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Go to Catalogue → Private or Public → select datacenter or public cloud region → Virtual machine templates

  2. Check that there is no other category with the name you wish to use

  3. Open the Categories menu

  4. At the bottom of menu, click the + add button

  5. Enter the category name

  6. Optional: to create a global category, mark the checkbox to Make the category global

  7. Click Save to continue

    Image RemovedImage Added

The new category will be added to the Categories list.

...

To export to public cloud, you must first prepare the templates according to the cloud provider instructions.
See Preparing templates for export to public cloud

Note

Abiquo uses the BPM - V2V conversion service to perform any required conversions and to upload the template to public cloud.

During an export, the platform will queue the BPM and V2V processes for conversions, instances, and persistent templates.

...

To export a template to a datacenter or public cloud

...

  • Replace template disk(s) with new disk(s), so future VMs use the new disk(s). To replace a disk, use the Abiquo API. See Appliance manager template API upload and download

  • Delete a template, which requires that no deployed VMs are using the template and it has no instances. Note that you can promote instances to master templates and then delete the instances

  • Make a template unavailable to users, when it is in use

...

  1. Select the edit menu button of a template that is in use and select Delete from the menu. A confirmation popup will open with details of the template use.

  2. Confirm that you would like to force the delete. Abiquo will delete the disk files but not the template definition. The platform will mark this template as unavailable.

    Image RemovedImage Added

In the Apps library, the platform will not display the unavailable template in the default view. To display the template again, click the filter button and mark the checkbox to display Deleted templates, which are unavailable templates with no disk files. The platform will mark the template icon with a red X symbol.

...

Expand
titleClick here to show/hide the example

Screenshot: Deploy an instance of the Core in a new VM. There are now two VMs - one with the core template and one with an instance of the core template VM

Image RemovedImage Added

Screenshot: The core template has two instances: Core_Instance_1 and Core_Instance_1_Instance_1

Image RemovedImage Added

Now the administrator would like to delete the template, but there are VMs and instances. So the administrator will make the template unavailable. The platform will delete the disk files and users cannot create new VMs from the template.

Screenshot: The administrator clicks the template edit menu and selects Delete

Screenshot: The platform displays the details of deployed VMs and instances on the "Virtual machine template in use" popup. The administrator clicks Yes to continue.

The template disk files and the disk conversions will be deleted from the Apps Library. You cannot recover them within the platform

Image RemovedImage Added

Screenshot: To view the unavailable template, click the template filter and select the Deleted checkbox. Click on the unavailable template to view the instances and they will display in the Instances panel below the master templates.

...

Manage instance templates in datacenters

...

An Abiquo instance is a template that uses copies of one or more disks from a VM.  For information about how to create instances, see  Manage virtual machines#SaveVMdiskstocreateaninstancetemplate

In a datacenter, the platform stores an instance with the original master template. This means that you cannot delete a master template if it has instances. However, you can promote an instance to a master template.

The platform identifies master templates with the "M" symbol on the template icon and instances with the "S" symbol on the template icon.

To display the instances under a master template:

  1. Click on the master template and the Instances panel will open with the instance templates.

Expand
titleClick here to show/hide the screenshot
Virtual machine templates in Apps library viewImage Added

You can modify the instance template, to change the CPU, RAM, icon, and so on, and these changes will not affect the master template. 

Promote an instance to a master template

When you promote an instance, Abiquo first makes a copy of the instance and then promotes it to create a new master template. This is useful when you want to delete a master template but keep its instance template(s). 

Tip

This feature is available in the API. See https://wiki.abiquo.com/api/latest/VirtualMachineTemplatesResource.html#create-a-virtual-machine-template-in-a-datacenter-repository-by-download-promote-or-export

To promote an instance:

  1. Select the original master template to display its instances

  2. Select the instance, and from its options menu, select Promote to master

  3. Enter a Name for the new master template. Select the disks to promote 

    • Remember that there must always be at least one disk and that the disk at position 0 must be a boot disk. 

    • The name should help users to identify this template among the other templates 

The platform will display the completed template in the Apps library view and you can edit it as required

Expand
titleClick here to show/hide screenshots

From the instance template's options menu, select Promote to master

Virtual machine templates in Apps library viewImage Added

Enter a Name to identify the template

Promote to master templateImage Added

The platform displays the promoted instance in the main section of the Apps library

Promote to master templateImage Added

Manage instances of deleted templates

You cannot delete a master template if it has VMs deployed or instances with VMs deployed, but you can make it unavailable, which deletes the template disk file. If a master template is unavailable, to display it and access the instances panel, select the checkbox to display Deleted VM templates. If you wish to create a VM from an instance of a deleted master template, first promote the instance to a master template. 

Make an instance template unavailable

When you try to delete an instance that is in use in a VM (deployed or undeployed), the platform will only allow you to make it unavailable, which means that the platform will delete the disk file. Users cannot create or deploy VMs with an instance that is unavailable. After you confirm the delete, the platform will display a list of VMs using the template. Click Yes to force the delete of the instance disk file. 

Expand
titleClick here to show/hide the screenshots

Confirm that you would like to delete the instance template

Virtual machine template in useImage Added

To display the unavailable instance:

  1. Select the filter to display Deleted VM templates

  2. Select the master template

Instances for virtual machine template - coreImage Added
  • You cannot force the delete of an instance if it is in use in a VM. 

  • If you try to delete an unavailable instance, an error popup will appear because the template is already unavailable. 

  • To make the instance available again, replace the unavailable template files on the file system. When it detects the template files, the platform will mark the instance as available.

Delete failed instances

Failed instances may occur if there is a connection error between the platform and the VM disks. Failed instances are marked with the failed template icon.

To remove a failed instance template:

  1. Select the template 

  2. From the options menu, select Delete 

...

Manage instance templates in public cloud

...

When you create an instance template to save VM disks, the platform creates a custom template in the public cloud provider and adds its details to the Catalogue, which is a cache of template details.

In a public cloud region, the instance template is independent of the original master template. The platform saves the VM configuration as part of the custom template. To ensure that you can identify relationships between templates, name your instances carefully. 

The platform will identify the public cloud image by the cloud provider's identifier. For example in AWS, an EBS image is identified by its AMI identifier. The name you assign to an instance may be stored in another format such as a tag. 

The platform does not update templates in the public cloud provider so any changes that you make to templates in the platform will apply in the Catalogue only. For example, if you rename an instance template, this name will not apply in public cloud.

For details about deleting instance templates, see Delete private templates in public cloud 

To find an Abiquo instance that was deleted from the Catalogue but not from the public cloud provider:

  1. Go to Catalogue view, click on Import template

  2. Select Private

  3. To search for the template by the Name field, enter the name you gave your Abiquo instance template when you created it, or the Template ID

  4. Click Search

Note

Troubleshooting

If a template is still in the Catalogue, it will not display in the results of the remote search.

...

Delete private templates in public cloud

...