upstart as init in a chroot

Brian J. Murrell brian at interlinx.bc.ca
Mon Mar 26 21:46:33 BST 2007


On Tue, 2007-27-03 at 00:35 +0400, Kir Kolyshkin wrote:
> 
> Well, it fact it's more like partitioning. You can think of OpenVZ as an 
> advanced and secure chroot -- it is a very advanced chroot(), after all, 
> since all the virtual environments (VEs) run under the very same, single 
> kernel instance, and there is practically no performance degradation.

Ahhh.

> By the way, it solves the problem of PID #1 -- inside a VE the PID of 
> init is 1.

Ahhh.  Cool.

> What is the purpose of running some daemons under chroot()? What do you 
> want to achieve?

The machine I want to run this on is a Mandriva "all-in-one" server with
lots of services which I want to migrate to Ubuntu.  Rather than having
a "flag day" where I (attempt to) reconfigure all services and hope it
all works and not have to run around in a panic chasing one problem
after another to get the server back up and running I'd like to do it
once service at a time.

So service by service, I install the packages in my chroot (which is
mounted LVM lvs) and configure them and when happy that it's working
turn up the service in the chroot and turn off the service in the real
root.  Once all services are done, I can actually boot from the Ubuntu
LVs natively and be relatively sure that everything is going to work.

This is a process I can approach over a period of days or weeks as time
allows rather than trying to do the whole thing in a small maintenance
window.

We should probably take this offline (feel free to if you response
doesn't really bear on upstart any more), but will openvz run a VE's
filesystems from LVM block devices on the host?

I'm assuming I'd have to patch my Mandriva (the host) kernel for openvz.
Not sure being able to run upstart in the "guest" is worth doing that or
not.

b.

-- 
My other computer is your Microsoft Windows server.

Brian J. Murrell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20070326/4ef765c3/attachment-0001.pgp 


More information about the upstart-devel mailing list