Hyper-V with nested virtualization is only supported on Windows 10 Anniversary Update or later.

This commit is contained in:
grossmj committed 2019-03-13 02:15:58 +07:00
1 parent 3dcb7799e3
commit 010d65114d
2 files changed
+9 -3

No files matched your search

@@ -56,9 +56,13 @@ class HyperVGNS3VM(BaseGNS3VM):
if not sys.platform.startswith("win"):
raise GNS3VMError("Hyper-V is only supported on Windows")
if sys.getwindowsversion().platform_version[0] < 10:# or sys.getwindowsversion().build < 14393:
if sys.getwindowsversion().platform_version[0] < 10:
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().platform_version[0]))
if sys.getwindowsversion().platform_version[0] == 10 and sys.getwindowsversion().platform_version[1] == 0:
if sys.getwindowsversion().platform_version[1] < 14393:
raise GNS3VMError("Hyper-V with nested virtualization is only supported on Windows 10 Anniversary Update (build 10.0.14393) or later")
try:
conn = wmi.WMI()
except wmi.x_wmi as e: