Send a warning notification if there is not enough RAM left to start a VM. Implements #329.

This commit is contained in:
grossmj committed 2015-10-12 15:57:37 -06:00
1 parent c700804014
commit ac75977ae0
8 files changed
+38 -1

No files matched your search

+3
View File
@@ -492,6 +492,9 @@ class IOUVM(BaseVM):
self._create_netmap_config()
self._push_configs_to_nvram()
# check if there is enough RAM to run
self.check_available_ram(self.ram)
# created a environment variable pointing to the iourc file.
env = os.environ.copy()