From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id uN2/BARTOWXxUAAAauVa8A:P1 (envelope-from ) for ; Wed, 25 Oct 2023 19:40:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uN2/BARTOWXxUAAAauVa8A (envelope-from ) for ; Wed, 25 Oct 2023 19:40:20 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AA1FF68253 for ; Wed, 25 Oct 2023 19:40:19 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=l2H1zZ30; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698255620; a=rsa-sha256; cv=none; b=sFDTIqVmcn5krX7ZJYi1zUO87ZMDgY3JxtjY5chFg2vxeqGXRAz5hjG/XJYHSY8UZ82Axq 4kQUNgzatufYmQSaAX+soYK5u0yer+45e9BhWMTaKNRbNcwGwJYcpwcWY8B7nLeD/Tj6oz VoAWl5vu8qeh7fE3qZeYiCKLs0KOLlu8MU1KQ8HJ+F42cRnNcJsMsA0Gzk2xEyDun0Npu7 97EIPe2DAg/jLe5ZmGzSwuaCzizly426KA2y/NCkH/WG7YCSc2vY/jfM7uZrsTd3Un09yd C/adOefSqSJcP28HCCqlpFpL2mN0CGwzLkpr1oaoDa6PyqiX6TtbUzaKnqIQDg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=l2H1zZ30; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698255620; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=YGSU5XflFdgi0rYD1jJJDq2Mw+CE3Dn/ALnnUvgfd1w=; b=CD7TttcrwjMKf9+gi8PTtnedmnR9+kD/rZ9Pzk5JbRman877gkG6M6tZqxevhJQd0PRZom /IMfoioQ5fy3VS6JdtjWPjk5TwNCsUmpMObIK0510o/rPy/S73ls3BwGOV7IjWv4eCOrQM 8jMvT0xqWW99YowFTHZoy59XyVSP0vhbi2BUq68XoKoVulU0dyQs74RYxlQ4klhpvzyxil WPXBPFZqbZXOMAlNQtnIoHjak9P8GNHpvIJ52ETzITk4BGHE27YcUPi7hDLQtan9Sd5T5/ mGVz8kcAXCys+e/Tsdk2ZTXjYA7XXeQ1yl92S0gkvZjZFcRBghYjSodOE+Mozg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvhr3-0008Ox-NB; Wed, 25 Oct 2023 13:39:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvhqy-0008Oe-BU for help-guix@gnu.org; Wed, 25 Oct 2023 13:39:37 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvhqv-000575-Qa for help-guix@gnu.org; Wed, 25 Oct 2023 13:39:36 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id BC23E240027 for ; Wed, 25 Oct 2023 19:39:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1698255571; bh=kAFZHgkfym86zO00wLTXmG523p4ZELmmFNMo3cK6Www=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=l2H1zZ305wD0MEA2C8LPzqSoOA1PDnuiLJ4TYg2Ix0G6cpqpFmDQAHPQuBI1/+4YM U58VHaOk9MLV3J6OhXwxxVCLHNU/bUtUysFndnqupe7N6RMrVoyvv8kYIUYvqYK3h/ P7/J1bDnySypgVQkufdmYziNhJXQ30T/FzfBi4MJn2msv+iKCjxbquYWewpPyJvoK4 hzkNOTFgN77yP2Yxa7hbrGpn6XVGCS0Ci0FODg9oaC4oucM5ZrqgrBMz5L/WqHtS8k mOyCTVG8aKyF1rUhI8PzR8zfjM2N4yivl/SNPb3YloKxeagVBaZRSApp07KXXvu3b4 UCEuDhCPZn00w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SFx4y61xYz6txt; Wed, 25 Oct 2023 19:39:30 +0200 (CEST) From: Fredrik Salomonsson To: wolf Cc: help-guix Subject: Re: Anyone got distrobox working? In-Reply-To: References: <87zg071wmt.fsf@d2.com> Date: Wed, 25 Oct 2023 17:39:28 +0000 Message-ID: <8734xyy52n.fsf@d2.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=plattfot@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.82 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Queue-Id: AA1FF68253 X-Spam-Score: -8.82 X-TUID: /I093jUyOtN+ Hi, wolf writes: > Podman does work, but there is no built in service to configure it correc= tly. > Snippet from my system configuration: > > (simple-service 'subugid-config etc-service-type > `(("subuid" ,(plain-file "subuid" "wolf:100000:65536\= n")) > ("subgid" ,(plain-file "subgid" "wolf:100000:65536\= n")))) > (simple-service 'containers etc-service-type > `(("containers/storage.conf" ,(plain-file "containers= -storage.conf" "[storage]\ndriver =3D \"btrfs\"\n")) > ("containers/policy.json" ,(local-file "files/polic= y.json")))) > > And files/policy.json: > > { > "default": [ > { > "type": "insecureAcceptAnything" > } > ], > "transports": > { > "docker-daemon": > { > "": [{"type":"insecureAcceptAnything"}] > } > } > } > > After that, guix shell podman -- podman run --rm hello-world . > Thanks for sharing you configuration. I think I got podman working with the following system services: ```scheme (simple-service 'subugid-config etc-service-type `(("subuid" ,(plain-file "subuid" "plattfot:100000:65= 536\n")) ("subgid" ,(plain-file "subgid" "plattfot:100000:65= 536\n")))) (simple-service 'containers etc-service-type `(("containers/storage.conf" ,(plain-file "containers= -storage.conf" "\ [storage] driver =3D \"btrfs\" ")) ("containers/policy.json" ,(plain-file "policy.json" "\ { \"default\": [ { \"type\": \"insecureAcceptAnything\" } ], \"transports\": { \"docker-daemon\": { \"\": [{\"type\":\"insecureAcceptAnything\"}] } } } ")) ("containers/registries.conf" ,(plain-file "registr= ies.conf" "\ unqualified-search-registries =3D ['quay.io', 'docker.io'] [[registry]] location=3D'localhost:5000' insecure=3Dtrue ")))) ``` The hello-world from docker.io works, the one from quay.io does not. But might be an issue on their side. >> Has anyone got distrobox working and if so how? > > No idea about distrobox, but the above should get the podman working. I got further with distrobox now when podman seems to be correctly setup. ``` guix shell distrobox -- distrobox create -i docker.io/library/ubuntu:22.04 ``` Works, but I cannot enter the container: ``` $ guix shell distrobox conmon runc -- distrobox enter ubuntu-22-04 Container ubuntu-22-04 is not running. Starting container ubuntu-22-04 run this command to follow along: /gnu/store/yph7wgfp922w7ck6pclgq10mcg7j5gxi-podman-4.4.1/bin/podman logs -= f ubuntu-22-04 Error: could not start entrypoint. + '[' -n '' ']' + printf 'distrobox: Installing basic packages...\n' ++ basename /gnu/store/3g4msmrx9sswxzccv578h5cyk4a80zpg-bash-5.1.16/bin/bash + shell_pkg=3Dbash + '[' bash =3D ash ']' + '[' 0 -ne 0 ']' + test -x find + test -x apk + test -x apt-get + test -x dnf + test -x emerge + test -x microdnf + test -x pacman + test -x slackpkg + test -x swupd + test -x xbps-install + test -x yum + test -x zypper + printf 'Error: could not find a supported package manager.\n' + printf 'Error: could not set up base dependencies.\n' + exit 127 + '[' 127 -ne 0 ']' + printf 'Error: An error occurred\n' distrobox: Installing basic packages... Error: could not find a supported package manager. Error: could not set up base dependencies. Error: An error occurred ``` Looks like there are some missing OCI binaries, I used `--verbose` and rerun it and saw this in the output: ``` $ guix shell distrobox conmon runc -- distrobox enter ubuntu-22-04 --verbose =E2=80=A6 DEBU[0000] [graphdriver] trying provided driver "btrfs"=20 DEBU[0000] Initializing event backend file=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 DEBU[0000] Configured OCI runtime crun-wasm initialization failed: no valid= executable found for OCI runtime crun-wasm: invalid argument=20 DEBU[0000] using runtime "runc" from $PATH: "/gnu/store/vfgxc5n2ygac691iivf= jmd3nn9ywk9wx-profile/sbin/runc"=20 DEBU[0000] Configured OCI runtime kata initialization failed: no valid exec= utable found for OCI runtime kata: invalid argument=20 DEBU[0000] Configured OCI runtime youki initialization failed: no valid exe= cutable found for OCI runtime youki: invalid argument=20 DEBU[0000] Configured OCI runtime ocijail initialization failed: no valid e= xecutable found for OCI runtime ocijail: invalid argument=20 DEBU[0000] Configured OCI runtime runj initialization failed: no valid exec= utable found for OCI runtime runj: invalid argument=20 DEBU[0000] Configured OCI runtime runsc initialization failed: no valid exe= cutable found for OCI runtime runsc: invalid argument=20 DEBU[0000] Configured OCI runtime krun initialization failed: no valid exec= utable found for OCI runtime krun: invalid argument=20 DEBU[0000] Using OCI runtime "/gnu/store/gadwcvv4ynlk267wisxcdl91kjzqmc49-c= run-1.4.5/bin/crun"=20 INFO[0000] Setting parallel job count to 73=20=20=20=20=20=20=20=20=20=20= =20=20=20 + '[' -n '' ']' + printf 'distrobox: Installing basic packages...\n' =E2=80=A6 ``` So I'll keep digging when I have time. --=20 s/Fred[re]+i[ck]+/Fredrik/g