[Lxc-users] f16 update

Ramez Hanna rhanna at informatiq.org
Fri Mar 2 08:01:05 UTC 2012


hi,

here is is how o got f16 to work
* use the shipped fedora template to create the container
* chroot into the container rootfs
* touch /etc/fstab
* ln -s /dev/null /etc/systemd/system/udev.service
* unlink /etc/systemd/system/default.target
* ln -s  /lib/systemd/system/multi-user.taget /etc/systemd/system/default.target
if you want to setup a getty
* ln -s /lib/systemd/system/getty at .service
/etc/systemd/system/getty.target.wants/getty at tty1.service
* exit the chroot

if you had installed sshd in the rootfs then ssh is ready you can just ssh in

the problem i am facing right now is that i am unable to stop systemd
from mounting /dev
which leads to not possible to access the lxc-console because the
container is using tty* from the host and not the ones created by lxc
which also means that if you pick a higher tty (above the ones used by
your host and allow it in the cgroup conf) then you can access your
container's tty using the ctrl-alt-Fx keys

any one wants to contribute or comment please do
i will start working on the template now and soon send patches
-- 
BR
RH
http://informatiq.org




More information about the lxc-users mailing list