Makes a libvirt connection to qemu

This commit is contained in:
Thomas S Hatch 2011-03-16 11:01:42 -06:00
parent d102259539
commit b26313de20

View File

@ -20,3 +20,15 @@ VIRT_STATE_NAME_MAP = {
5 : "shutdown",
6 : "crashed"
}
def _get_conn():
'''
Detects what type of dom this node is and attempts to connect to the
correct hypervisor via libvirt.
'''
# This only supports kvm right now, it needs to be expanded to support
# all vm layers supported by libvirt
return libvirt.open("qemu:///system")