On Mon, 2013-06-03 at 00:24 +0200, l...@usr.fi wrote: > This can do the job for archlinux:
> https://raw.github.com/tokland/arch-bootstrap/master/arch-bootstrap.sh Nice. That got me really really close. After running that I found I had to do a few more steps while chrooted in the new rootfs. Most of these were taken from /usr/share/lxc/templates/lxc-archlinux... ln -s /dev/null /etc/systemd/system/systemd-udevd.service ln -s /dev/null /etc/systemd/system/systemd-udevd-control.socket ln -s /dev/null /etc/systemd/system/systemd-udevd-kernel.socket ln -s /dev/null /etc/systemd/system/proc-sys-fs-binfmt_misc.automount # set default systemd target ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target Plus I had to add this: ls -s /usr/lib/systemd/systemd /sbin/init And change the root password. Had to include lxc.autodev=1 in the container config for systemd of course. That got me a container that starts and I can log into. Missing a lot of packages I would expect and the network is not working (yet) but I think some of that is just mount stuff and the minimalist set that was installed by your script. It certainly indicates how this could be done in the lxc-archlinux template. Regards, Mike > On 06/02/13 23:06, Michael H. Warfield wrote: > > A recent threat on the lxc-users reminded me that I'm lacking a few > > templates for testing under LXC. OpenVZ has a number of prebuilt > > containers (like CentOS) for download which some people (myself) have > > used to create containers where we don't have prebuilt templates or the > > lxc-templates we have do not function cross-distro. > > > > For example... > > > > On a Fedora host, I can create an Ubuntu container, thanks to deboot. > > > > On an Ubuntu host, I can create a Fedora container using feboot. > > > > I don't see an equivalent for Arch on either. I can tell you that > > trying to create an Arch container on Fedora host will fail miserably > > trying to use lxc-create. That template seems to be strictly > > like-on-like, which is sad. There is no Arch template in OpenVZ to even > > give me a start, so I'm out of luck there. How do we bootstrap an Arch > > system with packman on a system which does not have packman? > > > > Anyone with an Arch container prebuilt template they could share? > > > > Regards, > > Mike > > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > _______________________________________________ > Lxc-devel mailing list > Lxc-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/lxc-devel > -- Michael H. Warfield (AI4NB) | (770) 985-6132 | m...@wittsend.com /\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/ NIC whois: MHW9 | An optimist believes we live in the best of all PGP Key: 0x674627FF | possible worlds. A pessimist is sure of it! ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel