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
This commit is contained in:
anthony 2011-05-12 18:26:22 -07:00
parent 0d77874f48
commit bf54422b11
1 changed files with 1 additions and 0 deletions

View File

@ -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"