mirror of
https://github.com/GNS3/gns3-server
synced 2025-05-29 04:08:50 +00:00
Debugging why sys.getwindowsversion() does not work with frozen app.
This commit is contained in:
parent
4d9728b6f5
commit
d506962bdb
@ -57,7 +57,7 @@ class HyperVGNS3VM(BaseGNS3VM):
|
|||||||
raise GNS3VMError("Hyper-V is only supported on Windows")
|
raise GNS3VMError("Hyper-V is only supported on Windows")
|
||||||
|
|
||||||
if sys.getwindowsversion().major < 10:# or sys.getwindowsversion().build < 14393:
|
if sys.getwindowsversion().major < 10:# or sys.getwindowsversion().build < 14393:
|
||||||
raise GNS3VMError("Windows 10/Windows Server 2016 or a later version is required to run Hyper-V with nested virtualization enabled")
|
raise GNS3VMError("Windows 10/Windows Server 2016 or a later version is required to run Hyper-V with nested virtualization enabled (version {} detected)".format(sys.getwindowsversion().major))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
conn = wmi.WMI()
|
conn = wmi.WMI()
|
||||||
|
Loading…
Reference in New Issue
Block a user