<br><br><div><span class="gmail_quote">2007/11/12, Joan &lt;<a href="mailto:aseques@gmail.com">aseques@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br>2007/11/12, Kir Kolyshkin &lt;<a href="mailto:kir@openvz.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">kir@openvz.org</a>&gt;:<span class="q"><br>&gt; Joan wrote:<br>&gt; &gt; Following 
<a href="http://kb.swsoft.com/article_130_648_en.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://kb.swsoft.com/article_130_648_en.html
</a><br>&gt; &gt; I get &quot; unrecognized option `--bindmount_add&#39;&quot; so I guess that in<br>&gt; &gt; openVZ it works different.<br>&gt; &gt; There was no message in the list related to this.<br>&gt; &gt; Anyone knows if there is a command for that?
<br>&gt; &gt;<br>&gt; <br>&gt; Try to search <a href="http://forum.openvz.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">forum.openvz.org</a>. If you will find the working solution,<br>&gt; please document it on 
<a href="http://wiki.openvz.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">wiki.openvz.org</a>
.<br><br></span>I downloaded the mailing list archives since 2005 and couldn&#39;t find a solution, now I&#39;m looking in the forums and there&#39;s something at least interesting:<br><a href="http://forum.openvz.org/index.php?t=msg&amp;goto=12999&amp;&amp;srch=noexec#msg_12999" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://forum.openvz.org/index.php?t=msg&amp;goto=12999&amp;&amp;srch=noexec#msg_12999</a><br><br>Quote:<br><br>white:/# mount -t tmpfs -o noexec,nosuid tmpfs /tmp/<br>white:/# cat /proc/mounts<br>simfs / simfs rw 0 0<br>
proc /proc proc rw 0 0
<br>sysfs /sys sysfs rw 0 0<br>devpts /dev/pts devpts rw 0 0<br>tmpfs /dev/shm tmpfs rw 0 0<br>tmpfs /tmp tmpfs rw,nosuid,noexec 0 0<br><br>It seems to do the trick<br><br>Next step would be to permanently add it to the fstab
<br># UNCONFIGURED FSTAB FOR BASE SYSTEM<br>tmpfs &nbsp; &nbsp;&nbsp; /tmp &nbsp; &nbsp;&nbsp; tmpfs &nbsp; &nbsp;&nbsp; noexec,nosuid &nbsp; &nbsp;&nbsp; 0 &nbsp; &nbsp;  0<br>tmpfs &nbsp; &nbsp;&nbsp; /var/tmp &nbsp; &nbsp;&nbsp; tmpfs &nbsp; &nbsp;&nbsp; noexec,nosuid &nbsp; &nbsp;&nbsp; 0 &nbsp; &nbsp;  0<br><br>At this moment I can&#39;t reboot the veid, tomorrow I&#39;ll try and see if data in fstab remains in the text file after rebooting.
<br>
</blockquote></div><br>Ok,&nbsp; I can confirm it works as expected.<br>I rebooted the VeID a couple of times and the changes in fstab are kept.<br><br>Even though, wouldn&#39;t be nice if there was a parameter to vzctl <span class="q">
--bindmount_add </span>that could do like in virtuozzo.<br>I wouldn&#39;t be so difficult to create an script to replace the appropiate fields in the /vz/private/veid/root/fstab and add it as a function in the vzctl.<br>I&#39;ll gladly do the script if it was interestin.
<br><br>