On 23 December 2016 at 13:30, Rafael Gago Castano RGC@hms.se wrote:
Hello.
I'm trying to start LXC Debian hacking sessions on our V2 LAVA server.
This is the related configuration:
That hack to get DHCP working is probably a sign that you need to setup bridging so that the LXC can sort out the networking for you. Look at: https://wiki.debian.org/LXC/SimpleBridge
And I'm mostly doing what's in here:
https://git.linaro.org/lava-team/hacking-session.git
The problem I'm facing is that inside a script the environment seems to be broken, so there is no way to copy to ~/.ssh.
The container is a bare debootstrap, no users are created.
If I mimic the lava LXC machine creation commands (lxc-create) and I attach to the machine I get a sane environment. Is this expected behavior?
A hacking session inside an LXC is of very limited use - a full VM using QEMU is generally a much better idea - that will also need network bridging support using the tap netdevice to allow users to login to the session.