[lxc-users] LXC autostart fails

Viktor Trojanovic viktor at troja.ch
Mon Nov 23 21:51:23 UTC 2015



On 23.11.2015 14:04, Serge Hallyn wrote:
> Quoting Viktor Trojanovic (viktor at troja.ch):
>> Hi list,
>>
>> I just noticed that my (only) LX container is not starting up anymore,
>> although autostart is set to yes and it starts just fine if done
>> manually (using lxc-start -n container -d).
>>
>> I checked the logs. There is nothing in the system journal itself, and
>> just two error messages in the lxc-log but they seem to appear even
>> when I manually start the container.
>>
>>        lxc-start 1448201368.805 ERROR    lxc_utils -
>> utils.c:setproctitle:1461 - Invalid argument - setting cmdline failed
>>        lxc-start 1448201368.983 ERROR    lxc_utils -
>> utils.c:open_without_symlink:1626 - No such file or directory - Error
>> examining fuse in /usr/lib/lxc/rootfs/sys/fs/fuse/connections
> Oh, interesting - does it help if you add fuse.service to the
> Wants in /lib/systemd/system/lxc.service Wants ?
Hi Serge,

I added an additional wants=fuse.service in the lxc.service unit but 
that has no impact, the error message remains. Though I would expect 
that as I don't have fuse installed. Is that a new requirement for LXC?

Anyway, as for my problem, it turns out that the systemd 
lxc-auto.service was not enabled. I must have disabled it at some point, 
maybe for testing purposes, forgetting to re-enable it. Except for these 
error logs, and an lxc-console problem described in 
https://github.com/lxc/lxc/issues/520, it seems to work.

Viktor


More information about the lxc-users mailing list