OpenVZ Forum - RDF feed
type: channel
items: post start host side configuration for a vps
items: Re: post start host side configuration for a vps

post start host side configuration for a vps
type: item
description: 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? rgds Alastair Neil
creator: ajneil
date: 2006-11-28T20:48:46-00:00

Re: post start host side configuration for a vps
type: item
description: 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 > > > ------------------------------------------------------------ ------------ >
creator: Vasily Tarasov
date: 2006-11-29T08:28:57-00:00

Re: post start host side configuration for a vps
type: item
description: Vasily Tarasov wrote: > 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 > More details are in OpenVZ User's Guide, around page 100 or so. The guide itself is at http://download.openvz.org/doc/ (in case you missed it). Regards, Kir.
creator: kir
date: 2006-11-29T10:08:08-00:00

Re: post start host side configuration for a vps
type: item
description: On 11/29/06, Kir Kolyshkin <kir@openvz.org> wrote: > > Vasily Tarasov wrote: > > 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 > > > More details are in OpenVZ User's Guide, around page 100 or so. > The guide itself is at http://download.openvz.org/doc/ (in case you > missed it). > > Regards, > Kir. > Ahh I see it it is on page 88 in the pdf I have. Thanks for the pointer.
creator: ajneil
date: 2006-11-29T16:08:49-00:00