Hi Emmanuel,<div><br></div><div>That was indeed a bug, thanks a lot for your feedback! I've opened a ticket [1] to keep track of the solution.</div><div><br></div><div>Regards,</div><div><br></div><div>-Tino</div><div>
<br></div><div>[1] <a href="http://dev.opennebula.org/issues/1373">http://dev.opennebula.org/issues/1373</a></div><div><br clear="all">--<br>Constantino Vázquez Blanco, MSc <br>Project Engineer<br>OpenNebula - The Open-Source Solution for Data Center Virtualization<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @tinova79 | @OpenNebula <br>
<br><br><div class="gmail_quote">On Mon, Jul 16, 2012 at 7:58 AM, Emmanuel Mathot <span dir="ltr"><<a href="mailto:emmanuel.mathot@terradue.com" target="_blank">emmanuel.mathot@terradue.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div>Hello,</div><div><br></div><div>Before posting a bug on <a href="http://dev.opennebula.org" target="_blank">dev.opennebula.org</a>, I submit you some corrections I made to the transfer manager scripts to have the mkimage script working on vmware.</div>
<div>Let me know.</div><div><br></div><div><div>--- /usr/lib/one/sh/scripts_common.sh 2012-07-16 07:58:15.873452099 +0200</div><div>+++ /usr/lib/one/sh/scripts_common.sh.old 2012-07-16 07:56:39.548454580 +0200</div>
<div>@@ -251,12 +251,11 @@</div><div> return 0</div><div> ;;</div><div> vmdk_*)</div><div>- VMWARE_DISK_TYPE=`echo $FSTYPE|cut -d'_' -f 2`</div><div>- echo "if which sudo > /dev/null; then \</div>
<div>- SUDO_CMD="sudo " \</div><div>- fi \</div><div>- $SUDO_CMD $VMKFSTOOLS -U $DST/disk.vmdk; \</div><div>- $SUDO_CMD $VMKFSTOOLS -c ${SIZE}M -d ${VMWARE_DISK_TYPE} $DST_PATH/disk.vmdk"</div>
<div>+ VMWARE_DISK_TYPE=`echo $FSTYPE|cut -d'_' -f 1`</div><div>+ echo "WHICH_SUDO=\$(which sudo) ; \</div><div>+ [ ! -z \"\$WHICH_SUDO\" -a -f \"\$WHICH_SUDO\" ] && SUDO=\"sudo\" ; \</div>
<div>+ $SUDO $VMKFSTOOLS -U $DST/disk.vmdk; \</div><div>+ $SUDO $VMKFSTOOLS -c ${SIZE}M -d ${VMWARE_DISK_TYPE} $DST_PATH/disk.vmdk"</div><div> return 0</div><div> ;;</div>
<div> *)</div></div><div><br></div><div><br></div><div>--- /var/lib/one/remotes/tm/ssh/mkimage 2012-07-16 07:48:36.285451366 +0200</div><div>+++ /var/lib/one/remotes/tm/ssh/mkimage.old 2012-07-16 07:52:26.531451982 +0200</div>
<div>@@ -55,8 +55,6 @@</div><div> </div><div> if ! echo "$FSTYPE"|grep -q ^vmdk; then</div><div> CREATE_IMAGE="$DD if=/dev/zero of=$DST_PATH bs=1 count=1 seek=${SIZE}M"</div><div>-else</div><div>- CREATE_IMAGE="mkdir -p $DST_PATH"</div>
<div> fi</div><div> </div><div> MKSCRIPT=$(cat <<EOF</div><div><br></div>Cheers,<br><br><div>
<div style="word-wrap:break-word"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<div><div><font face="Calibri"><span style="font-family:Helvetica"><font face="Calibri" size="3"><span style="font-size:13px">Emmanuel Mathot</span></font></span><span style="font-family:Helvetica"><span style="font-family:Times"><br>
</span></span><span style="font-family:Helvetica"><span style="font-family:Times"><a href="http://www.terradue.com/" target="_blank"><span style="font-family:Calibri;color:rgb(0,58,161);text-decoration:none">www.terradue.com</span></a></span></span><span style="font-family:Helvetica"><span style="font-family:Times"><br>
</span></span><font face="Times"><img border="0" width="100" alt="Terradue"></font></font></div></div></div></span></div>
</div>
<br></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>