Re: [Users] OS/app in the OpenVZ container

2011-12-06 Thread Enrico Weigelt
* Kir Kolyshkin wrote: > 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

Re: [Users] OS/app in the OpenVZ container

2011-11-14 Thread Stoyan Stoyanov
You may wonna take a look at this: http://qubes-os.org/Architecture.html On Nov 10, 2011, at 12:36 PM, Kir Kolyshkin wrote: On 11/10/2011 01:29 PM, Stoyan Stoyanov wrote: If thats right you just need to isolate the application process/ processes ? So may be the best way is just chroot it in the

Re: [Users] OS/app in the OpenVZ container

2011-11-10 Thread Roberto Mello
2011/11/10 Tommy > > I think I didn't describe my question clearly > > 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 2. vzctl exec Where can be either an application or a script

Re: [Users] OS/app in the OpenVZ container

2011-11-10 Thread Matthew Franz
Tommy, You might want to want to look at LXC as well. Although i agree that is is pretty much impossible to run a single process, but it all depends what you are trying to do... (BTW, don't mean to start an LXC vs. OpenVZ flame was, because the features/tools in VZ are much more mature but becau

Re: [Users] OS/app in the OpenVZ container

2011-11-10 Thread Kir Kolyshkin
On 11/10/2011 01:29 PM, Stoyan Stoyanov wrote: If thats right you just need to isolate the application process/ processes ? So may be the best way is just chroot it in the standard linux way. This way you will only isolate the file system (and not in totally inescapable way I must add). chroot

Re: [Users] OS/app in the OpenVZ container

2011-11-10 Thread Kir Kolyshkin
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 containe

Re: [Users] OS/app in the OpenVZ container

2011-11-10 Thread Stoyan Stoyanov
If thats right you just need to isolate the application process/ processes ? So may be the best way is just chroot it in the standard linux way. of course u can set limits too, but i don't thing it's possible in os-virtualization level to run only application? On Nov 10, 2011, at 10:59 AM,

Re: [Users] OS/app in the OpenVZ container

2011-11-10 Thread Tommy
于 2011/11/10 16:22, Kirill Korotaev 写道: > Yes, it's possible to run a single app in a container. > The easiest way is to let the startup scripts setup /proc, /sysfs and the > rest of environment and then specify in inittab or rc.X what to run on this > particular runlevel. > > However, for media

Re: [Users] OS/app in the OpenVZ container

2011-11-10 Thread Kirill Korotaev
Yes, it's possible to run a single app in a container. The easiest way is to let the startup scripts setup /proc, /sysfs and the rest of environment and then specify in inittab or rc.X what to run on this particular runlevel. However, for media player you may also need to run some of X parts, no

[Users] OS/app in the OpenVZ container

2011-11-09 Thread Tommy
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 pos