I fear the limitation is in ARG_MAX value in the kernel and in ESXi is not going to be possible to change. Fortunately the template (that big base64 encoded string) is only passed to vmm attach disk and in vmware drivers it is not used. You can change the vmm driver so it does not send the template with this patch:<div>
<br></div><div>--8<------</div><div><div>diff --git a/src/vmm_mad/exec/one_vmm_exec.rb b/src/vmm_mad/exec/one_vmm_exec.rb</div><div>index 943ee34..38bf433 100755</div><div>--- a/src/vmm_mad/exec/one_vmm_exec.rb</div><div>
+++ b/src/vmm_mad/exec/one_vmm_exec.rb</div><div>@@ -536,7 +536,7 @@ class ExecDriver < VirtualMachineDriver</div><div> :disk_target_path,</div><div> target,</div><div> target_index,</div>
<div>- drv_message</div><div>+ "drv_message"</div><div> ]</div><div> }</div><div> ]</div><div>------>8--</div><div><br></div><div>
We will work on solving this problem in a less hackish way.</div><div><br></div><div><a href="http://dev.opennebula.org/issues/1355">http://dev.opennebula.org/issues/1355</a></div><br><div class="gmail_quote">2012/7/12 Emmanuel Mathot <span dir="ltr"><<a href="mailto:emmanuel.mathot@terradue.com" target="_blank">emmanuel.mathot@terradue.com</a>></span><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><br></div><div>Using the new attach / detach disk functionality on ONE 3.6, I encountered problems with vmware when the remote scripts /tmp/one/vmm/vmware/attach_disk is executed.</div>
<div><br></div><div>In fact the command is passed to ssh with a very large shell command as this one:</div><div><br></div><div><font face="'Courier New'"> /tmp/one/vmm/vmware/attach_disk one-432 /var/lib/one/datastores/0/432/disk.2 sdb 1 PFZNTV9EUklWRVJfQUNUSU9OX0RBVEE+PEhPU1Q+YmxhZGUyLnNlcnZpY2UuY2lvcC5pbnQ8L0hPU1Q+PE5FVF9EUlY+dm13YXJlPC9ORVRfRFJWPjxNSUdSX0hPU1QvPjxNSUdSX05FVF9EUlYvPjxERVBMT1lfSUQ+b25lLTQzMjwvREVQTE9ZX0lEPjxMT0NBTF9ER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JDSD48L09TPjxSQVc+PFRZUEU+PCFbQ0RBVEFbdm13YXJlXV0+PC9UWVBFPjwvUkFXPjxSRVFVSVJFTUVOVFM+PCFbQ0RBVEFbQ0xVU1RFUl9JRCA9IDEwMCAmICggSFlQRVJWSVNPUj0idm13YXJlIiApXV0+PC9SRVFVSVJFTUVOVFM+PFRFTVBMQVRFX0lEPjwhW0NEQVRBWzEwXV0+PC9URU1QTEFURV9JRD48VkNQVT48IVtDREFUQVs0XV0+PC9WQ1BVPjxWTUlEPjwhW0NEQVRBWzQzMl1dPjwvVk1JRD48L1RFTVBMQVRFPjxISVNUT1JZX1JFQ09SRFM+PEhJU1RPUlk+PE9JRD40MzI8L09JRD48U0VRPjM8L1NFUT48SE9TVE5BTUU+YmxhZGUyLnNlcnZpY2UuY2lvcC5pbnQ8L0hPU1ROQU1FPjxISUQ+MTM8L0hJRD48U1RJTUU+MTM0MjA4NDQ3NTwvU1RJTUU+PEVUSU1FPjA8L0VUSU1FPjxWTU1NQUQ+dm1tX3Ztd2FyZTwvVk1NTUFEPjxWTk1NQUQ+dm13YXJlPC9WTk1NQUQ+PFRNTUFEPnNzaDwvVE1NQUQ+PERTX0lEPjA8L0RTX0lEPjxQU1RJTUU+MTM0MjA4NDQ3NTwvUFNUSU1FPjxQRVRJTUU+MTM0MjA4NDUyMjwvUEVUSU1FPjxSU1RJTUU+MTM0MjA4NDUyMjwvUlNUSU1FPjxSRVRJTUU+MDwvUkVUSU1FPjxFU1RJTUU+MDwvRVNUSU1FPjxFRVRJTUU+MDwvRUVUSU1FPjxSRUFTT04+MDwvUkVBU09OPjwvSElTVE9SWT48L0hJU1RPUllfUkVDT1JEUz48L1ZNPjwvVk1NX0RSSVZFUl9BQ1RJT05fREFUQT4= 432 <a href="http://blade2.service.ciop.int" target="_blank">blade2.service.ciop.int</a></font></div>
<div><br></div><div>The shell on ESXi host returns: /bin/sh: File too large</div><div>Indeed, once logged on the shell of the host, the command line is limited. The 5th argument is cut.</div><div>The script uses only the 4 first arguments and therefore could work without the others but I suppose it is used by other drivers. </div>
<div>Would you have a workaround or a configuration on vmware that allow more characters in the shell?</div><div><br></div><div>Cheers,</div><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><br clear="all"><div><br></div>-- <br>Javier Fontán Muiños<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a> | @OpenNebula<br>
</div>