mirror of https://github.com/apache/cloudstack.git
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:
parent
0d77874f48
commit
bf54422b11
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue