1 # SPDX-License-Identifier: GPL-2.0
4 # This file is part of Lustre, http://www.lustre.org/
6 # contrib/coverity/Vagrantfile
8 # Vagrant definition for a CentOS VM to run a Lustre
11 # Author: Timothy Day <timday@amazon.com>
14 Vagrant.configure("2") do |config|
15 # The most common configuration options are documented and commented below.
16 # For a complete reference, please see the online documentation at
17 # https://docs.vagrantup.com.
19 # Every Vagrant development environment requires a box. You can search for
20 # boxes at https://vagrantcloud.com/search.
21 config.vm.box = "centos/8"
24 config.vm.provider "libvirt" do |libvirt|
25 libvirt.machine_virtual_size = 40
30 config.vm.provision "shell", inline: <<-SHELL
32 sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*
33 sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
35 dnf install -y cloud-utils-growpart
40 GIVEN_IP=$(ip address show eth0 | awk -F' ' '$1 == "inet" { print $2 }' | awk -F'/' '{ print $1 }')
41 grep $(hostname) /etc/hosts
42 sed -i "s/$(hostname) //g" /etc/hosts
43 echo "$GIVEN_IP $(hostname)" >> /etc/hosts
44 grep $(hostname) /etc/hosts
47 dnf config-manager --set-enabled powertools
48 dnf config-manager --add-repo=https://downloads.whamcloud.com/public/e2fsprogs/latest/el8
50 # General kernel tools
51 dnf groupinstall -y 'Development Tools'
53 # Debug info (needed for ldiskfs)
54 sudo dnf install -y --enablerepo=*debug* kernel-debuginfo
56 # Install Lustre/ZFS dependencies and tools
57 dnf install -y --nogpgcheck git libyaml-devel libnl3-devel libmount-devel \
58 wget ncurses-devel bc dwarves kernel kernel-devel openssl-devel \
59 binutils-devel lsof crash kexec-tools perf psmisc e2fsprogs-devel \
60 elfutils-libelf-devel libudev-devel libattr-devel libaio-devel libuuid-devel \
61 libblkid-devel libtirpc-devel libffi-devel ncompress python3-cffi python3-devel \