OpenVZ Forum


Home » Mailing lists » Users » OS/app in the OpenVZ container
Re: OS/app in the OpenVZ container [message #44038 is a reply to message #44034] Thu, 10 November 2011 10:33 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

On 11/10/2011 11:29 AM, Tommy wrote:
> Hi All,
>
> I'm doing some research on processing virtual machine recently.
>
> As I what know now, I think OpenVZ vps runs the same OS kernel as the
> host system.
> The vps is a group of processes which are forked on the host system.
> In the OpenVZ container, thera are some processes to run an os.
> Is it possible to run only one App in the container instead of the os
> based on the host os? such as a media player?
> what are work should I need to do mainly?
> could you give me some suggestion?

It's pretty simple. What OpenVZ kernel does it creates a container and
runs /sbin/init inside it. What goes next is up to that particular
/sbin/init. If you need to run an app let /sbin/init run just it, or let
this app be /sbin/init (but bear in mind there will be no child reaper
as in usual linux system so you might need to take some extra care about
zombie processes).


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
 
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: Fri Jun 20 05:49:22 GMT 2025

Total time taken to generate the page: 0.04478 seconds