Package ganeti :: Package hypervisor :: Module hv_kvm
[hide private]
[frames] | no frames]

Module hv_kvm

source code

KVM hypervisor

Classes [hide private]
  KVMHypervisor
KVM hypervisor interface
Functions [hide private]
string
_WriteNetScript(instance, nic, index)
Write a script to connect a net interface to the proper bridge.
source code
Variables [hide private]
  _KVM_NETWORK_SCRIPT = constants.SYSCONFDIR+ "/ganeti/kvm-vif-b...

Imports: errno, os, re, tempfile, time, logging, pwd, StringIO, utils, constants, errors, serializer, objects, uidpool, ssconf, hv_base, netutils


Function Details [hide private]

_WriteNetScript(instance, nic, index)

source code 

Write a script to connect a net interface to the proper bridge.

This can be used by any qemu-type hypervisor.

Parameters:
Returns: string
Script

Variables Details [hide private]

_KVM_NETWORK_SCRIPT

Value:
constants.SYSCONFDIR+ "/ganeti/kvm-vif-bridge"