mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Check if the HAXM service is running when starting a Qemu VM with hardware acceleration. Ref #1242.
This commit is contained in:
1 parent
5d704aa478
commit
d419d3fa39
3 files changed
+47
-18
No files matched your search
@@ -1764,6 +1764,12 @@ class QemuVM(BaseNode):
|
||||
if version is None:
|
||||
raise QemuError("HAXM acceleration support is not installed on this host")
|
||||
log.info("HAXM support version {} detected".format(version))
|
||||
|
||||
# check if the HAXM service is running
|
||||
from gns3server.utils.windows_service import check_windows_service_is_running
|
||||
if not check_windows_service_is_running("intelhaxm"):
|
||||
raise QemuError("Intel HAXM service is not running on this host")
|
||||
|
||||
else:
|
||||
return False
|
||||
elif sys.platform.startswith("darwin"):
|
||||
|
||||
Reference in new issue
Block a user