The nova.virt.connection Module

Abstraction of the underlying virtualization API.

get_connection(read_only=False)

Returns an object representing the connection to a virtualization platform, or to an on-demand bare-metal provisioning platform.

This could be nova.virt.fake.FakeConnection in test mode, a connection to KVM, QEMU, or UML via libvirt_conn, or a connection to XenServer or Xen Cloud Platform via xenapi. Other platforms are also supported.

Any object returned here must conform to the interface documented by FakeConnection.

Related flags

Connection_type :
 

A string literal that falls through an if/elif structure to determine what virtualization mechanism to use. Values may be

  • fake
  • libvirt
  • xenapi
  • vmwareapi
  • baremetal

Previous topic

The nova.virt.configdrive Module

Next topic

The nova.virt.disk.api Module

This Page