mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-03 02:49:39 +00:00
check if host supports kvm, if it is, use kvm else qemu
This commit is contained in:
@@ -351,7 +351,7 @@ class wvmConnect(object):
|
|||||||
def get_dom_cap_xml(self, arch, machine):
|
def get_dom_cap_xml(self, arch, machine):
|
||||||
""" Return domain capabilities xml"""
|
""" Return domain capabilities xml"""
|
||||||
emulatorbin = self.get_emulator(arch)
|
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)
|
machine_types = self.get_machine_types(arch)
|
||||||
if not machine or machine not in machine_types:
|
if not machine or machine not in machine_types:
|
||||||
|
|||||||
Reference in New Issue
Block a user