From 84ee3263ba01019d2e6112395c5804c299296463 Mon Sep 17 00:00:00 2001 From: grossmj Date: Sun, 17 Feb 2019 23:07:33 +0800 Subject: [PATCH] Count logical CPUs to detect if the number of vCPUs is too high when configuring the GNS3 VM. Fixes #2688. --- gns3server/controller/gns3vm/vmware_gns3_vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/controller/gns3vm/vmware_gns3_vm.py b/gns3server/controller/gns3vm/vmware_gns3_vm.py index c14f0732..593e7037 100644 --- a/gns3server/controller/gns3vm/vmware_gns3_vm.py +++ b/gns3server/controller/gns3vm/vmware_gns3_vm.py @@ -72,7 +72,7 @@ class VMwareGNS3VM(BaseGNS3VM): if ram % 4 != 0: raise GNS3VMError("Allocated memory {} for the GNS3 VM must be a multiple of 4".format(ram)) - available_vcpus = psutil.cpu_count(logical=False) + available_vcpus = psutil.cpu_count() if vcpus > available_vcpus: raise GNS3VMError("You have allocated too many vCPUs for the GNS3 VM! (max available is {} vCPUs)".format(available_vcpus))