On Thu, Jul 30, 2015 at 05:51:19PM +0300, Cyrill Gorcunov wrote:
> On Thu, Jul 30, 2015 at 05:28:48PM +0300, Vladimir Davydov wrote:
> > > 
> > >  - scan node's /proc/tty/drivers and find the numbers for
> > >    "vzt_slave" driver, for example
> > > 
> > >    | [root@pcs7 ~]# cat /proc/tty/drivers 
> > >    | ...
> > >    | vzt_slave            /dev/vzts     252 0-11 console
> > >    | vzt_master           /dev/vztm     253 0-11 console
> > >    | ...
> > 
> > How is vzctl supposed to find which vztm corresponds to which VE?
> 
> The distinguishing between VEs is happening on "opener" context,
> ie join to VE cgroup, and open /dev/vztm1 the kernel calls
> for get_exec_env and allocates appropriate vzt pair.

i.e. if I want to open a container's console as a slave I have to put
myself into its ve cgroup first?
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to