You are not logged in.

#1 2009-03-31 15:58:52

tomyeo
Member
Registered: 2009-03-31
Posts: 2

Anyone has any luck with archlinux in lxc?

I've been trying to get archlinux to run in lxc (Linux container, you'll need kernel 2.6.29 and lxc userspace tool), but was stuck at udevsettle while booting. Even if I could bypass it with control-c, it wont start agetty at vc/8. I did manage to boot a minimal debian to login though, but I want my archlinux container! smile

Last edited by tomyeo (2009-04-01 03:06:55)

Offline

#2 2009-04-05 01:07:08

dschauer
Member
Registered: 2008-02-28
Posts: 95

Re: Anyone has any luck with archlinux in lxc?

I've not looked into LXC yet, apart from reading up on it. I'd like to once 2.6.29 is official. In the mean time I've been using OpenVZ on Archlinux (several containers), see my post on the subject here: http://bbs.archlinux.org/viewtopic.php?id=65450

I want something though that does not require a custom kernel package, like OpenVZ does.

So all that to say that I don't have an answer to your question.

Offline

#3 2009-10-11 03:11:28

dschauer
Member
Registered: 2008-02-28
Posts: 95

Re: Anyone has any luck with archlinux in lxc?

Ok, I finally got around to trying and had the same issue. I chrooted into the container and removed udev via pacman.
I'm now stuck on there not being any tty devices.

Offline

#4 2009-10-11 13:40:20

dschauer
Member
Registered: 2008-02-28
Posts: 95

Re: Anyone has any luck with archlinux in lxc?

Alright, I got a lot more working. I'll post the specifics later as I still have more to figure out.

In short, /etc/rc.sysinit is not needed, and one needs to point inittab to something else in the line that had pointed to it.

I started out by changing /etc/rc.sysinit as follows:

rc::sysinit:/etc/rc.sysinit

to

rc::sysinit:/etc/rc.sysinit.short

where rc.sysinit.short was basically just:

#!/bin/bash

bash --login -i

When it is all said and done, there won't be much needed in the replacement script and the

rc::sysinit:/etc/rc.sysinit

line in /etc/inittab might be able to removed altogether, and the arch container will jump straight into starting services specified in /etc/rc.conf.

Offline

#5 2009-10-18 00:44:46

dschauer
Member
Registered: 2008-02-28
Posts: 95

Re: Anyone has any luck with archlinux in lxc?

Well, I figured it out a lot more and created a HOWTO on the subject: http://lxc.teegra.net/

Offline

Board footer

Powered by FluxBB