mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Check if HAXM support is installed on macOS. Ref #1242.
This commit is contained in:
parent
9a9ac6d9f7
commit
135bbe8825
@ -1700,8 +1700,13 @@ class QemuVM(BaseNode):
|
||||
else:
|
||||
return False
|
||||
elif sys.platform.startswith("darwin"):
|
||||
# TODO: support for macOS
|
||||
raise QemuError("HAXM acceleration is not yet supported on macOS")
|
||||
process = yield from asyncio.create_subprocess_shell("kextstat | grep com.intel.kext.intelhaxm")
|
||||
yield from process.wait()
|
||||
if process.returncode != 0:
|
||||
if require_hardware_accel:
|
||||
raise QemuError("HAXM acceleration support is not installed on this host (com.intel.kext.intelhaxm extension not loaded)")
|
||||
else:
|
||||
return False
|
||||
return True
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user