mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-16 22:38:18 +00:00
Send a warning notification if there is not enough RAM left to start a VM. Implements #329.
This commit is contained in:
@ -849,6 +849,9 @@ class QemuVM(BaseVM):
|
||||
except OSError as e:
|
||||
raise QemuError("Could not find free port for the Qemu monitor: {}".format(e))
|
||||
|
||||
# check if there is enough RAM to run
|
||||
self.check_available_ram(self.ram)
|
||||
|
||||
self._command = yield from self._build_command()
|
||||
command_string = " ".join(shlex.quote(s) for s in self._command)
|
||||
try:
|
||||
|
Reference in New Issue
Block a user