Package VMBuilder
[frames] | no frames]

Package VMBuilder

source code

Submodules

Functions
 
get_distro(name)
Get Distro subclass by name
source code
 
get_hypervisor(name)
Get Hypervisor subclass by name
source code
 
get_version_info()
Return a dict containing version information for VMBuilder.
source code
 
register_distro(cls)
Register a distro class with VMBuilder
source code
 
register_distro_plugin(cls)
Register a distro plugin with VMBuilder
source code
 
register_hypervisor(cls)
Register a hypervisor class with VMBuilder
source code
 
register_hypervisor_plugin(cls)
Register a hypervisor plugin with VMBuilder
source code
 
set_console_loglevel(level)
Adjust the loglevel that will be sent to the console.
source code
Variables
  __package__ = 'VMBuilder'
  distros = {'ubuntu': <class 'VMBuilder.plugins.ubuntu.distro.U...
  hypervisors = {'esxi': <class 'VMBuilder.plugins.vmware.vm.VMW...
Function Details

get_distro(name)

source code 

Get Distro subclass by name

Parameters:
  • name (string) - Name of the Distro subclass (defined by its .arg attribute)

get_hypervisor(name)

source code 

Get Hypervisor subclass by name

Parameters:
  • name (string) - Name of the Hypervisor subclass (defined by its .arg attribute)

get_version_info()

source code 

Return a dict containing version information for VMBuilder.

Returns:
A dict with (at least) the following keys:
  • major: Major version number.
  • minor: Minor version number.
  • micro: Micro version number.
  • revno: The revision number of the current branch or the branch from which the tarball was created.

register_distro(cls)

source code 

Register a distro class with VMBuilder

Parameters:
  • cls (Distro) - The new Distro subclass to be registered with VMBuilder

register_distro_plugin(cls)

source code 

Register a distro plugin with VMBuilder

Note: A "distro plugin" is not a plugin that implements a new Distro. It's a plugin that pertains to Distro's. If you want to register a new Distro, use register_distro.

Parameters:
  • cls (Plugin) - The Plugin class to registered as a distro plugin

register_hypervisor(cls)

source code 

Register a hypervisor class with VMBuilder

Parameters:
  • cls (Hypervisor) - The new Hypervisor subclass to be registered with VMBuilder

register_hypervisor_plugin(cls)

source code 

Register a hypervisor plugin with VMBuilder

Note: A "hypervisor plugin" is not a plugin that implements a new Hypervisor. It's a plugin that pertains to Hypervisor's. If you want to register a new Hypervisor, use register_hypervisor.

Parameters:
  • cls (Plugin) - The Plugin class to registered as a hypervisor plugin

set_console_loglevel(level)

source code 

Adjust the loglevel that will be sent to the console.

Parameters:
  • level (number) - See the standard logging module

Variables Details

distros

Value:
{'ubuntu': <class 'VMBuilder.plugins.ubuntu.distro.Ubuntu'>}

hypervisors

Value:
{'esxi': <class 'VMBuilder.plugins.vmware.vm.VMWareEsxi'>,
 'kvm': <class 'VMBuilder.plugins.kvm.vm.KVM'>,
 'qemu': <class 'VMBuilder.plugins.kvm.vm.QEMu'>,
 'vbox': <class 'VMBuilder.plugins.virtualbox.vm.VirtualBox'>,
 'vmserver': <class 'VMBuilder.plugins.vmware.vm.VMWareServer'>,
 'vmw6': <class 'VMBuilder.plugins.vmware.vm.VMWareWorkstation6'>,
 'xen': <class 'VMBuilder.plugins.xen.vm.Xen'>}