From 349e0b32548859c07e142ecfdfe25d3e1b3f973b Mon Sep 17 00:00:00 2001 From: anthony Date: Thu, 12 May 2011 18:26:22 -0700 Subject: [PATCH] bug 9866: It happens only when the template is not created by XenServer and the virtual disk size is not integer time of 2M. fixed in 2.2.4 status 9866: resolved fixed --- .../vm/hypervisor/xenserver/copy_vhd_from_secondarystorage.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/vm/hypervisor/xenserver/copy_vhd_from_secondarystorage.sh b/scripts/vm/hypervisor/xenserver/copy_vhd_from_secondarystorage.sh index d98ef2e5af6..098284bc8fe 100755 --- a/scripts/vm/hypervisor/xenserver/copy_vhd_from_secondarystorage.sh +++ b/scripts/vm/hypervisor/xenserver/copy_vhd_from_secondarystorage.sh @@ -88,6 +88,7 @@ copyvhd() exit 0 fi if [ $type != "nfs" ]; then + dd if=$srcvhd of=$desvhd bs=512 seek=$(($(($vsize/512))-1)) count=1 $VHDUTIL modify -s $vsize -n $desvhd if [ $? -ne 0 ]; then echo "32#failed to set new vhd physical size for vdi vdi $uuid"