Permalink
Find file
e10a9fa Jan 12, 2016
88 lines (75 sloc) 4.24 KB

Oracle Linux 7 x86_64 Base Box for Vagrant

This is a minimal base box built for Vagrant. Initially created using VirtualBox 4.3.24 (now 5.0.12) on Linux x86_64, guest additions installed, packaged using Vagrant 1.8.1.

NOTE: This Oracle Linux 7.2 base box can be updated to latest 7.x minor releases once it is made available via Oracle's Public YUM Server. You also get package updates and errata for free. For example, once Oracle Linux 7.3 is made available, just run yum update -y and stay sharp. Enjoy!

Vagrant Base Box Information

  1. Release: Oracle Linux 7.2 x86_64
  2. Kernels: UEK R4 => kernel-uek-4.1.12-32.el7uek.x86_64, Red Hat Compatible Kernel => kernel-3.10.0-327.4.4.el7.x86_64
  3. VirtualBox Guest Additions 5.0.12 installed
  4. Default boot target => multi-user.target, /etc/inittab is NO LONGER used due to the switch to systemd.
  5. Public YUM and EPEL configured, system up-to-date (packages and errata) as of 12 January, 2016 (UTC+11). Simply run yum update -y as root to stay updated.
  6. Users and passwords
    • root / vagrant
    • vagrant / vagrant Public Key authentication configured for vagrant, password-less sudo
  7. File Systems Layout
    • Virtual Hard Disk Capacity 20GB, Dynamically allocated
    • /dev/sda1 => /boot ext4 500M
    • /dev/sda2 => LVM Physical Volume
    • /dev/linux/root => / xfs 15GB
    • /dev/linux/home => /home ext4 3.8GB
    • No swap partition (LV) or swap file is configured
    • reserved blocks percentage: /boot => 0%, /home => 0%
    • btrfs support, btrfs-progs tools installed
    • In case more storage space is needed, create a new hard disk using VBoxManage createhd, attach it using VBoxManage storageattach. Then create a physical volume using the new HDD, add it to existing volume group, either grow existing logical volumes or create new ones, as you wish.
  8. Networking
    • Networking mode - NAT
    • Port forwarding configured for NAT => VBoxManage modifyvm "oracle71" --natpf1 "guestssh,tcp,,2222,,22"
    • Hostname => oraclelinux7.vagrantup.com
    • For people who prefer the old NIC naming scheme (ethX instead of more predictable enpXsY), pass net.ifnames=0 as kernel boot parameter to revert to old style.
  9. Extra packages installed
    • tmux (~vagrant/.tmux.conf based on Gist)
    • vim (with Vundle.vim, see ~/.vimrc)
    • gdb, strace, crash
    • git, tig
    • rsync
    • htop
    • pv, tree, psmisc
    • wget, curl, gawk, ack
    • colordiff
    • zsh (with prezto)
    • bash-completion
    • net-tools, bind-utils, ethtool, iptraf, iftop, nmap
    • conntrack, iptstate
    • lshw, pciutils, usbutils
    • reptyr, ntsysv, yum-utils
    • sl
    • screenfetch (shell script)
  10. systemd services
    • sshd.service (enabled)
    • firewalld.service (disabled)
    • kdump.service (disabled)
    • postfix.service (enabled)
    • rhnsd (off)
  11. SELinux is disabled. To re-enable it, edit /etc/selinux/config and reboot
  12. Optional debuginfo repository added, disabled by default. Enable by editing /etc/yum.repos.d/debuginfo.repo

Basic Software

  • rbenv installed in ~vagrant/.rbenv
  • ruby 2.2.4 installed using ruby-build
  • chef 12.6.0 installed
  • Puppet YUM repository configured and enabled. To install puppet master run yum install puppet-server, to install puppet on agent nodes run yum install puppet, to configure, check Configuring Puppet
  • Other gems => bundler, rbenv-rehash

Getting started

Download the base box and get the box started

$ vagrant box add oraclelinux-7-x86_64 ADDRESS
$ mkdir test_environment
$ cd test_environment
$ vagrant init oraclelinux-7-x86_64
$ vagrant up
$ vagrant ssh

Reference

Vagrant - Getting Started Guide

A List of base boxes for Vagrant