From d7c911fd54540e79c3451fb5a610e5196b22998a Mon Sep 17 00:00:00 2001 From: Stephen Turner Date: Fri, 25 Sep 2015 17:05:02 +0100 Subject: [PATCH] CP-12776: Increase VM memory to 1TB in anticipation of increased limit in CAR-1874 --- XenModel/Utils/Util.cs | 6 ++++-- XenModel/XenAPI-Extensions/VM.cs | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/XenModel/Utils/Util.cs b/XenModel/Utils/Util.cs index 809d4d989..e7fefa9f2 100644 --- a/XenModel/Utils/Util.cs +++ b/XenModel/Utils/Util.cs @@ -49,11 +49,13 @@ namespace XenAdmin { public const long BINARY_KILO = 1024; public const long BINARY_MEGA = BINARY_KILO * BINARY_KILO; - public const long BINARY_GIGA = BINARY_KILO * BINARY_KILO * BINARY_KILO; + public const long BINARY_GIGA = BINARY_KILO * BINARY_MEGA; + public const long BINARY_TERA = BINARY_KILO * BINARY_GIGA; public const long DEC_KILO = 1000; public const long DEC_MEGA = DEC_KILO * DEC_KILO; - public const long DEC_GIGA = DEC_KILO * DEC_KILO * DEC_KILO; + public const long DEC_GIGA = DEC_KILO * DEC_MEGA; + public const long DEC_TERA = DEC_KILO * DEC_GIGA; /// /// The default iSCSI filer port. diff --git a/XenModel/XenAPI-Extensions/VM.cs b/XenModel/XenAPI-Extensions/VM.cs index b28938df8..6c1eddf9f 100644 --- a/XenModel/XenAPI-Extensions/VM.cs +++ b/XenModel/XenAPI-Extensions/VM.cs @@ -59,7 +59,7 @@ namespace XenAPI private const int DEFAULT_NUM_VCPUS_ALLOWED = 16; private const int DEFAULT_NUM_VIFS_ALLOWED = 7; private const int DEFAULT_NUM_VBDS_ALLOWED = 16; - public const long DEFAULT_MEM_ALLOWED = 128 * Util.BINARY_GIGA; + public const long DEFAULT_MEM_ALLOWED = 1 * Util.BINARY_TERA; public const int DEFAULT_CORES_PER_SOCKET = 1; private SnapshotsView _snapshotView = SnapshotsView.None;