<br><br><div><span class="gmail_quote">2007/11/12, Joan <<a href="mailto:aseques@gmail.com">aseques@gmail.com</a>>:</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 <<a href="mailto:kir@openvz.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">kir@openvz.org</a>>:<span class="q"><br>> Joan wrote:<br>> > 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>> > I get " unrecognized option `--bindmount_add'" so I guess that in<br>> > openVZ it works different.<br>> > There was no message in the list related to this.<br>> > Anyone knows if there is a command for that?
<br>> ><br>> <br>> 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>> 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't find a solution, now I'm looking in the forums and there's something at least interesting:<br><a href="http://forum.openvz.org/index.php?t=msg&goto=12999&&srch=noexec#msg_12999" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://forum.openvz.org/index.php?t=msg&goto=12999&&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 /tmp tmpfs noexec,nosuid 0 0<br>tmpfs /var/tmp tmpfs noexec,nosuid 0 0<br><br>At this moment I can't reboot the veid, tomorrow I'll try and see if data in fstab remains in the text file after rebooting.
<br>
</blockquote></div><br>Ok, 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'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'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'll gladly do the script if it was interestin.
<br><br>