22.1 Understanding the Functionality of the KVM Provisioning Adapter

The Orchestration KVM provisioning adapter does not use a command line tool, nor does it communicate with the KVM daemon directly. The Orchestration Server manages KVM virtual machines using the libvirt API set, which communicates with the KVM daemon.

The KVM hypervisor runs on SUSE Linux Enterprise Server (SLES) 11 SP1 host machines where the Cloud Manager KVM provisioning adapter can discover its guest virtual machines.

The KVM provisioning adapter does not store a copy of the VM’s configuration file on disk with the VM’s disk files. Instead, the Orchestration Server searches for VM configuration files during discovery and requests the configuration from the libvirt daemon for other provisioning actions. Because the configuration can exist on any host, the kvm provisioning adapter uses a custom fact (resource.vm.registered.vmhost) to store the ID of the host with which the VM is currently associated. Additionally, the Orchestration Server keeps a backup copy of the VM’s configuration file on the VM Resource object (using the resource.vm.libvirt.xml fact) as a backup if the registered host becomes unavailable through a hardware failure or similar malfunction.