mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 15:15:22 +00:00
check if host supports kvm, if it is, use kvm else qemu
This commit is contained in:
parent
9d58e56d16
commit
e87d7463fe
1 changed files with 1 additions and 1 deletions
|
@ -351,7 +351,7 @@ class wvmConnect(object):
|
|||
def get_dom_cap_xml(self, arch, machine):
|
||||
""" Return domain capabilities xml"""
|
||||
emulatorbin = self.get_emulator(arch)
|
||||
virttype = self.get_hypervisors_domain_types()[arch][0]
|
||||
virttype = 'kvm' if 'kvm' in self.get_hypervisors_domain_types()[arch] else 'qemu'
|
||||
|
||||
machine_types = self.get_machine_types(arch)
|
||||
if not machine or machine not in machine_types:
|
||||
|
|
Loading…
Reference in a new issue