Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
87 lines (74 sloc) 4.51 KB

Oracle Linux 5 x86_64 Base Box for Vagrant

This is a minimal base box built for Vagrant. Initially created using VirtualBox 4.2.16 (now 4.3.16) on Linux x86_64, guest additions installed, packaged using Vagrant 1.2.2 (now 1.6.5).

NOTE: This Oracle Linux 5.11 base box can be updated to future 5.x minor releases (if there still is) once it is made available via Oracle's Public YUM Server. You also get package updates and errata for free.

Vagrant Base Box Information

  1. Release: Oracle Linux 5.11 x86_64
  2. Kernels: UEK R2 => 2.6.39-400.215.10.el5uek, Red Hat Compatible Kernel => 2.6.18-398.
  3. VirtualBox Guest Additions 4.3.16 installed
  4. Default run level 3 => id:3:initdefault:
  5. Public YUM and EPEL configured, system up-to-date (packages and errata) as of 30 September, 2014. 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 ext3 300M
    • /dev/sda2 => LVM Physical Volume
    • /dev/linux/root => / ext3 15GB
    • /dev/linux/home => /home ext4 4.1GB
    • /dev/linux/swap => swap 512MB
    • reserved blocks percentage: / => 0.1%, /home => 0%
    • 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 "oracle511" --natpf1 "guestssh,tcp,,2222,,22"
    • Hostname =>
  9. Extra packages installed
    • tmux (~vagrant/.tmux.conf based on Gist)
    • vim (~/.vimrc)
    • gdb
    • strace
    • rsync
    • htop
    • pv
    • ack
    • colordiff
    • bash-completion
    • sl
    • cowsay
    • linux_logo (compiled from source)
    • screenfetch (shell script)
  10. Services
    • sshd (on)
    • iptables (off)
    • ip6tables (off)
  11. SELinux is disabled, to re-enable, edit /etc/selinux/config and reboot
  12. Prepare to install Oracle Database 10g or 11g, the oracle-validated package installs all dependencies and configure the system to meet all requirements with one simple step
    • Install oracle-validated RPM => yum install oracle-validated
    • Refer to How I Simplified Oracle Database Installation on Oracle Linux
    • Download Oracle Database and Fusion Middleware (e.g. WebLogic Server) installers and get your hands dirty ;-)
    • NOTE: The oracle-validated RPM installs X11 client libraries but NOT X Window System server packages.
    • To use GUI, run ssh X11 Forwarding by using either ssh -X vagrant@localhost -p 2222 (input vagrant user password) or ssh -X -i /path/to/vagrant vagrant@localhost -p 2222 for public key authentication. Private key vagrant is available here.
    • In case trusted X11 forwardings are required, use ssh -Y vagrant@localhost -p 2222 instead of ssh -X vagrant@localhost -p 2222.

Basic Software

  • rbenv installed in ~vagrant/.rbenv
  • ruby 2.1.3 installed using ruby-build
  • chef 11.16.2 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-5.11-x86_64 ADDRESS
$ mkdir test_environment
$ cd test_environment
$ vagrant init oraclelinux-5.11-x86_64
$ vagrant up
$ vagrant ssh


Vagrant - Getting Started Guide

A List of base boxes for Vagrant