From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: Building Docker images of GuixSD Date: Mon, 30 Oct 2017 19:59:08 -0700 Message-ID: <87tvyg9g5f.fsf@gmail.com> References: <87bmldavre.fsf@gmail.com> <87efq8pwrf.fsf@gnu.org> <87mv4viknx.fsf@gmail.com> <87she5kz6i.fsf@gmail.com> <87inez3tnb.fsf_-_@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9Mlp-000629-9m for guix-devel@gnu.org; Mon, 30 Oct 2017 22:59:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9Mlo-0004B9-Gw for guix-devel@gnu.org; Mon, 30 Oct 2017 22:59:17 -0400 In-Reply-To: <87inez3tnb.fsf_-_@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\?\= \=\?utf-8\?Q\?\=22's\?\= message of "Sat, 28 Oct 2017 22:27:20 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Chris Marusich skribis: > >> [ 1.345843] FS-Cache: Loaded >> [ 1.362140] 9pnet: Installing 9P2000 support >> [ 1.366118] 9p: Installing v9fs 9p2000 file system support >> [ 1.368730] FS-Cache: Netfs '9p' registered for caching >> configuring QEMU networking... >> loading '/gnu/store/jy509dgcsz82y13fmizv2sqaj90s1vfg-linux-vm-loader'... >> ERROR: In procedure dynamic-link: >> ERROR: In procedure dynamic-link: file: "/gnu/store/hwygv5jwd47amhp1m67i= y3bkvxqjlbhm-libgcrypt-1.8.1/lib/libgcrypt", message: "file not found" > > The code above is running in the initrd, which means that it=E2=80=99s ex= ecuted > by =E2=80=98guile-static-stripped=E2=80=99, which does not support dlopen= ing: Glad I asked! It would have required much more fumbling around before I had even though about a possibility like that. It makes sense now. > So we should either make a big initrd with the dynamically-linked >Guile, > but then we may need to pass =E2=80=9C-m 512=E2=80=9D or similar to qemu= =E2=80=A6 I will try this. I'm running the gexp in a linux vm is only because I need permission to create some of the device files. If you try to run this as a normal builder (e.g., using gexp->derivation), the build will fail because the builder tries to create device nodes and lacks permission to do so. I might also look into building the image in a container, since we also have some build-side container logic available (e.g., call-with-container). I'll let you know how it goes. > Or we mount the host store over 9p and exec a dynamically-linked Guile > from there. I understand hat by "9p" you mean to share the file system with the VM, but I don't quite understand what this option entails. If the initrd doesn't use the right Guile, why will sharing the store via 9p work? Do you mean to exec directly somehow, instead of using an initrd...? =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAln35v0ACgkQ3UCaFdgi Rp2/Mg/6AqUCsVEx2A8G+khZCg7W8EiD5cPlxAOrHJ2Ye5ClmadwYgS3GXg086xU WUZl57UkBx3hhd64lOv55mtpJ1LYfHcoV7O0OjolovZWp24riXKuwU7QTPU9qkt9 sr4VWoJ+U3ZmpSNNAyLc7JDSIJ0sth2rsJFum/uduyLEdCSywmJ4zWlk0EiTbmty 4ufULnfdCYJHAkk/0dGS6e7lwxBnq4YKPpflJFBJ4hWrFFoGojCnjga70OqcPIma cr7LKbX4d/xgtbDl7KsX8lld+hU3oRcM7eF8ZgtrNLO6tWP8nvQju6/wcuz0ENew Rea3aLRDOYoc4WOErOVGwR4cSA8/Id5JvDrPq7KahfYcUKRvFpOuah63p1n6OG0b aWsPUOKnyDSmDalL/ENfiHZi50N3Gyq9Unf7q0b+4an4KRihi3FunxDjjHbrTD73 k5O8zUI+qiMn2t57cwZynIFFMsjJE2YAlNMXVAFk5kd9XKmnKn+jW1OX5Y/csZws XCBzQL6E7dEMTFoIc6Hq1xw9+ljU/bBFEsjRCWvVAf4FrNeCUO61kE8wpT79P98D nn2DceBd85v70skb8O2rHxCVH4P6X4zNaoa9Ao0KK3qcM1+CkkVa0V8W/OSw3ioE 13oYAW1Ir4EKQZb2oaiJsYZ48JqMQywGh6T8jiS6BQWCuMsYAQM= =RgOG -----END PGP SIGNATURE----- --=-=-=--