mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Makes a libvirt connection to qemu
This commit is contained in:
parent
d102259539
commit
b26313de20
@ -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")
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user