Error running guix system container

  • Done
  • quality assurance status badge
Details
2 participants
  • Julien Lepiller
  • Ludovic Courtès
Owner
unassigned
Submitted by
Julien Lepiller
Severity
important
J
J
Julien Lepiller wrote on 23 Sep 2018 22:46
(address . bug-guix@gnu.org)
20180923224618.310784fc@lepiller.eu
Hi, I built a container on a foreign distro using:

guix system container config.scm

but then, when I run it most services can't start. From inside the
container I tried to start the postgresql service I configured and got
this message from the shepherd:

herd: exception caught while executing 'start' on service 'udev':
In procedure open-file: No such file or directory:
"/run/booted-system/kernel/lib/modules/4.9.0-7-amd64/modules.devname"

From IRC, I got this hint:

22:32 < civodul> roptat: re module loading, i was referring to what
(gnu build linux-boot) does
22:33 < civodul> see make-static-device-nodes, which is itself called
from the udev 'start' method
22:35 < civodul> see commit 86e6b4c93104e2f83429b9e12f15ed62341289b4
22:35 < civodul> i suppose we could skip that in containers
L
L
Ludovic Courtès wrote on 26 Sep 2018 11:38
control message for bug #32814
(address . control@debbugs.gnu.org)
874lec4n00.fsf@gnu.org
severity 32814 important
L
L
Ludovic Courtès wrote on 26 Sep 2018 23:43
Re: bug#32814: Error running guix system container
(name . Julien Lepiller)(address . julien@lepiller.eu)(address . 32814-done@debbugs.gnu.org)
8736tw0wa3.fsf@gnu.org
Julien Lepiller <julien@lepiller.eu> skribis:

Toggle quote (12 lines)
> Hi, I built a container on a foreign distro using:
>
> guix system container config.scm
>
> but then, when I run it most services can't start. From inside the
> container I tried to start the postgresql service I configured and got
> this message from the shepherd:
>
> herd: exception caught while executing 'start' on service 'udev':
> In procedure open-file: No such file or directory:
> "/run/booted-system/kernel/lib/modules/4.9.0-7-amd64/modules.devname"

Commit 23784f0c3342a0fab5bf2a1c15c300b9f0856872 fixes it in a crude but
efficient way. :-)

Commit 09b7300c01a8e7100467c6caae9b2c8d8e673971 also helps.

From there I can spawn a ‘guix system container’ script just fine. The
tty services fail to start, but that’s fine, we don’t need them; you can
still enter the container namespaces, run “herd status” etc.

Thanks,
Ludo’.
Closed
?