mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-19 15:53:47 +00:00
Hyper-V with nested virtualization is only supported on Windows 10 Anniversary Update or later.
This commit is contained in:
@ -56,9 +56,13 @@ class HyperVGNS3VM(BaseGNS3VM):
|
|||||||
if not sys.platform.startswith("win"):
|
if not sys.platform.startswith("win"):
|
||||||
raise GNS3VMError("Hyper-V is only supported on Windows")
|
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]))
|
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:
|
try:
|
||||||
conn = wmi.WMI()
|
conn = wmi.WMI()
|
||||||
except wmi.x_wmi as e:
|
except wmi.x_wmi as e:
|
||||||
|
@ -744,8 +744,10 @@ class Project:
|
|||||||
os.remove(snapshot.path)
|
os.remove(snapshot.path)
|
||||||
|
|
||||||
async def close(self, ignore_notification=False):
|
async def close(self, ignore_notification=False):
|
||||||
if self._status == "closed" or self._loading:
|
if self._status == "closed":
|
||||||
log.debug("Closing project '{}' ignored because it is already closed or being loaded".format(self.name))
|
return
|
||||||
|
if self._loading:
|
||||||
|
log.warning("Closing project '{}' ignored because it is being loaded".format(self.name))
|
||||||
return
|
return
|
||||||
await self.stop_all()
|
await self.stop_all()
|
||||||
for compute in list(self._project_created_on_compute):
|
for compute in list(self._project_created_on_compute):
|
||||||
|
Reference in New Issue
Block a user