Vagrant Boxes / VMWare Fusion / CentOS 7

Standard

Use one found here: http://www.vagrantbox.es 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:
http://www.centos.org/download/

I use the minimal image http://ftp.usf.edu/pub/centos/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-Minimal.iso

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:

Sharing
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.

Display
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
Click Apply

Sound Card
Click “Remove Sound Card”

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

Printer
Click “Remove Printer Port”

Compatibility
Click “Advanced options” >> I use hardware version¬†7, 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

Isolation
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.