Allowing backup of a virtual machine

Tags: 101 views 0

How to allow users to create a backup of their running virtual machine.

Overview

The backup creates a new image by taking a snapshot of the virtual machine. With this image it is then possible to launch a new instance, based on the stored snapshot/image. This ensures that the data is kept safe for future needs. The backup feature will be automatically deployed with the update to 16.9. In the 16.9 release there is a new section called Images in the User Panel. In order to backup an image, use the Backup/create image link through the VPS Manager.

Configure billing

In order to charge for created images, a new product needs to be added through Atomia Admin. It must have the following properties:

  • Provisioning service: None
  • Provisioning allowed: Allowed without payment
  • Product category: Cloud service
  • Article number: VPS-IMG (If you use another article number make sure to change this in the usage data collection settings)
  • Name/Description: A descriptive name and description for the snapshot product
  • Taxes: Your preferred tax settings, not covered by this documentation
  • Type of billing: Usage based price
  • Counter: You can currently only have one counter for images
  • Counter id: Id of the counter (this can be anything)
  • Counter name/description: Name and description shown on invoices and in Hosting Control Panel
  • Unit name: GB
  • Measurement unit: 1
  • Ranges: Configure the price ranges you require, for example the first 0-100GB of snapshot space can have one price, and the next 101-500GB another
  • Options: For default configuration, you can leave these as is

Plugin configuration

There are two new configuration options available for the UsageDataScheduledEventHandler. These do not have to be changed, but for reference the new options are the following:

  • Image service: The name of the provisioning service for images (defaults to OpenStackImage)
  • Image product: The article number for the product in billing to use when billing for image usage (defaults to VPS-IMG)

Was this helpful?