mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Send a warning notification if there is not enough RAM left to start a VM. Implements #329.
This commit is contained in:
1 parent
c700804014
commit
ac75977ae0
8 files changed
+38
-1
No files matched your search
@@ -202,6 +202,9 @@ class VirtualBoxVM(BaseVM):
|
||||
yield from self._set_network_options()
|
||||
yield from self._set_serial_console()
|
||||
|
||||
# check if there is enough RAM to run
|
||||
self.check_available_ram(self.ram)
|
||||
|
||||
args = [self._vmname]
|
||||
if self._headless:
|
||||
args.extend(["--type", "headless"])
|
||||
|
||||
Reference in new issue
Block a user