cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject git commit: updated refs/heads/master to cb55971
Date Mon, 22 Sep 2014 19:58:59 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 1290e1010 -> cb5597167


appliance: build and export raw systemvm image for OVM

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


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

Branch: refs/heads/master
Commit: cb5597167d15cde8e487d20c456def1316c70d69
Parents: 1290e10
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Mon Sep 22 21:58:25 2014 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Sep 22 21:58:25 2014 +0200

----------------------------------------------------------------------
 tools/appliance/build.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/cb559716/tools/appliance/build.sh
----------------------------------------------------------------------
diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh
index fd24a43..8bf78b1 100755
--- a/tools/appliance/build.sh
+++ b/tools/appliance/build.sh
@@ -405,6 +405,17 @@ function xen_server_export() {
   fi
 }
 
+function ovm_export() {
+  log INFO "creating OVM export"
+  local hdd_path="${1}"
+  rm -f img.raw
+  vboxmanage internalcommands converttoraw -format vdi "${hdd_path}" img.raw
+  mv img.raw ${appliance_build_name}-ovm.raw
+  bzip2 "${appliance_build_name}-ovm.raw"
+  mv "${appliance_build_name}-ovm.raw.bz2" dist/
+  log INFO "${appliance} exported for OracleVM: dist/${appliance_build_name}-ovm.vhd.bz2"
+}
+
 function kvm_export() {
   set +e
   which faketime >/dev/null 2>&1 && which vhd-util >/dev/null 2>&1
@@ -526,6 +537,7 @@ function main() {
 
   compact_hdd "${hdd_uuid}"
   xen_server_export "${hdd_path}"
+  ovm_export "${hdd_path}"
   kvm_export "${hdd_path}"
   vmware_export "${machine_uuid}" "${hdd_uuid}"
   vagrant_export "${machine_uuid}"


Mime
View raw message