You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Libvirt is an open source toolkit which can interact with KVM, Xen, and several other virtualization architectures.

libvirt.pm Provisioning Module

  • Implements the required provisioning module subroutines: load, capture, node_status, power_status, power_on, power_off, power_reset...
  • Implements the functions provided by libvirt: define, start, destroy...
  • Does not contain code specific to any of the libvirt driver
  • File location: lib/VCL/Module/Provisioning/Libvirt.pm
  • Automatically determines which driver object to use upon initialization by examining the host

Driver Modules

  • A driver module must be written in order for VCL to support any of the virtualization technologies supported by libvirt
  • Driver directory location: lib/VCL/Module/Provisioning/libvirt/
  • Contains code specific to the virtualization technology
  • Example: lib/VCL/Module/Provisioning/libvirt/KVM.pm
    • Contains code which only applies to KVM
    • Calls qemu-img to perform image file operations
  • The only module which calls any of the subroutines in a driver module is libvirt.pm
  • No labels