bootstrap-vz/bootstrapvz/providers/kvm
Brendan Harley cc69173e52 Add qcow2 as a disk backend for KVM
This allows to build an image with qcow2 as a disk backend.

The update implements a new class that inherits from QEMUVolume and just
needs the extention and file format.
2017-06-16 15:54:51 +02:00
..
tasks Systematically use rel_path for relative paths 2016-09-12 19:11:20 +02:00
__init__.py Add LVM as a disk backend 2017-06-08 17:05:48 +02:00
manifest-schema.yml Add qcow2 as a disk backend for KVM 2017-06-16 15:54:51 +02:00
README.rst Add qcow2 as a disk backend for KVM 2017-06-16 15:54:51 +02:00

KVM
===

The `KVM <http://www.linux-kvm.org/page/Main_Page>`__ provider creates
virtual images for Linux Kernel-based Virtual Machines. It supports the
installation of `virtio kernel
modules <http://www.linux-kvm.org/page/Virtio>`__ (paravirtualized
drivers for IO operations).
It also supports creating an image with LVM and qcow2 as a disk backend.

Manifest settings
-----------------

Provider
~~~~~~~~

-  ``virtio``: Specifies which virtio kernel modules to install.
   ``optional``
-  ``logicalvolume``: Specifies the logical volume where the disk image will be built.
   ``volumegroup``: Specifies the volume group where the logical volume will be stored.
   These options should only be used if ``lvm`` was given as a disk backend.

Example:

.. code-block:: yaml

    ---
    provider:
      name: kvm
      virtio:
        - virtio_blk
        - virtio_net
    volume:
      backing: lvm
      logicalvolume: lvtest
      volumegroup: vgtest