This repository contains a CentOS 7.1 template to create a Vagrant box using Packer.
Box created from this repository is https://atlas.hashicorp.com/cmontemuino/boxes/centos7.1.x64-base
In order to use it with Vagrant, just issue the following:
$ vagrant init cmontemuino/centos7.1.x64-base
Minimal + Guest Additions + Debugging/Development tools + EPEL repo
- openssh
- openssh-clients
- openssh-server
- rpm
- yum
- curl
- dhclient
- passwd
- vim-minimal
- sudo
- kernel-headers
- kernel-devel
- gcc
- dkms
- perl
- bzip2
- ntp
- ntpdate
- man
- rsync
- git
- make
- vim
- screen
- nmap
- lsof
- strace
- tcpdump
- traceroute
- telnet
- ltrace
- bind-utils
- sysstat
- nc
- wget
- zip
- deltarpm
- nfs-utils
- acpid
- Packer (>= 0.8.6)(http://www.packer.io/downloads.html)
- Platforms
- Virtualbox (>= 5.0.6)(https://www.virtualbox.org/wiki/Downloads)
In case of getting the following error:
$ vagrant init cmontemuino/centos7.1.x64-base; vagrant up --provider virtualbox
The box 'cmontemuino/centos7.1.x64-base' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:
URL: ["https://atlas.hashicorp.com/cmontemuino/centos7.1.x64-base"]
Error: error setting certificate verify locations:
CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: noneThen check whether ca-certificates package is installed. Another possibility is you need to create the certs folder, and copy the ca-certificates.crt to it:
$ sudo mkdir -p /etc/pki/tls/certs
$ sudo cp /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crtThis work is partially based on https://github.com/hansode/packer-vagrant-templates