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 2014/09/22 21:58:59 UTC
git commit: updated refs/heads/master to cb55971
Repository: cloudstack
Updated Branches:
refs/heads/master 1290e1010 -> cb5597167
appliance: build and export raw systemvm image for OVM
Signed-off-by: Rohit Yadav <ro...@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 <ro...@shapeblue.com>
Authored: Mon Sep 22 21:58:25 2014 +0200
Committer: Rohit Yadav <ro...@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}"