[Users] post start host side configuration for a vps

Vasily Tarasov vtaras at openvz.org
Wed Nov 29 03:28:57 EST 2006


Alastair Neil wrote:
> I would like to have some directories mounted within a VPS from the
> host node.  I can do this using a bind mount from the host, however I
> have not found any configurable way to achieve this automatically. 
> Ideally these mounts should be mounted before the VPS starts any
> services.  Anyone have any suggestions?
You can create script /etc/vz/conf/101.mount
This script will be executed before VE start, so you can add mounts there.

Typical content of 101.mount:
#! /bin/sh
mount -n -o bind,ro /shared/directory /vz/root/101/shared

HTH,
Vasily.
>
>
> rgds Alastair Neil
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://openvz.org/mailman/listinfo/users
>   



More information about the Users mailing list