incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alena1...@apache.org
Subject [15/17] git commit: For devcloudsetup.sh:
Date Wed, 11 Jul 2012 20:18:07 GMT
  For devcloudsetup.sh:

    Added dom0 memory settings to grub config.
    Added root password reset.
    Install xen ia32 instead of amd64, to 32bit compability
Send-by: chip.childers@sungard.com
RB: https://reviews.apache.org/r/5877/


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/3bbb6944
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/3bbb6944
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/3bbb6944

Branch: refs/heads/vpc
Commit: 3bbb69441371d939d23fe755b2c95c738bbaa5f3
Parents: 29e90f8
Author: Edison Su <sudison@gmail.com>
Authored: Tue Jul 10 11:05:19 2012 -0700
Committer: Edison Su <sudison@gmail.com>
Committed: Tue Jul 10 11:18:32 2012 -0700

----------------------------------------------------------------------
 tools/devcloud/devcloudsetup.sh |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/3bbb6944/tools/devcloud/devcloudsetup.sh
----------------------------------------------------------------------
diff --git a/tools/devcloud/devcloudsetup.sh b/tools/devcloud/devcloudsetup.sh
index 8ae3908..03169d8 100644
--- a/tools/devcloud/devcloudsetup.sh
+++ b/tools/devcloud/devcloudsetup.sh
@@ -21,13 +21,15 @@ install_xen() {
     aptitude update
     echo "install xen"
     aptitude -y install linux-headers-3.2.0-23-generic-pae
-    aptitude -y install xen-hypervisor-4.1 xcp-xapi 
+    aptitude -y install xen-hypervisor-4.1-i386 xcp-xapi 
     echo "configure xen"
 
     sed -i -e 's/xend_start$/#xend_start/' -e 's/xend_stop$/#xend_stop/' /etc/init.d/xend
     update-rc.d xendomains disable
 
-    sed -i 's/GRUB_DEFAULT=.\+/GRUB_DEFAULT="Xen 4.1-amd64"/' /etc/default/grub
+    sed -i 's/GRUB_DEFAULT=.\+/GRUB_DEFAULT="Xen 4.1-i386"/' /etc/default/grub
+    echo 'GRUB_CMDLINE_XEN_DEFAULT="dom0_mem=512M,max:512M"' | cat /etc/default/grub - >>
/etc/default/newgrub
+    mv /etc/default/newgrub /etc/default/grub
     update-grub
 
     mkdir /usr/share/qemu
@@ -52,6 +54,9 @@ EOF
     echo TOOLSTACK=xapi > /etc/default/xen
     echo bridge > /etc/xcp/network.conf
 
+    echo "set root password"
+    echo "root:password" | chpasswd
+
     echo "reboot"
     reboot
 }


Mime
View raw message