The following have been added to the image (in addition to those listed in README.md):
- For VirtualBox: dkms, gcc, perl, and VBoxGuestAdditions
- For VMware: VMware Tools
- Root password is set to vagrant
- The user vagrant has been added with password vagrant and authorized_keys from https://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub
- single-request-reopen is added to resolv.conf
To build a VirtualBox Vagrant box:
rm -f /tmp/packer-centos-7.3.1611-x86_64-updates-vagrant-vbox-*
packer build --only=vbox4vagrant centos-7.3.1611-x86_64-updates.json
vagrant box add --force packer-centos-7.3.1611-x86_64-updates-vagrant-vbox /tmp/packer-centos-7.3.1611-x86_64-updates-vagrant-vbox-*.box
vagrant up
- Smoke test (e.g.,
vagrant ssh
and look around)
To build a VMware Vagrant box:
rm -f /tmp/packer-centos-7.3.1611-x86_64-updates-vagrant-vmware-*
packer build --only=vmware4vagrant centos-7.3.1611-x86_64-updates.json
vagrant box add --force packer-centos-7.3.1611-x86_64-updates-vagrant-vmware /tmp/packer-centos-7.3.1611-x86_64-updates-vagrant-vmware-*.box
- Get Vagrant/VMware license (https://www.vagrantup.com/vmware)
vagrant up
- Smoke test (e.g.,
vagrant ssh
and look around)