How to use this box with Vagrant:
Vagrant.configure("2") do |config|
config.vm.box = "peru/my_centos-7-x86_64"
config.vm.box_version = "20200901.01"
end
vagrant init peru/my_centos-7-x86_64 \
--box-version 20200901.01
vagrant up
This version was created almost 4 years ago.
Modified CentOS 7 (2003) x86_64 box for libvirt and VirtualBox Vagrant providers.
Here are the steps for latest Fedora/Ubuntu to install Vagrant and vagrant-libvirt + KVM:
# Fedora
dnf install -y vagrant-libvirt
# Ubuntu
apt install -y libvirt-bin vagrant-libvirt
Install and connect to the box:
mkdir my_centos-7-x86_64
cd my_centos-7-x86_64
vagrant init peru/my_centos-7-x86_64
VAGRANT_DEFAULT_PROVIDER=libvirt vagrant up
# or
VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up
vagrant ssh
Root password is: vagrant
Drivers / Devices added for the VMs for specific providers.
Based on: CentOS-7-x86_64-NetInstall-2003.iso
See the kickstart file and Ansible playbook.