From a467cc91107d3c04c3d8e12f70b12e5def21ed98 Mon Sep 17 00:00:00 2001 From: Michael Ablassmeier Date: Tue, 22 Aug 2023 22:32:53 +0200 Subject: [PATCH] .. --- vagrant/build.sh | 5 ++++- vagrant/rhel9/Vagrantfile | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 vagrant/rhel9/Vagrantfile diff --git a/vagrant/build.sh b/vagrant/build.sh index 2ba2bdf5..1417c56b 100644 --- a/vagrant/build.sh +++ b/vagrant/build.sh @@ -3,5 +3,8 @@ set -e export VAGRANT_CWD=$(pwd)/debian/ vagrant up && vagrant destroy -f -export VAGRANT_CWD=$(pwd)/rhel/ +export VAGRANT_CWD=$(pwd)/rhel8/ +vagrant up && vagrant destroy -f + +export VAGRANT_CWD=$(pwd)/rhel9/ vagrant up && vagrant destroy -f diff --git a/vagrant/rhel9/Vagrantfile b/vagrant/rhel9/Vagrantfile new file mode 100644 index 00000000..f455169e --- /dev/null +++ b/vagrant/rhel9/Vagrantfile @@ -0,0 +1,33 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# All Vagrant configuration is done below. The "2" in Vagrant.configure +# configures the configuration version (we support older styles for +# backwards compatibility). Please don't change it unless you know what +# you're doing. +Vagrant.configure("2") do |config| + config.vm.box = "generic/alma9" + config.vm.box_check_update = false + config.vm.provider :libvirt do |libvirt| + libvirt.cpus = 2 + libvirt.memory = 3500 + libvirt.memorybacking :access, :mode => "shared" + end + config.vm.provision "shell", inline: <<-SHELL + set -xe + YUM="yum -yq" + $YUM install git rpm-build python3-setuptools + $YUM reinstall epel-release || true # epel-release is installed, but files removed + rm -rf virtnbdbackup; + git clone https://github.com/abbbi/virtnbdbackup -b dev + cd virtnbdbackup + set +x + python3.9 setup.py bdist_rpm --python /usr/bin/python3.9 --requires "python3-libvirt python3-libnbd python3-lxml python3-tqdm python3-lz4 nbdkit-server nbdkit-python-plugin python3-paramiko python3-typing-extensions" + cp dist/* /vagrant + yum install -y dist/*noarch*.rpm + virtnbdbackup -h + virtnbdrestore -h + virtnbdmap -h + SHELL + config.vm.synced_folder "../../dist", "/vagrant", type: "virtiofs" +end