Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Bind mounts

3 bytes removed, 12:12, 26 February 2010
Make the mount persistent
== Make the mount persistent ==
Put a mount script in OpenVZ configuration directory (<code>/etc/vz/conf/</code>) with the name <code>''CTID''.mount</code> (where <code>''CTID''</code> is container ID, like 777). This script will be executed every time you run <code>vzctl mount</code> or <code>vzctl start</code> for a particular container. If you need to to the same for all containers, use the global mount script named <code>vps.mount</code>.
From any mount script you can use the following environment variables:
Anonymous user