[Lxc-users] Udev in containers

Serge Hallyn serge.hallyn at canonical.com
Thu Jan 24 18:33:35 UTC 2013


Quoting Lars Kellogg-Stedman (lars at oddbit.com):
> Howdy all,
> 
> I've run into an issue with systemd and udev and LXC containers; I
> originally posted this to the systemd-devel list
> (http://lists.freedesktop.org/archives/systemd-devel/2013-January/008362.html),
> but I'm curious if anyone here has thoughts on the issue.
> 
> I have a systemd unit file that depends on
> sys-subsystem-net-devices-eth0.device, which in theory should be
> generated by udev...but apparently its not.  systemd-udevd is running,
> but this dependency is never satisfied.  I'm assuming that the problem
> is some interaction with udevd and the way LXC handles devices.
> 
> Has anyone here run into this before?  Any thoughts on solutions?

Perhaps because eth0 exists before systemd and udev start?

doing udevadm trigger --action=add would cause the uevent to be
resent, but unfortunately will also do so for all host devices,
causing host devs like keyboard and audio to be reset.

-serge




More information about the lxc-users mailing list