Project

General

Profile

Feature #4123

Add image capability to Libvirt/KVM provider

Added by Romain Vrignaud about 5 years ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

I think that being able to provision a new VM without waiting for
kickstart / preseed installation time is awesome.

We should add the ability to clone a "base image" and use it
as a root system for new vms.

Associated revisions

Revision 3d03e334 (diff)
Added by Dominic Cleal about 5 years ago

fixes #4123 - libvirt imaging support using backing volumes

History

#1 Updated by Dominic Cleal about 5 years ago

  • Status changed from New to Assigned
  • Assignee set to Dominic Cleal

I've got a working branch here: https://github.com/domcleal/foreman/tree/4123-libvirt-imaging

Waiting on fog 1.20 (to be released this week) which contains an enabling feature for backing volume support.

The feature works by registering an image to the libvirt compute resource, where the "ID" is the full path to a backing volume on the filesystem (e.g. /var/lib/libvirt/images/centos64.qcow2). Foreman then creates the new host's volume referencing this original qcow2 as a backing volume, so you get a copy on write setup. Since libvirt doesn't provide user data or ways to get SSH keys in, it also relies on a username/password embedded in the image in the same way as the (about to be merged) oVirt imaging support.

We might later be able to add user data support by using a separate disk for cloud-init to read (see Rich Jones' blog).

#2 Updated by Dominic Cleal about 5 years ago

  • Status changed from Assigned to Ready For Testing
  • Target version set to 1.9.1

#3 Updated by Dmitri Dolguikh about 5 years ago

  • Target version changed from 1.9.1 to 1.9.0

#4 Updated by Dominic Cleal about 5 years ago

  • Legacy Backlogs Release (now unused) set to 4

#5 Updated by Dominic Cleal about 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF