You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Introduction

CloudStack currently does not allow an easy way to add new guest OS types, for example, a standard way to add say, CentOS 6.5.

Part of the reason is since the OS to hypervisor-specific platform mappings are currently built into the code-base

To support such new OS addition, the current way is to manipulate the DB using upgrade scripts and make the necessary code changes.

This proposal aims to partially mitigate this issue by allowing the CloudStack admin the ability to add new OS in the list, and update the mapping to hypervisor-specific platform names, via APIs / UI. For now, the admin will be responsible for providing the mapping to hypervisor-specific platform names based on his knowledge, which may be enhanced in future.

Scope

  1. Should be able to add guest os -> hypervisor emulator platform mapping
  2. Should be able to delete guest os -> hypervisor emulator platform mapping
  3. Should be able to modify guest os -> hypervisor emulator platform mapping

Implementation

At the core, the mappings will be stored in a new table in DB. To accommodate Xen specifics (mappings are version specific in some cases), the hypervisor version will be stored in the table too.

Additionally, a table will be needed to store the available platform emulators for a hypervisor.

The APIs needed are :

  1. List all platform emulators for a hypervisor
  2. Add new mapping
  3. Delete existing mapping (some mappings may be marked as non-deletable / editable. This is an open question)
  4. Modify existing mapping

The ResourceBase / OsMapper files will load the mappings from DB, via the respective Gurus.

<Additional details here>

Comments / Suggestions

  • No labels