OpenVZ Forum


Home » Mailing lists » Users » OS/app in the OpenVZ container
Re: OS/app in the OpenVZ container [message #44046 is a reply to message #44036] Thu, 10 November 2011 13:13 Go to previous messageGo to previous message
rmello is currently offline  rmello
Messages: 15
Registered: October 2007
Junior Member
2011/11/10 Tommy <thfbjhkhtdx@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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Heavy Disk IO from a single VM can block the other VMs on the same host
Next Topic: More on making an OpenVZ template
Goto Forum:
  


Current Time: Sat Aug 16 21:18:38 GMT 2025

Total time taken to generate the page: 0.23678 seconds