Cheatography
https://cheatography.com
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 Requirements
Vagrant
|
VirtualBox
|
CentOS 7 Minimal
|
Download and install Vagrant and VirtualBox. 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 unsupported.
Create Virtual Machine
Start the VM creation process in the VirtualBox GUI by clicking the "New" icon, Typing CTRL+N, or selecting Machine -> New from the menu.
If you use CentOS-7 or something similar for the name, VirtualBox will automatically 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 (VirtualBox Disk Image)
|
Storage on physical hard drive Dynamically allocated
|
Configure the VM
After you create the VM, a bit of configuration 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 Adapter" is checked and "Attached to" is set to NAT.
|
USB Tab Uncheck "Enable USB Controller"
|
|
|
|