2015-04-11 16:15:49 +02:00
|
|
|
KVM
|
2016-03-15 11:13:05 +09:00
|
|
|
===
|
2015-04-11 16:15:49 +02:00
|
|
|
|
|
|
|
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).
|
2017-06-14 18:09:27 +02:00
|
|
|
It also supports creating an image with LVM and qcow2 as a disk backend.
|
2015-12-13 15:24:27 +01:00
|
|
|
|
|
|
|
Manifest settings
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
Provider
|
|
|
|
~~~~~~~~
|
|
|
|
|
|
|
|
- ``virtio``: Specifies which virtio kernel modules to install.
|
|
|
|
``optional``
|
2018-01-18 16:39:19 +01:00
|
|
|
- ``console``: Specifies which console should be used for stdout and stderr of init process
|
|
|
|
to show startup messages and act as a console in single-user mode. Regardless of
|
|
|
|
this setting output of kernel messages generated by ``printk()`` and seen by ``dmesg``
|
|
|
|
goes to both virtual and serial console. Valid options: ```virtual``` or ```serial``` (default).
|
|
|
|
``optional``
|
2017-05-14 21:09:19 +02:00
|
|
|
- ``logicalvolume``: Specifies the logical volume where the disk image will be built.
|
2018-01-18 16:39:19 +01:00
|
|
|
- ``volumegroup``: Specifies the volume group where the logical volume will be stored.
|
2017-05-14 21:09:19 +02:00
|
|
|
These options should only be used if ``lvm`` was given as a disk backend.
|
2015-12-13 15:24:27 +01:00
|
|
|
|
2018-01-18 16:39:19 +01:00
|
|
|
|
2015-12-13 15:24:27 +01:00
|
|
|
Example:
|
|
|
|
|
2016-03-04 01:19:29 +01:00
|
|
|
.. code-block:: yaml
|
2015-12-13 15:24:27 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
provider:
|
|
|
|
name: kvm
|
|
|
|
virtio:
|
|
|
|
- virtio_blk
|
|
|
|
- virtio_net
|
2018-01-18 16:39:19 +01:00
|
|
|
console: virtual
|
2017-05-14 21:09:19 +02:00
|
|
|
volume:
|
|
|
|
backing: lvm
|
|
|
|
logicalvolume: lvtest
|
|
|
|
volumegroup: vgtest
|