mirror of
https://github.com/retspen/webvirtcloud
synced 2024-10-31 19:44:16 +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