You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2017/12/19 18:43:52 UTC

[cloudstack] 18/21: CLOUDSTACK-10193: Use other64Linux for systemvms on VMware

This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch debian9-systemvmtemplate
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit a9175efff249992b39c9e214556f72a09c98420e
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Sun Dec 17 12:26:35 2017 +0530

    CLOUDSTACK-10193: Use other64Linux for systemvms on VMware
    
    In default/fresh installations, the guest os type for systemvms with id=15
    or Debian 5 (32-bit) can cause memory allocation issues to guest. Using
    Other Linux 64-bit as guest OS systemvms get all the allocated RAM. This
    avoids OOM related kernel panics for certain VRs such as rVRs, lbvm etc.
    
    Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
 engine/schema/resources/META-INF/db/schema-41000to41100.sql | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/engine/schema/resources/META-INF/db/schema-41000to41100.sql b/engine/schema/resources/META-INF/db/schema-41000to41100.sql
index 2a2fe2d..76bcb3f 100644
--- a/engine/schema/resources/META-INF/db/schema-41000to41100.sql
+++ b/engine/schema/resources/META-INF/db/schema-41000to41100.sql
@@ -495,3 +495,7 @@ UPDATE `cloud`.`monitoring_services` SET pidfile="/var/run/apache2/apache2.pid"
 
 -- Boost secondary storage systemvm
 UPDATE `cloud`.`service_offering` SET ram_size=1024, cpu=2 WHERE vm_type="secondarystoragevm" and cpu=1 and ram_size=512;
+
+-- Use 'Other Linux 64-bit' as guest os for the default systemvmtemplate for VMware
+-- This fixes a memory allocation issue to systemvms on VMware/ESXi
+UPDATE `cloud`.`vm_template` SET guest_os_id=99 WHERE id=8;

-- 
To stop receiving notification emails like this one, please contact
"commits@cloudstack.apache.org" <co...@cloudstack.apache.org>.