Hi. Kernel dilettante and LXC newbie here.
I am very happy with Raspbian as a distro, reliability and performance wise. I really like the quality of this distribution.
I have a lingering issue with network isolation, I won't expose it here but it has led me to exploring virtualization on Raspbian.
KVM/Qemu that I am used to doesn't seem to be an option. So I started looking at LXC which seemed to cover all my requirements and more.
I took the latest kernel sources, turned all the cgroup knobs, and got a 4.4.11 kernel that looked to be fully LXC-enabled. Creating my first test machine, I've met 3 issues:
- LXC wants to use a "template" to create an instance and I couldn't find a template that would allow me (AFAIK) to run raspbian-in-raspbian. I could install debian-in-raspbian, which seemed to pull a lot of stuff. Besides, I prefer Raspbian as a distro.
- Running any sort of container aborted with umount failure. It tried running instances created with both sshd (which looked pretty basic), and jessie templates.
- The literature I've found about LXC, esp. LXC on raspbian, all date back 2013 or so.
The odds for operator error as cause of failure are certainly overwhelming. But the learning curve seems unusually difficult for a Pi project, and this gives me a pause. Questions:
- Does the scope of Raspbian include virtualization?
- In 2016 onwards, what is the technology of choice to virtualize an OS (ARM only): LXC, LXD, ...?
Thanks in advance for your insights.