mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-10 12:58:27 +03:00
engine: Add some more kvm default URI checks
This commit is contained in:
parent
2ab8c6ce03
commit
f50a2509c9
@ -66,9 +66,11 @@ def default_uri():
|
||||
tryuri = None
|
||||
if os.path.exists("/var/lib/xend") and os.path.exists("/proc/xen"):
|
||||
tryuri = "xen:///"
|
||||
elif (os.path.exists("/usr/bin/qemu") or
|
||||
elif (os.path.exists("/dev/kvm") or
|
||||
os.path.exists("/usr/bin/qemu") or
|
||||
os.path.exists("/usr/bin/qemu-kvm") or
|
||||
os.path.exists("/usr/bin/kvm")):
|
||||
os.path.exists("/usr/bin/kvm") or
|
||||
os.path.exists("/usr/libexec/qemu-kvm")):
|
||||
tryuri = "qemu:///system"
|
||||
|
||||
return tryuri
|
||||
|
Loading…
x
Reference in New Issue
Block a user