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 = "20190801.01"
end
vagrant init peru/my_centos-7-x86_64 \
  --box-version 20190801.01
vagrant up

This version was created 19 days ago.

My CentOS 7 (1810)

Modified CentOS 7 (1810) x86_64 box for libvirt and virtualbox Vagrant providers.


Github repository for bug reports or feature requests

Requirements

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

Getting started

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

Login Credentials

Root password is: vagrant

  • Username: vagrant
  • Password: vagrant

VM Specifications

Drivers / Devices added for the VMs for specific providers.

Libvirt

  • Libvirt Provider
  • VirtIO dynamic Hard Disk (up to 50 GiB)
  • VirtIO Network Interface
  • QXL Video Card (SPICE display)

VirtualBox

  • SATA Disk

Configuration

Based on: CentOS-7-x86_64-NetInstall-1810.iso

Preconfigured installation

See the kickstart file and Ansible playbook.

  • en_US.UTF-8
  • keymap for standard US keyboard
  • UTC timezone
  • NTP enabled (default configuration)
  • full-upgrade
  • unattended-upgrades
  • /dev/vda1 mounted on / using xfs filesystem (all files in one partition)
  • no swap

  • added packages: see the Common list and CentOS list
  • mouse disabled in Midnight Commander other MC customizations
  • preconfigured snmpd, vim, screen
  • logrotate using xz instead of gzip
  • logwatch is running once per week instead of once per day
  • sshd is using only the strong algorithms
  • sysstat (sar) is running every minute instead of every 5 minutes

Additional Drivers installed for VirtualBox boxes

  • VirtualBox Guest Additions
2 providers for this version.
  • virtualbox Hosted by Vagrant Cloud (515 MB)

  • libvirt Hosted by Vagrant Cloud (462 MB)