This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.1 docs or all OpenStack docs too.

The nova.virt.connection Module

Abstraction of the underlying virtualization API.

nova.virt.connection.get_connection(read_only=False)

Returns an object representing the connection to a virtualization 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.

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

Related flags

Connection_type :
 

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

  • fake
  • libvirt
  • xenapi