From unknown Tue Aug 19 14:21:50 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#69572] [PATCH] gnu: Add gvisor-tap-vsock. Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 05 Mar 2024 23:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69572 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69572@debbugs.gnu.org Cc: Tomas Volf <~@wolfsden.cz> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170968261818340 (code B ref -1); Tue, 05 Mar 2024 23:51:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Mar 2024 23:50:18 +0000 Received: from localhost ([127.0.0.1]:49275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rheY5-0004li-V7 for submit@debbugs.gnu.org; Tue, 05 Mar 2024 18:50:18 -0500 Received: from lists.gnu.org ([209.51.188.17]:37852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1rheY4-0004lb-LS for submit@debbugs.gnu.org; Tue, 05 Mar 2024 18:50:17 -0500 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 <~@wolfsden.cz>) id 1rheXZ-0001Oy-Dt for guix-patches@gnu.org; Tue, 05 Mar 2024 18:49:45 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1rheXW-0003fQ-0y for guix-patches@gnu.org; Tue, 05 Mar 2024 18:49:45 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id 5482124B87F; Tue, 5 Mar 2024 23:49:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1709682577; bh=n229otuOFqK1lzXEYlOBICsy823HycbzT/0juqXZhNo=; h=From:To:Cc:Subject:Date; b=CB4AB5sWRD+P9kOn8H+q3AHoAQCadWJrvPM0/9VL8n8VywcQzG7cJHObce1vdn0sh 9qeBjcK+uoI9M1+5nMPFGSOD3LgkH5jRZccARlVpBdFopdu8eJpLE/G3NDSIgFImsS Y+AVxeJytG5Cl8jB+bR3BYXOMWpEftB3qWizvFAPpzch41YtXLptaLthjvwWzM3mTW IG1OY/xSd6cqRnSdQsZ5o9WAZV8WqcwfFnRhBoJAdCu8wX6/EGh9Jfzj5OQWS5slHe JDfI+6SSHoAaClDr6QeItlDNEh1bJBVd7J09YW6spHFg1JhIudhGZv7hCJOIOdi8Hu fNJJqb21u19WvOTuMGDzgmBVUU3F+PW7jAr5zFUb/5as+1837Q5Rdz1+7vaDc/3uLQ k9Q3tKyEYr6JLVqOCnz9akjbBPIg7zNqYHYDYu0oWFL37mISMdHowv2P72geviE6uG wfe6eWS3H6JH8C/+p1tmR7LE0jq4dCgBoFX0LIpVJpMZdO2DNBoA0sEcnk9z7JQlHJ Dyg2GjW6KZLtq2YAFixeyrpbO0gXvqIx0nBUq1JqAC3A3bOuM7wOeDtWQVHxNlrVEn bW/3OphxcRoV6a7+bQ9FYn/uQVHo/MrBouwuRtlEP3c6uqyiieb/Z/Jkz3hZamiol0 SesgaUAIBEOgDlDb5tz9qzVw= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from localhost (unknown [146.70.134.132]) by wolfsden.cz (Postfix) with ESMTPSA id 5061524E78E; Tue, 5 Mar 2024 23:49:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1709682576; bh=n229otuOFqK1lzXEYlOBICsy823HycbzT/0juqXZhNo=; h=From:To:Cc:Subject:Date; b=sPkRyA/wK/yVyUHKEHa2HgP1q6yZnJg2hMaohHOsAqf6l/QWDmiv2qfAAp+q+J0qk 19tneA9eLLPAbqiL3p6geJ4kDZ/6ms+4NLbZ3CO5B31oRYcNd56SkDoTCExgYPCZEv CZ4R/F28lLaqu2kfay1lqBFIyadIVW+xZ9VfnOlcGJ3gQ4iwyqyC1Vv4fjL7psJx+j ycfqLiKGypb29GS89M/HKsBV0McanAPXHWkctn1aAvl3SX5YrGJ/rZnprpY3AltRak SPX40EoFggA6ZZXz4o/Pm6P5mWePcGboY79V0tV0gC6x3PMpR2JwD29Xrts4ldR7gg cl0aLsy3gbNBjGNoKP9GV/g9/wKL5zQ9cKNNurld+OlwnuHXkcH8e89+4KWZjizItz gLaZXRyFB130t5dxuvQCaRVs8kpLQ0pBxkW69WoESIvg3z4Qx88v7z3WGS548fOv2K JEkr8ROabb2t2lH0zqX1dCZ9v42hFnTtMVsMlt9FmSaie4MiABSfh3sFlM9e8sgTJl A7ex58+G9QEwBcxKqiuyna2zPAIWx/sxhcFeRwRSuzrrIHdI32Cdja2PL5v1DDQwcb 1QUB3pTvXP2Z0v2d8JfklRR/Z4FhHOx5uozSM/xFZCE08zyH+dOyhXWkEsKtxZvKpt PE08LVLUTbXePrcpCqzsCYCs= From: Tomas Volf <~@wolfsden.cz> Date: Wed, 6 Mar 2024 00:48:56 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/containers.scm (gvisor-tap-vsock): New variable. Change-Id: I50c51613509e84998f17b4be593ce80c16002778 --- The binary name is mentioned in the description because I expect that to be what most people search for. I knew I need `gvproxy', I had no idea what was the actual name of the project. gnu/packages/containers.scm | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index aa270a25f3..d041263f3a 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -336,6 +336,50 @@ (define-public cni-plugins configure network interfaces in Linux containers.") (license license:asl2.0))) +(define-public gvisor-tap-vsock + (package + (name "gvisor-tap-vsock") + (version "0.7.3") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containers/gvisor-tap-vsock") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1q1zism0c63k2aq6yhkjqc3b2zsm4lwn0bk39p2kl79h798wfyp4")))) + (build-system gnu-build-system) + (arguments + (list + #:make-flags `(list ,(string-append "GIT_VERSION=v" version)) + #:test-target "test" + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'setenv + (lambda _ + ;; For golang toolchain. + (setenv "HOME" "/tmp"))) + (add-before 'check 'prune-tests + (lambda _ + ;; Requires internet connection to fetch QEMU image. + (invoke "rm" "-r" "test"))) + (replace 'install + (lambda _ + (install-file "bin/gvproxy" (string-append #$output "/bin"))))))) + (native-inputs (list go-1.20)) + (home-page "https://github.com/containers/gvisor-tap-vsock") + (synopsis "Network stack for virtualization based on gVisor") + (description "This package provides a replacement for @code{libslirp} and +@code{VPNKit}, written in pure Go. It is based on the network stack of gVisor +and brings a configurable DNS server and dynamic port forwarding. + +It can be used with QEMU, Hyperkit, Hyper-V and User Mode Linux. + +The binary is called gvproxy.") + (license license:asl2.0))) + ;; For podman to work, the user needs to run ;; `sudo mount -t cgroup2 none /sys/fs/cgroup` base-commit: f18d13b5f89c161c6ee88d15ecdaa8d973ee4503 -- 2.41.0 From unknown Tue Aug 19 14:21:50 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Tomas Volf <~@wolfsden.cz> Subject: bug#69572: closed (Re: [bug#69572] [PATCH] gnu: Add gvisor-tap-vsock.) Message-ID: References: <877chutuwf.fsf@gnu.org> X-Gnu-PR-Message: they-closed 69572 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 69572@debbugs.gnu.org Date: Fri, 22 Mar 2024 10:54:05 +0000 Content-Type: multipart/mixed; boundary="----------=_1711104845-5921-1" This is a multi-part message in MIME format... ------------=_1711104845-5921-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #69572: [PATCH] gnu: Add gvisor-tap-vsock. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 69572@debbugs.gnu.org. --=20 69572: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D69572 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1711104845-5921-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 69572-done) by debbugs.gnu.org; 22 Mar 2024 10:54:00 +0000 Received: from localhost ([127.0.0.1]:42565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rncX9-0001WM-QW for submit@debbugs.gnu.org; Fri, 22 Mar 2024 06:54:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rncX5-0001Ul-FK for 69572-done@debbugs.gnu.org; Fri, 22 Mar 2024 06:53:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rncGo-0002Vm-VT; Fri, 22 Mar 2024 06:37:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=cT8XF0YXD5E/umaCgNc8wwH5zgy8YMAy5lcfNyGPvNA=; b=dmKXCtXzZIt3ehb4tVIw fD+9Ha7R0CPZR+3tm6FSwTLaF3kxopKAcqZElPPluFsNiYvVXa18jypJof/G/AJtKQJeP8weNvW40 erw5+ZAJ0brHZ5AOrDV6V5DnzeScng6Xrx+1iUsxABCfZYxNC30i09Rpb58BjVcrpFXY1fj7oI5jA k4VZfgXq50mK0fvo1ah7Krf5ryx7z055rqyfawRQvYWZbjXCvoQh3tVh0Ui+T80VwTdxPD72DzUJF E5nR+XJwrRcnN5h+yKscNMGQfFQD2FQGChxlsXwlYWm7DzIRoqNUV8g2r+c7FCR0deVY1o5A/ghxg WZX9b9W9H9KOeA==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Tomas Volf <~@wolfsden.cz> Subject: Re: [bug#69572] [PATCH] gnu: Add gvisor-tap-vsock. In-Reply-To: (Tomas Volf's message of "Wed, 6 Mar 2024 00:48:56 +0100") References: Date: Fri, 22 Mar 2024 11:37:04 +0100 Message-ID: <877chutuwf.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 69572-done Cc: 69572-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain Hi, Tomas Volf <~@wolfsden.cz> skribis: > * gnu/packages/containers.scm (gvisor-tap-vsock): New variable. > > Change-Id: I50c51613509e84998f17b4be593ce80c16002778 Applied with these oh-so-important changes: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index eca7a697b7..61c7e74c78 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -375,9 +375,9 @@ (define-public gvisor-tap-vsock @code{VPNKit}, written in pure Go. It is based on the network stack of gVisor and brings a configurable DNS server and dynamic port forwarding. -It can be used with QEMU, Hyperkit, Hyper-V and User Mode Linux. +It can be used with QEMU, Hyperkit, Hyper-V and User-Mode Linux. -The binary is called gvproxy.") +The binary is called @command{gvproxy}.") (license license:asl2.0))) ;; For podman to work, the user needs to run --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 DQpUaGFua3MsDQpMdWRv4oCZLg0K --=-=-=-- ------------=_1711104845-5921-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Mar 2024 23:50:18 +0000 Received: from localhost ([127.0.0.1]:49275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rheY5-0004li-V7 for submit@debbugs.gnu.org; Tue, 05 Mar 2024 18:50:18 -0500 Received: from lists.gnu.org ([209.51.188.17]:37852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1rheY4-0004lb-LS for submit@debbugs.gnu.org; Tue, 05 Mar 2024 18:50:17 -0500 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 <~@wolfsden.cz>) id 1rheXZ-0001Oy-Dt for guix-patches@gnu.org; Tue, 05 Mar 2024 18:49:45 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1rheXW-0003fQ-0y for guix-patches@gnu.org; Tue, 05 Mar 2024 18:49:45 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id 5482124B87F; Tue, 5 Mar 2024 23:49:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1709682577; bh=n229otuOFqK1lzXEYlOBICsy823HycbzT/0juqXZhNo=; h=From:To:Cc:Subject:Date; b=CB4AB5sWRD+P9kOn8H+q3AHoAQCadWJrvPM0/9VL8n8VywcQzG7cJHObce1vdn0sh 9qeBjcK+uoI9M1+5nMPFGSOD3LgkH5jRZccARlVpBdFopdu8eJpLE/G3NDSIgFImsS Y+AVxeJytG5Cl8jB+bR3BYXOMWpEftB3qWizvFAPpzch41YtXLptaLthjvwWzM3mTW IG1OY/xSd6cqRnSdQsZ5o9WAZV8WqcwfFnRhBoJAdCu8wX6/EGh9Jfzj5OQWS5slHe JDfI+6SSHoAaClDr6QeItlDNEh1bJBVd7J09YW6spHFg1JhIudhGZv7hCJOIOdi8Hu fNJJqb21u19WvOTuMGDzgmBVUU3F+PW7jAr5zFUb/5as+1837Q5Rdz1+7vaDc/3uLQ k9Q3tKyEYr6JLVqOCnz9akjbBPIg7zNqYHYDYu0oWFL37mISMdHowv2P72geviE6uG wfe6eWS3H6JH8C/+p1tmR7LE0jq4dCgBoFX0LIpVJpMZdO2DNBoA0sEcnk9z7JQlHJ Dyg2GjW6KZLtq2YAFixeyrpbO0gXvqIx0nBUq1JqAC3A3bOuM7wOeDtWQVHxNlrVEn bW/3OphxcRoV6a7+bQ9FYn/uQVHo/MrBouwuRtlEP3c6uqyiieb/Z/Jkz3hZamiol0 SesgaUAIBEOgDlDb5tz9qzVw= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from localhost (unknown [146.70.134.132]) by wolfsden.cz (Postfix) with ESMTPSA id 5061524E78E; Tue, 5 Mar 2024 23:49:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1709682576; bh=n229otuOFqK1lzXEYlOBICsy823HycbzT/0juqXZhNo=; h=From:To:Cc:Subject:Date; b=sPkRyA/wK/yVyUHKEHa2HgP1q6yZnJg2hMaohHOsAqf6l/QWDmiv2qfAAp+q+J0qk 19tneA9eLLPAbqiL3p6geJ4kDZ/6ms+4NLbZ3CO5B31oRYcNd56SkDoTCExgYPCZEv CZ4R/F28lLaqu2kfay1lqBFIyadIVW+xZ9VfnOlcGJ3gQ4iwyqyC1Vv4fjL7psJx+j ycfqLiKGypb29GS89M/HKsBV0McanAPXHWkctn1aAvl3SX5YrGJ/rZnprpY3AltRak SPX40EoFggA6ZZXz4o/Pm6P5mWePcGboY79V0tV0gC6x3PMpR2JwD29Xrts4ldR7gg cl0aLsy3gbNBjGNoKP9GV/g9/wKL5zQ9cKNNurld+OlwnuHXkcH8e89+4KWZjizItz gLaZXRyFB130t5dxuvQCaRVs8kpLQ0pBxkW69WoESIvg3z4Qx88v7z3WGS548fOv2K JEkr8ROabb2t2lH0zqX1dCZ9v42hFnTtMVsMlt9FmSaie4MiABSfh3sFlM9e8sgTJl A7ex58+G9QEwBcxKqiuyna2zPAIWx/sxhcFeRwRSuzrrIHdI32Cdja2PL5v1DDQwcb 1QUB3pTvXP2Z0v2d8JfklRR/Z4FhHOx5uozSM/xFZCE08zyH+dOyhXWkEsKtxZvKpt PE08LVLUTbXePrcpCqzsCYCs= From: Tomas Volf <~@wolfsden.cz> To: guix-patches@gnu.org Subject: [PATCH] gnu: Add gvisor-tap-vsock. Date: Wed, 6 Mar 2024 00:48:56 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Tomas Volf <~@wolfsden.cz> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/containers.scm (gvisor-tap-vsock): New variable. Change-Id: I50c51613509e84998f17b4be593ce80c16002778 --- The binary name is mentioned in the description because I expect that to be what most people search for. I knew I need `gvproxy', I had no idea what was the actual name of the project. gnu/packages/containers.scm | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index aa270a25f3..d041263f3a 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -336,6 +336,50 @@ (define-public cni-plugins configure network interfaces in Linux containers.") (license license:asl2.0))) +(define-public gvisor-tap-vsock + (package + (name "gvisor-tap-vsock") + (version "0.7.3") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containers/gvisor-tap-vsock") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1q1zism0c63k2aq6yhkjqc3b2zsm4lwn0bk39p2kl79h798wfyp4")))) + (build-system gnu-build-system) + (arguments + (list + #:make-flags `(list ,(string-append "GIT_VERSION=v" version)) + #:test-target "test" + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'setenv + (lambda _ + ;; For golang toolchain. + (setenv "HOME" "/tmp"))) + (add-before 'check 'prune-tests + (lambda _ + ;; Requires internet connection to fetch QEMU image. + (invoke "rm" "-r" "test"))) + (replace 'install + (lambda _ + (install-file "bin/gvproxy" (string-append #$output "/bin"))))))) + (native-inputs (list go-1.20)) + (home-page "https://github.com/containers/gvisor-tap-vsock") + (synopsis "Network stack for virtualization based on gVisor") + (description "This package provides a replacement for @code{libslirp} and +@code{VPNKit}, written in pure Go. It is based on the network stack of gVisor +and brings a configurable DNS server and dynamic port forwarding. + +It can be used with QEMU, Hyperkit, Hyper-V and User Mode Linux. + +The binary is called gvproxy.") + (license license:asl2.0))) + ;; For podman to work, the user needs to run ;; `sudo mount -t cgroup2 none /sys/fs/cgroup` base-commit: f18d13b5f89c161c6ee88d15ecdaa8d973ee4503 -- 2.41.0 ------------=_1711104845-5921-1--