1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-01-11 08:30:57 +00:00

Stop raising error if VMware has not enough ram. Not working on some system

Fix #713
This commit is contained in:
Julien Duponchelle 2016-10-04 10:15:33 +02:00
parent 4aa7a0a9df
commit 8299ce800d
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -64,10 +64,6 @@ class VMwareGNS3VM(BaseGNS3VM):
:param ram: amount of RAM
"""
available_ram = int(psutil.virtual_memory().available / (1024 * 1024))
if ram > available_ram:
raise GNS3VMError("You have allocated too much memory ({} MB) for the GNS3 VM! (available memory is {} MB)".format(ram, available_ram))
# memory must be a multiple of 4 (VMware requirement)
if ram % 4 != 0:
raise GNS3VMError("Allocated memory for the GNS3 VM must be a multiple of 4".format(available_ram))