[Users] OS/app in the OpenVZ container

Roberto Mello roberto.mello at gmail.com
Thu Nov 10 08:13:00 EST 2011


2011/11/10 Tommy <thfbjhkhtdx at gmail.com>

>
> I think I didn't describe my question clearly
>

<snip>


>  what i want to do is :
>     1.create the container
>     2.start the app in the container
>
> this will act as a process virtual machine
>

1. vzctl start <container_id>
2. vzctl exec <container_id> <executable>

Where <executable> can be either an application or a script that will a)
run the application, b) detach from the shell. The <executable> has to be
present inside the container.

Another (possibly simpler) way is to simply have the executable be started
by one of your startup scripts. That way you wouldn't even have to worry
about detaching from the shell.

Roberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openvz.org/pipermail/users/attachments/20111110/61bc48a2/attachment.html


More information about the Users mailing list