|
| 1 | +#!/bin/bash |
| 2 | +set -o errexit |
| 3 | +set -o pipefail |
| 4 | +set -o nounset |
| 5 | +set -o xtrace |
| 6 | +# set -eox pipefail #safety for script |
| 7 | + |
| 8 | +echo "=========================================================================================" |
| 9 | +vagrant plugin install vagrant-libvirt #The vagrant-libvirt plugin is required when using KVM on Linux |
| 10 | +vagrant plugin install vagrant-mutate #Convert vagrant boxes to work with different providers |
| 11 | + |
| 12 | +echo "=========================================================================================" |
| 13 | +# #https://github.com/chef/bento/tree/master/packer_templates/centos |
| 14 | +# vagrant box add "bento/centos-7.8" --provider=virtualbox |
| 15 | +# vagrant mutate "bento/centos-7.8" libvirt |
| 16 | +# vagrant up --provider=libvirt "vg-controller-82" |
| 17 | + |
| 18 | +# Ansible provision OK |
| 19 | +#https://github.com/chef/bento/tree/master/packer_templates/centos |
| 20 | +# vagrant box add "bento/centos-8.2" --provider=virtualbox |
| 21 | +# vagrant mutate "bento/centos-8.2" libvirt |
| 22 | +# vagrant up --provider=libvirt "vg-controller-83" |
| 23 | + |
| 24 | +#No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself. |
| 25 | +#https://github.com/chef/bento/tree/master/packer_templates/centos |
| 26 | +# vagrant box add "bento/fedora-32" --provider=virtualbox |
| 27 | +# vagrant mutate "bento/fedora-32" libvirt |
| 28 | +# vagrant up --provider=libvirt "vg-controller-84" |
| 29 | + |
| 30 | +# Ansible provision OK |
| 31 | +# https://app.vagrantup.com/centos/boxes/8 |
| 32 | +# vagrant box add "centos/8" --provider=libvirt |
| 33 | +# vagrant up --provider=libvirt "vg-controller-85" |
| 34 | + |
| 35 | +#vg-controller-86: /tmp/vagrant-shell: line 8: 3409 Killed dnf -y update |
| 36 | +# https://app.vagrantup.com/fedora/boxes/32-cloud-base |
| 37 | +# vagrant box add "fedora/32-cloud-base" --provider=libvirt |
| 38 | +# vagrant up --provider=libvirt "vg-controller-86" |
| 39 | + |
| 40 | +# vagrant box add "bento/debian-10.4" --provider=virtualbox |
| 41 | +# vagrant mutate "bento/debian-10.4" libvirt |
| 42 | +# vagrant up --provider=libvirt "vg-controller-87" |
| 43 | + |
| 44 | + |
| 45 | +# https://github.com/chef/bento/tree/master/packer_templates/ubuntu |
| 46 | +vagrant box add "bento/ubuntu-19.10" --provider=libvirt |
| 47 | +vagrant mutate "bento/ubuntu-19.10" libvirt |
| 48 | +vagrant init --template Vagrantfile.terraform.erb |
| 49 | +vagrant up --provider=libvirt |
| 50 | + |
| 51 | +# https://github.com/chef/bento/tree/master/packer_templates/ubuntu |
| 52 | +# vagrant box add "bento/ubuntu-19.10" --provider=virtualbox |
| 53 | +# vagrant mutate "bento/ubuntu-19.10" libvirt |
| 54 | +# vagrant init --template Vagrantfile.provision.bash.ubuntu.erb |
| 55 | +# # must be created in project root directory with Vagrantfile template file |
| 56 | +# vagrant up --provider=libvirt "kuma-control-plane" |
| 57 | + |
| 58 | +# https://github.com/chef/bento/tree/master/packer_templates/ubuntu |
| 59 | +# vagrant box add "bento/ubuntu-20.04" --provider=virtualbox |
| 60 | +# vagrant mutate "bento/ubuntu-20.04" libvirt |
| 61 | +# vagrant init --template Vagrantfile.provision.bash.ubuntu.erb |
| 62 | +# # must be created in project root directory with Vagrantfile template file |
| 63 | +# vagrant up --provider=libvirt "kuma-control-plane" |
| 64 | +# vagrant up --provider=libvirt "redis" |
| 65 | + |
| 66 | +vagrant box list #veridy installed boxes |
| 67 | +vagrant status #Check the status of the VMs to see that none of them have been created yet |
| 68 | +vagrant status |
| 69 | +virsh list --all #show all running KVM/libvirt VMs |
0 commit comments