Build a RHEL 7.1 or CentOS 7.1 Vagrant Box for VMware

These instructions will cover RHEL and CentOS. Some sections will be limited to a specific distribution and will be marked as such. Screenshots provided show RHEL 7.1.

Blog Change

I’ve moved my blog over to GitHub Pages. While Ghost was working well for me, I preferred an easier way to write and post. Using Git for managing the site was the perfect solution for me.

Fix Vagrant Install on OS X 10.11

When you upgrade to OS X 10.11, items from /usr/bin/ are moved to /Previous System/usr/bin/. I believe this is part of the new “rootless” security feature in OS X 10.11. Vagrant is one of the executables moved. To fix this, you will need to disable rootless and then reinstall Vagrant.

First make sure there aren’t other boot-args that you will overwrite with this process by running:

nvram -p | grep boot-args

If you end up with any results, you’ll want to adjust the following commands as needed to preserve the settings.

To disable rootless, run (source):

sudo nvram boot-args="rootless=0"
# Save work before the next line
sudo reboot

Once the reboot completes, reinstall Vagrant. Now your vagrant command should work again. Settings, box files, etc all appear to be intact after the OS upgrade and Vagrant reinstall.

After you’re done, if you wish to restore rootless you can run (source):

sudo nvram -d boot-args
# Save work before the next line
sudo reboot

Alternatively you may be able to just copy over the Vagrant binary after disabling rootless. But if other files from Vagrant end up in one of the /Previous System/ folders, it may not work. I opted to just reinstall to be sure.