On 27/01/2016 14:36, Gerd Hoffmann wrote: > Hi, > >> Hmm. Is there a HOWTO for setting up a 32-bit container? Containers >> aren't something I've had the time to become familiar with so far. > > systemd-nspawn manpage has a few examples in the examples section (and > is worth reading anyway). > > For fedora it boils down to "yum/dnf --installroot=/dest/dir > groupinstall core", possibly with --config $cfgfile where you list your > repos in $cfgfile, especially when installing fedora on rhel so you > don't want the host repos. > > Use "systemd-nspawn -D /dest/dir passwd" to set the root password, > otherwise you can't login. Boot with "systemd-nspawn -bD /dest/dir". > With --bind you can make host directories visible within the container. > > For debian there is debootstrap which you can use (is packaged for > fedora and epel too).
With lxc, you can just do: sudo lxc-create -n my_container -t debian -- --arch i686 and then sudo lxc-start -n my_container -F you need the lxc-templates package. The fedora template (-t fedora) seems broken. > Alternatively you can fetch a cloud image and run that. > > HTH, > Gerd > Laurent