Show Menu
Cheatography

Creating a Vagrant Base Box with CentOS 7.0 Cheat Sheet (DRAFT) by

Steps for creating a Vagrant base box with a minimal CentOS 7 Linux distribution installed.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Software Requir­ements

Vagrant
VirtualBox
CentOS 7 Minimal
Download and install Vagrant and Virtua­lBox. Download the CentOS minimal ISO and make a note of the location where you saved the file.
Vagrant is currently compatible with VirtualBox versions 4.0.x, 4.1.x, 4.2.x, and 4.3.x. Any other version is unsupp­orted.

Create Virtual Machine

Start the VM creation process in the VirtualBox GUI by clicking the "­­­N­e­w­­" icon, Typing CTRL+N, or selecting Machine -> New from the menu.
If you use CentOS-7 or something similar for the name, VirtualBox will automa­­­t­i­cally select the Type and Version for you.

1 - Create the VirtualBox VM

Name
Choose a suitable name for the VM
Type
Linux
Version
Red Hat (64 bit)
Memory size
1024 MB
Hard drive
Create a virtual hard drive now
Virtual Hard Drive File Location
Use the default or select a different location
File size
8.00 GB
Hard drive file type
VDI (Virtu­alBox Disk Image)
Storage on physical hard drive
Dynami­cally allocated

Configure the VM

After you create the VM, a bit of config­uration is needed. Select the VM in the GUI and either click the Settings icon, Right-­Click the VM and select Settings, or type CTRL+S.

2- Configure the VM

Storage Tab
Select Controler IDE -> Empty; Click the Disk icon next to CD/DV Drive and select "­Choose a choose a virtual CD/DVD disk file". Browse to the downloaded ISO for CentOS 7 Minimal.
Audio Tab
Uncheck "­Enable Audio"
Network Tab
Make sure "­Enable Network Adapte­r" is checked and "­Att­ached to" is set to NAT.
USB Tab
Uncheck "­Enable USB Contro­lle­r"