Message ID | cover.1691432343.git.h.goebel@crazy-compilers.com |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 98B7B27BBE9; Mon, 7 Aug 2023 19:25:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0F30E27BBE2 for <patchwork@mira.cbaines.net>; Mon, 7 Aug 2023 19:25:11 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1qT4uf-0007jR-9f; Mon, 07 Aug 2023 14:25:05 -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 <Debian-debbugs@debbugs.gnu.org>) id 1qT4ud-0007hm-9n for guix-patches@gnu.org; Mon, 07 Aug 2023 14:25:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qT4uc-0003YS-Lr for guix-patches@gnu.org; Mon, 07 Aug 2023 14:25:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qT4uc-0005e1-Hb for guix-patches@gnu.org; Mon, 07 Aug 2023 14:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65131] [PATCH 00/32] Add vagrant, some vagrant plugins and required ruby modules Resent-From: Hartmut Goebel <h.goebel@crazy-compilers.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Aug 2023 18:25:02 +0000 Resent-Message-ID: <handler.65131.B.169143267521640@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65131 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65131@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169143267521640 (code B ref -1); Mon, 07 Aug 2023 18:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Aug 2023 18:24:35 +0000 Received: from localhost ([127.0.0.1]:34228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1qT4uA-0005cw-LK for submit@debbugs.gnu.org; Mon, 07 Aug 2023 14:24:35 -0400 Received: from lists.gnu.org ([2001:470:142::17]:60258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <h.goebel@crazy-compilers.com>) id 1qT4u6-0005ch-Oy for submit@debbugs.gnu.org; Mon, 07 Aug 2023 14:24:33 -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 <h.goebel@crazy-compilers.com>) id 1qT4tu-0007eA-TX for guix-patches@gnu.org; Mon, 07 Aug 2023 14:24:20 -0400 Received: from mout.kundenserver.de ([217.72.192.74]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <h.goebel@crazy-compilers.com>) id 1qT4to-0003Pj-Ld for guix-patches@gnu.org; Mon, 07 Aug 2023 14:24:15 -0400 Received: from hermia.goebel-consult.de ([79.211.183.123]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MvJjz-1pcDGI0mGX-00rK4n for <guix-patches@gnu.org>; Mon, 07 Aug 2023 20:24:07 +0200 Received: from thisbe.goebel-consult.de (thisbe.fritz.box [192.168.110.24]) by hermia.goebel-consult.de (Postfix) with ESMTP id DA8235F599; Mon, 7 Aug 2023 20:24:03 +0200 (CEST) From: Hartmut Goebel <h.goebel@crazy-compilers.com> Date: Mon, 7 Aug 2023 20:24:03 +0200 Message-Id: <cover.1691432343.git.h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.30.9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:N6bejhp+Kepca76G4Rhra/Xvf2nNhM7czpKfuD6LHpP7U85qeQ/ oHJHD3cz8UA9+EK8oMU+2WisS3YhBUFW5Wd4uaJet/TW+Yv05cEVTb3UjNdoRPghMjnAMpv mSu1v73qABm52Uq2DeDA7v/mdmI5c+ZnxTEAt8Y+CNcYgY9KPRTVEZrGsbp5cjIr3onyWNv D5krIxougguTeO8Rm/LFg== UI-OutboundReport: notjunk:1;M01:P0:DOx2f0nS0tM=;s1NnAgquhQLDlalTuX+lfuJz6H2 PKarFUottnMMwYiD8sARRaYjkb5FG25tFbfKPMHA8b9aFZI1ofWNBsQwxutgzFZI/63MHglqJ BG4U3gy/yGXLyW6TLIWwgf3EQhQGDh77ZU8SKgR1BR6WI9r3+Fo8nIoyDf9q50jr6l4gLP2KE gUFRqyZ2H6YOo6n0g5nMpL/prSDlyM+tqNJvWcatgWmLbO0PX6NZWYDsKXqo77ljWXXQclHib P4AG3IMRRFlox+ntZiGZ59d/h0af5Ur8FoJKUEJgQqn0xdXUk3aN3lSad/bwh/MrdWn+2tYLX AB0CKhZlvpuvJ9xr/3ilEBSOYrjx7FFruwIGmsykELN01obP7cQYy7CxEplA6wuPuijvvIVnO efbtCbiPcuhZra/odmZCS6wCDCd9ax2am1sjj2mLAHCKfS8PXXfoG8Tj/lp5F2boPcJZGVzw3 cJG0+ER1nv+bNXXc19B3K7Vuj5g0ngrQ+we5hVbetNDyibXOSqPA4MbSgWKYd3vRm/KaaKytu Ar3sedUoDeoJNTF34t7UdM1OcP297KoCoJ0QUSA1dbyatpR3wmGi/K88asKgS9eN868r3PAHL MrzcZmRfuO7V+gKhRCXpBkBLQ1CvMCaFKQ7fkjyysL89P7EdD8n2sgyfcME0RhqwuwHbAHi8v 5z5zHiRf1b+qidPIaA5xJE05CZDhRj4wKfMqXx9Rxm4c3nqz02XQAL3gqCWQkLCBX/liSfYk/ G75qcl6RWIFzPmFShs+3MFJn1/WV1XTzXHFk1itBnE9PeVN5/MuT9cRg31unjDTGUU0xZ25AH XogR+hPPgU3peudqoy118VtXiAiYjVk1wzrEnqaB/Xm/HhqRPsO/lQvku8cDnMYBB9Vjsqtxz /yXorl9z76d7dOQ== Received-SPF: pass client-ip=217.72.192.74; envelope-from=h.goebel@crazy-compilers.com; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
Add vagrant, some vagrant plugins and required ruby modules
|
|
Message
Hartmut Goebel
Aug. 7, 2023, 6:24 p.m. UTC
This series add Vagrant, a utility for managing the lifecycle of virtual machines, and some (non-) trivial plugins for it, as well as the required packages. This series contains some plugins (esp. vagrant-libvirt) to test whether vagrant's plugins-mechanism actually works in Guix. (And indeed, quite some adjustments had to be made to vagrant make this work.) Using this setup I was able to - install plugins (per-user=global and per-project=local) - show list of system plugins - search for boxes (vargant cloud search) - download a box (done by vagrant up) - list downloaded boxes (vagrant box list) - start a virtual machine using libvirt (vagrant up) - added an unidirectional synced folders using rsync - added a bidirectional synced folders using 9p virtfs - copy data into the machine using "vagrant scp" - reload, stop and destroy the box Not working for me: - synced folders using virtiofs: 'requires shared memory — this might be caused by my local setup or missing stuff in Vagrantfile Here is the code I used for testing: ...8<---- ./pre-inst-env guix shell \ -C openssh coreutils rsync \ --network --share=/tmp --expose=/var/run/libvirt \ vagrant vagrant-vai vagrant-cachier vagrant-reload vagrant-libvirt nss-certs the in the shell: export SSL_CERT_DIR=$GUIX_ENVIRONMENT/etc/ssl/certs export VAGRANT_DEFAULT_PROVIDER=libvirt mkdir -p /tmp/vagrant-test/xxx/ cd /tmp/vagrant-test/ HOME=$PWD cd xxx cat > Vagrantfile <<EOF Vagrant.configure("2") do |config| config.vm.box = "generic/alpine317" # reasonable small config.vm.synced_folder "a", "/vagrant/rsynced", type: "rsync" #config.vm.synced_folder "b", "/vagrant/9p", type: "9p" #config.vm.synced_folder "c", "/vagrant/virtio", type: "virtio" # for testing vagrant-vai config.vm.provision :vai do |ansible| ansible.inventory_dir = 'ansible/inventory' end end EOF rm -rf {a,b,c} mkdir {a,b,c} # test plugin management vagrant plugin list vagrant plugin install vagrant-scp vagrant plugin install --local vagrant-timezone vagrant plugin list --local plugin uninstall vagrant-timezone --local vagrant plugin list --local # test download of box and starting machine touch a/file-from-A.txt vagrant up # test plugin vagrant-scp vagrant scp Vagrantfile default:xxx.txt vagrant ssh -c 'ls' # test file-sync - you need to enable different options in the Vagrantfile # to test them an. then run 'vagrant reload' touch a/file-from-A.txt vagrant reload # to trigger rsync touch b/file-from-B.txt c/file-from-C.txt vagrant ssh -c 'touch /vagrant/9p/file-from-9p.txt' vagrant ssh -c 'touch /vagrant/rsynced/file-from-rsynced.txt' vagrant ssh -c 'touch /vagrant/virtio/file-from-virtio.txt' vagrant ssh -c 'ls -F /vagrant/*/' ls {a,b,c} vagrant destroy -f ...8<---- Hartmut Goebel (32): gnu: Add ruby-excon. gnu: Add ruby-ipaddr. gnu: Add ruby-net-ftp. gnu: Add ruby-fake-ftp. gnu: Add ruby-net-sftp. gnu: Add ruby-net-telnet. gnu: Add ruby-pairing-heap. gnu: Add ruby-stringio. gnu: Add ruby-stream. gnu: Add ruby-rgl. gnu: Add ruby-sfl. gnu: Add ruby-specinfra. gnu: Add ruby-serverspec. gnu: Add ruby-time. gnu: Add ruby-google-protobuf. gnu: Add ruby-googleapis-common-protos-types. gnu: Add ruby-grpc. gnu: Add ruby-vagrant-cloud. gnu: Add ruby-vagrant-spec. gnu: Add ruby-vagrant-spec-helper-basic. gnu: Add ruby-hashicorp-checkpoint. gnu: ruby-childprocess: Update to 4.1.0. gnu: Add vagrant. gnu: Add vagrant-vai. gnu: Add vagrant-cachier. gnu: Add vagrant-reload. gnu: Add ruby-libvirt. gnu: Add ruby-fog-core. gnu: Add ruby-fog-json. gnu: Add ruby-fog-xml. gnu: Add ruby-fog-libvirt. gnu: Add vagrant-libvirt. gnu/local.mk | 3 + ...ant-Support-system-installed-plugins.patch | 172 +++++ .../vagrant-Use-a-private-temporary-dir.patch | 119 ++++ ...rant-silence-warning-about-installer.patch | 24 + gnu/packages/ruby.scm | 621 +++++++++++++++++- gnu/packages/virtualization.scm | 363 ++++++++++ 6 files changed, 1296 insertions(+), 6 deletions(-) create mode 100644 gnu/packages/patches/vagrant-Support-system-installed-plugins.patch create mode 100644 gnu/packages/patches/vagrant-Use-a-private-temporary-dir.patch create mode 100644 gnu/packages/patches/vagrant-bin-vagrant-silence-warning-about-installer.patch base-commit: 39fbc041f92489ec30075a85937c8a38723752dc