You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2013/02/27 12:38:04 UTC

[2/3] git commit: refs/heads/master - CLOUDSTACK-1340: Shrink the final virtual disk, vmdk was not supported, use vdi

CLOUDSTACK-1340: Shrink the final virtual disk, vmdk was not supported, use vdi

Signed-off-by: Rohit Yadav <bh...@apache.org>


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

Branch: refs/heads/master
Commit: 23be2e7ba00d4cc3a043c47507d6f5c4ac00111c
Parents: aabaf25
Author: Rohit Yadav <bh...@apache.org>
Authored: Wed Feb 27 16:40:11 2013 +0530
Committer: Rohit Yadav <bh...@apache.org>
Committed: Wed Feb 27 16:59:34 2013 +0530

----------------------------------------------------------------------
 tools/appliance/build.sh                           |    5 ++++-
 .../definitions/systemvmtemplate/definition.rb     |    2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/23be2e7b/tools/appliance/build.sh
----------------------------------------------------------------------
diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh
index 366b246..4d9d8bd 100644
--- a/tools/appliance/build.sh
+++ b/tools/appliance/build.sh
@@ -40,7 +40,10 @@ done
 
 # Get appliance uuids
 machine_uuid=`vboxmanage showvminfo $appliance | grep UUID | head -1 | awk '{print $2}'`
-hdd_uuid=`vboxmanage showvminfo $appliance | grep vmdk | head -1 | awk '{print $8}' | cut -d ')' -f 1`
+hdd_uuid=`vboxmanage showvminfo $appliance | grep vdi | head -1 | awk '{print $8}' | cut -d ')' -f 1`
+
+# Compact the virtual hdd
+vboxmanage modifyhd $hdd_uuid --compact
 
 # Start exporting
 rm -fr dist

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/23be2e7b/tools/appliance/definitions/systemvmtemplate/definition.rb
----------------------------------------------------------------------
diff --git a/tools/appliance/definitions/systemvmtemplate/definition.rb b/tools/appliance/definitions/systemvmtemplate/definition.rb
index a839182..df9589c 100644
--- a/tools/appliance/definitions/systemvmtemplate/definition.rb
+++ b/tools/appliance/definitions/systemvmtemplate/definition.rb
@@ -1,7 +1,7 @@
 Veewee::Definition.declare({
   :cpu_count => '1',
   :memory_size=> '256',
-  :disk_size => '2048', :disk_format => 'VMDK', :hostiocache => 'off',
+  :disk_size => '2048', :disk_format => 'VDI', :hostiocache => 'off',
   :os_type_id => 'Debian',
   :iso_file => "debian-wheezy-DI-b4-i386-netinst.iso",
   :iso_src => "http://cdimage.debian.org/cdimage/wheezy_di_beta4/i386/iso-cd/debian-wheezy-DI-b4-i386-netinst.iso",