<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>
> 于 2011/11/10 16:22, Kirill Korotaev 写道:<br>
> Yes, it's possible to run a single app in a container.<br>
> The easiest way is to let the startup scripts setup
/proc, /sysfs <br>
> and the rest of environment and then specify in inittab
or rc.X what <br>
> to run on this particular runlevel.<br>
><br>
> However, for media player you may also need to run some
of X parts, <br>
> not just a media player alone.<br>
><br>
> Thanks,<br>
> Kirill<br>
><br>
><br>
><br>
> On Nov 10, 2011, at 11:29 , Tommy wrote:<br>
><br>
> Hi All,<br>
><br>
> I'm doing some research on processing virtual machine
recently.<br>
><br>
> As I what know now, I think OpenVZ vps runs the same OS
kernel as <br>
> the host system.<br>
> The vps is a group of processes which are forked on the
host system.<br>
> In the OpenVZ container, thera are some processes to
run an os.<br>
> Is it possible to run only one App in the container
instead of the <br>
> os based on the host os? such as a media player?<br>
> what are work should I need to do mainly?<br>
> could you give me some suggestion?<br>
><br>
> Thanks.<br>
><br>
> Tommy<br>
> -- <br>
> Yours Sincerely!<br>
><br>
><br>
><br>
> <ATT00001.c><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:Users@openvz.org">Users@openvz.org</a><br>
> <a moz-do-not-send="true"
href="https://openvz.org/mailman/listinfo/users">https://openvz.org/mailman/listinfo/users</a><br>
> hello,<br>
><br>
> I think I didn't describe my question clearly<br>
><br>
> If I want to start an app in the container, i should do
the <br>
> following step:<br>
> 1.create a container ,start it and there is an
Guest OS running <br>
> in the container now;<br>
> 2.enter the container and start the app I want;<br>
><br>
> it acts as a system virtual machine<br>
><br>
> what i want to do is :<br>
> 1.create the container<br>
> 2.start the app in the container<br>
><br>
> this will act as a process virtual machine<br>
><br>
> any suggestion?<br>
><br>
> thanks<br>
</div>
</font></div>
</blockquote>
<br>
</body>
</html>