Feature #2048

Instantiate template to persistent

Added by Ricardo Duarte about 8 years ago. Updated about 7 years ago.

Status:ClosedStart date:05/15/2013
Priority:NormalDue date:
Assignee:-% Done:


Category:Core & System
Target version:Release 4.8
Resolution:fixed Pull request:


Currently, if an user wants a persistent instance from an existing image, it must do the following:

1. Clone the image
2. Create the template with the image ID from 1

If an admin wants to pre-create templates for their users, it can't do so because the image id is not static.
Also, from the API side, implementers must keep state and wait for the clone to be ready.

Instantiating persistent images should be as easy as volatile images.
My proposal is the following:

1. Add a variable to the IMAGE section of a template, that says "Instantiate this image to Persistent" (ex.: PERSISTENT="yes").
2. When the template is instantiated, Opennebula:
2.1 Clones the source image
2.2 Waits for the clone to succeed
2.3 Adds the ID to the new instance before starting it
3. Only one action is required by the user/admin/API client.


#1 Updated by Ruben S. Montero over 7 years ago

  • Tracker changed from Request to Feature
  • Category set to Core & System
  • Status changed from Pending to New
  • Target version set to Release 4.6

Initially moving this to 4.6 to consider its inclusion

#2 Updated by Jaime Melis over 7 years ago

  • Target version changed from Release 4.6 to Release 4.8

#3 Updated by Ruben S. Montero about 7 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

This is partially implemented by the new save feature thats save and image and clones the associated template. This is included in the new cloud view workflow ans should cover the same use case.

Also available in: Atom PDF