bootstrap-vz/bootstrapvz/providers/kvm/manifest-schema.yml
Brendan Harley 511a44f72e Add LVM as a disk backend
Enables the use of Logical Volumes as disk backends.

It uses an existing volume group and has no support for creating a new one.
It will not override an existing logical volume and fail gracefully.

The lv is created, activated and then mounted as a loop device.
The boostraping process is then launched on the loop device.
Once the process is completed, the lv is unmounted and desactivated.

The created lv will be deleted should the boostraping process fail.

The lv must be activated before use.

A manifest has been included for testing purposes.
2017-06-08 17:05:48 +02:00

49 lines
926 B
YAML

---
$schema: http://json-schema.org/draft-04/schema#
title: KVM manifest
type: object
properties:
provider:
type: object
properties:
virtio:
type: array
items:
type: string
enum:
- virtio
- virtio_pci
- virtio_balloon
- virtio_blk
- virtio_net
- virtio_ring
minItems: 1
system:
type: object
properties:
bootloader:
type: string
enum:
- grub
- extlinux
- none
volume:
type: object
properties:
backing:
type: string
enum:
- raw
- lvm
logicalvolume: {type: string}
volumegroup: {type: string}
partitions:
type: object
properties:
type:
type: string
enum:
- none
- msdos
- gpt
required: [backing]