Previous topic

The nova.virt.baremetal.tilera Module

Next topic

The nova.virt.disk.api Module

This Page

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

The nova.virt.connection Module

Abstraction of the underlying virtualization API.

FLAGS = <nova.flags.NovaConfigOpts object at 0x2275d50>

In case of baremetal (FLAGS.connection_type), specific driver is set by FLAGS.baremetal_driver

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
  • vmwareapi