README.txt 2.41 KB
Newer Older
1 2 3 4 5 6 7 8 9
kvm
===

Introduction
------------

This software release is used to deploy KVM instances, NBD instances and
Frontend instances of KVM.

10 11
For extensive parameters definition, please look at parameter-input-schema.json.

12 13 14
Examples
--------

Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
15
The following examples list how to request different possible instances of KVM
16 17 18
Software Release from slap console or command line.

KVM instance (1GB of RAM, 10GB of SSD, one core)
19
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20

Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
21
Note that the KVM instance will try to request a frontend slave instance in order
22 23 24 25 26
to be accessible from IPv4.

::
  myawesomekvm = request(
      software_release=kvm,
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
27
      partition_reference="My awesome KVM",
28
      partition_parameter_kw={
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
29
          "nbd-host":"ubuntu-1204.nbd.vifib.net",
30 31 32
      }
  )

Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
33
See the instance-kvm-input-schema.json file for more instance parameters (cpu-count, ram-size, disk-size, etc).
34

35 36 37 38 39

Resilient KVM instance
~~~~~~~~~~~~~~~~~~~~~

Like KVM instance, but backed-up (with history) in two places.
40 41

::
42 43
  kvm = 'http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/tags/slapos-0.188:/software/kvm/software.cfg'
  myresilientkvm = request(
44
      software_release=kvm,
45
      partition_reference="My resilient KVM",
46
      software_type="kvm-resilient",
47 48 49 50 51
      partition_parameter_kw={
          "-sla-0-computer_guid": "COMP-1000", # Location of the main instance (KVM)
          "-sla-1-computer_guid": "COMP-1001", # Location of the first clone
          "-sla-2-computer_guid": "COMP-1002", # Location of the second clone
      }
52 53
  )

54 55 56
See the instance-kvm-input-schema.json AND instance-kvm-resilient-input-schema.json AND /stack/resilient/README.txt
files for more instance parameters (cpu-count, ram-size, disk-size, specific location of clones, etc).

57 58 59
Then, if you want one of the two clones to takeover, you need to login into
the hosting machine, go to the partition of the clone, and invoke bin/takeover.

60 61

KVM Frontend Master Instance (will host all frontend Slave Instances)
62
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
63 64 65 66 67 68 69 70 71 72 73 74 75 76

This type of instance will allow to host any frontend slave instance requested
by KVM instances. Slave instances (and thus KVM instance) will be accessible
at : https://mydomain.com/instancereference .

::
  mykvmfrontend = request(
      software_release=kvm,
      partition_reference="mykvmfrontend",
      partition_parameter_kw={
          "domain":"mydomain.com"
      },
      software_type="frontend",
  )