CLOUDSTACK-1340: Do two rounds of vhd export, from raw to fixed to dynamic Signed-off-by: Rohit Yadav <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/512c16f4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/512c16f4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/512c16f4 Branch: refs/heads/vim51_win8 Commit: 512c16f48357c179a19e73bec57a7c914762bc47 Parents: f9d96c9 Author: Rohit Yadav <[email protected]> Authored: Fri Mar 1 15:56:06 2013 +0530 Committer: Rohit Yadav <[email protected]> Committed: Fri Mar 1 16:59:02 2013 +0530 ---------------------------------------------------------------------- tools/appliance/build.sh | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/512c16f4/tools/appliance/build.sh ---------------------------------------------------------------------- diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh index eeee54b..2b69f14 100644 --- a/tools/appliance/build.sh +++ b/tools/appliance/build.sh @@ -60,8 +60,10 @@ rm -fr dist *.ova *.vhd *.vdi *.qcow* *.bz2 mkdir dist # Export for Xen -vboxmanage internalcommands converttoraw "$hdd_path" raw.img -vhd-util convert -s 0 -t 1 -i raw.img -o $appliance-$build_date-$branch-xen.vhd +vboxmanage internalcommands converttoraw "$hdd_path" img.raw +faketime '2010-01-01' vhd-util convert -s 0 -t 1 -i img.raw -o stagefixed.vhd +faketime '2010-01-01' vhd-util convert -s 1 -t 2 -i stagefixed.vhd -o $appliance-$build_date-$branch-xen.vhd +rm *.bak bzip2 $appliance-$build_date-$branch-xen.vhd echo "$appliance exported for Xen: dist/$appliance-$build_date-$branch-xen.vhd.bz2"
