Vagrant Boxes / VMWare Fusion / CentOS 7


Use one found here: you can use one of those to build upon or you can create one.

These steps are if you want to to create a fresh box.
Grab the latest CentOS image here:

I use the minimal image

First you need to create a VM using Fusion.

  1. Select “Install from disc or image” >> Continue
  2. “Use another disc or disc image” >> Find your iso >> Continue
  3. Uncheck “Use Easy Install” make sure “Make your home folder accessible to the virtual machine is unchecked. >> Continue
  4. Click “Customize Settings” >> Rename your vm and place it somewhere safe.

Settings for new VM:

Make sure sharing is disabled.

Processor & Memory

Screen Shot 2014-12-16 at 1.17.56 PM
Select 1 Processor and 512 MB Memory, this is minimal because not everyone has a system with 16 cores and 64gb of memory.

Make sure everything here is unchecked, Accelerated 3d and Retina Display not needed.

Network Adapter
Make sure “Share with my Mac” is selected.
Screen Shot 2014-12-16 at 1.18.31 PM

Hard Disk
Uncheck “Split into multiple files”
Screen Shot 2014-12-16 at 1.18.49 PM

Sound Card
Click “Remove Sound Card”

USB & Bluetooth
Click “Advance USB options” >> Click “Remove USB Controller”

Click “Remove Printer Port”

Click “Advanced options” >> I use hardware version7, but you can use whatever you feel is necessary. It is the compatibility you are looking for, if you and everyone you are suppling the box is using Fusion 7 leave it alone. If by chance you don’t know who is going to use your box you’ll want to be as compatible as you can.
Screen Shot 2014-12-16 at 1.20.17 PM

Uncheck “Enable Drag and Drop” and “Enable Copy and Paste”
Screen Shot 2014-12-16 at 1.20.28 PM

Installing CentOS:

Select Language.

Installation Destination. Click “Done” >> Begin Installation

Root Password >> Set it to vagrant >> Click “Done” twice.

Click “Reboot”

Install complete.

Configure CentOS:

Login as root password is vagrant.

My ethernet didn’t work so I had to regenerate a MAC address in network settings under the “Network Adapter” pane in Fusion.
Screen Shot 2014-12-16 at 3.31.50 PM

Post Configure:

Remove CD/DVD Drive
Screen Shot 2014-12-16 at 6.07.54 PM
Click on “Remove CD/DVD Drive”

Creating a Vagrant Box

cd to where your vmware vm is stored usually its ~/Documents/Virtual\ Machines/

My example

Defrag & Shrink virtual disk.

Adding Vagrant Box

A lof of this is from Thornelabs.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.