<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 11/10/2011 01:29 PM, Stoyan Stoyanov wrote:
    <blockquote
      cite="mid:A2A34351-AD89-45BC-824C-02B244DDCB9C@maxtelecom.bg"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div class="BodyFragment">
        <font size="2">
          <div class="PlainText">If thats right you just need to isolate
            the application process/ <br>
            processes ? So may be the best way is just chroot it in the
            standard  <br>
            linux way.</div>
        </font></div>
    </blockquote>
    <br>
    This way you will only isolate the file system (and not in totally
    inescapable way I must add). chroot() is essentially a file system
    namespace, and there are a dozen of others in OpenVZ, and then a
    dozen of resource limits.<br>
    <br>
    <blockquote
      cite="mid:A2A34351-AD89-45BC-824C-02B244DDCB9C@maxtelecom.bg"
      type="cite">
      <div class="BodyFragment"><font size="2">
          <div class="PlainText"> of course u can set limits too, but i
            don't thing it's  <br>
            possible in os-virtualization level to run  only
            application?<br>
          </div>
        </font></div>
    </blockquote>
    <br>
    It is possible. As I noted in another reply to this thread, OpenVZ
    kernel just runs /sbin/init inside the container and assumes that
    init will handle the rest.<br>
    <br>
    <blockquote
      cite="mid:A2A34351-AD89-45BC-824C-02B244DDCB9C@maxtelecom.bg"
      type="cite">
      <div class="BodyFragment"><font size="2">
          <div class="PlainText">
            <br>
            <br>
            On Nov 10, 2011, at 10:59 AM, Tommy wrote:<br>
            <br>
            &gt; 于 2011/11/10 16:22, Kirill Korotaev 写道:<br>
            &gt; Yes, it's possible to run a single app in a container.<br>
            &gt; The easiest way is to let the startup scripts setup
            /proc, /sysfs  <br>
            &gt; and the rest of environment and then specify in inittab
            or rc.X what  <br>
            &gt; to run on this particular runlevel.<br>
            &gt;<br>
            &gt; However, for media player you may also need to run some
            of X parts,  <br>
            &gt; not just a media player alone.<br>
            &gt;<br>
            &gt; Thanks,<br>
            &gt; Kirill<br>
            &gt;<br>
            &gt;<br>
            &gt;<br>
            &gt; On Nov 10, 2011, at 11:29 , Tommy wrote:<br>
            &gt;<br>
            &gt; Hi All,<br>
            &gt;<br>
            &gt; I'm doing some research on processing virtual machine
            recently.<br>
            &gt;<br>
            &gt; As I what know now, I think OpenVZ vps runs the same OS
            kernel as  <br>
            &gt; the host system.<br>
            &gt; The vps is a group of processes which are forked on the
            host system.<br>
            &gt; In the OpenVZ container, thera are some processes to
            run an os.<br>
            &gt; Is it possible to run only one App in the container
            instead of the  <br>
            &gt; os based on the host os? such as a media player?<br>
            &gt; what are work should I need to do mainly?<br>
            &gt; could you give me some suggestion?<br>
            &gt;<br>
            &gt; Thanks.<br>
            &gt;<br>
            &gt; Tommy<br>
            &gt; -- <br>
            &gt; Yours Sincerely!<br>
            &gt;<br>
            &gt;<br>
            &gt;<br>
            &gt; &lt;ATT00001.c&gt;<br>
            &gt;<br>
            &gt; _______________________________________________<br>
            &gt; Users mailing list<br>
            &gt; <a class="moz-txt-link-abbreviated" href="mailto:Users@openvz.org">Users@openvz.org</a><br>
            &gt; <a moz-do-not-send="true"
              href="https://openvz.org/mailman/listinfo/users">https://openvz.org/mailman/listinfo/users</a><br>
            &gt; hello,<br>
            &gt;<br>
            &gt; I think I didn't describe my question clearly<br>
            &gt;<br>
            &gt; If I want to start an app in the container, i should do
            the  <br>
            &gt; following step:<br>
            &gt;     1.create a container ,start it and there is an
            Guest OS running  <br>
            &gt; in the container now;<br>
            &gt;     2.enter the container and start the app I want;<br>
            &gt;<br>
            &gt; it acts as a system virtual machine<br>
            &gt;<br>
            &gt; what i want to do is :<br>
            &gt;     1.create the container<br>
            &gt;     2.start the app in the container<br>
            &gt;<br>
            &gt; this will act as a process virtual machine<br>
            &gt;<br>
            &gt; any suggestion?<br>
            &gt;<br>
            &gt; thanks<br>
          </div>
        </font></div>
    </blockquote>
    <br>
  </body>
</html>