The KVM provider creates virtual images for Linux Kernel-based Virtual Machines. It supports the installation of virtio kernel modules (paravirtualized drivers for IO operations). It also supports creating an image with LVM and qcow2 as a disk backend.
virtio
: Specifies which virtio kernel modules to install.optional
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 byprintk()
and seen bydmesg
goes to both virtual and serial console. Valid options:`virtual`
or`serial`
(default).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 iflvm
was given as a disk backend.
Example:
---
provider:
name: kvm
virtio:
- virtio_blk
- virtio_net
console: virtual
volume:
backing: lvm
logicalvolume: lvtest
volumegroup: vgtest