LXC: Failed to talk to init daemon and other errors
Hello!
I have an issue with LXC. I create under root a new container with command "lxc-create -n c7 -t download", then choose centos-7-amd64. It installs it. After that, if I do not setup network settings, I can lunch it with "lxc-start -d -n c7" command and even attach to it, but I cannot almost do anything. For example, if I try reboot: Quote:
Quote:
Container config file: Quote:
|
Quote:
Quote:
Quote:
|
I just remembered that I already had some host side network preparation already done so that networking for new containers just works. Have a look at http://www.darlo.tv/lxc-14.2/network...slackware.html - set and forget (I did). The article mentions unprivileged containers but that's just because it's part of a series - it works for privileged containers too.
chris |
I am sorry for long time no answer. I just got sick.
Chris, thank you for your advice and very useful article there. I will try to follow it. And by "What do you mean by 'if I do not setup network settings'" I meant about configuring network settings in the lxc's config file: Quote:
|
Quote:
Code:
chris@d6:~$ cat /etc/lxc/default.conf Code:
... BTW an alternative location for that configuration is ~/.config/lxc/default.conf chris |
Hello, Chris!
I did everything according to your article and now I can run container with user privileges. But I still cannot do anything in my guest system (just like when I run lxc containers under root) and get messages like: Quote:
|
Quote:
Since you have the same problem with a second container, suspicion next falls on the host system - is it a stock 14.2 system (all packages installed, no funny business in /etc/rc.d/* files, etc.)? In the meantime you could try running the lxc-start in the foreground e.g. Code:
sudo lxc-start -n c7 -F Code:
sudo lxc-start -n c7 -F -o /tmp/c7.log Hopefully one of these options may give some indication of what's going on. chris |
Hello, Chris!
My log is also empty, but output of your command is Quote:
It (seems) started to work under root and under user after I've done: Quote:
By the way, I found solution here: https://j2h2.com/entry/alpine-linux-...ainers-round-2 |
Interesting. I don't see that error in 14.2 where there is no /sys/fs/cgroup/systemd directory.
In 14.2, lxc is at version 2.0.1 whereas current has lxc-2.0.9 - maybe it's just a version issue ... Perhaps it's worth raising this issue in the "Requests for -current" thread to raise awareness there, just in case Pat & crew stopped watching this thread? chris |
All times are GMT -5. The time now is 11:45 AM. |