You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2018/03/23 06:23:39 UTC

[GitHub] rhtyd commented on a change in pull request #2488: smaller systemvm images using sparse disks.

rhtyd commented on a change in pull request #2488: smaller systemvm images using sparse disks.
URL: https://github.com/apache/cloudstack/pull/2488#discussion_r176647154
 
 

 ##########
 File path: tools/appliance/build.sh
 ##########
 @@ -271,9 +271,9 @@ function xen_server_export() {
   local result=$?
   set -e
   if [ ${result} == 0 ]; then
-    qemu-img convert -f qcow2 -O raw "dist/${appliance}" img.raw
-    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_name}-xen.vhd"
+    cp "dist/${appliance}" "dist/${appliance}-xen"
+    vhd-util convert -s 0 -t 1 -i "dist/${appliance}-xen" -o stagefixed.vhd
+    faketime '2010-01-01' qemu-img convert -S 512 -O vpc -o subformat=dynamic stagefixed.vhd "${appliance_build_name}-xen.vhd"
 
 Review comment:
   @PaulAngus can you confirm if this could break template on XenServer, as qemu-img is used to convert the staged vhd file to `vpc` output format that corresponds to HyperV vhd?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services