Skip to content

Latest commit

 

History

History
83 lines (71 loc) · 4.48 KB

oracle59.md

File metadata and controls

83 lines (71 loc) · 4.48 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 on Ubuntu 13.04 x86_64, guest additions installed, packaged using Vagrant 1.2.2.

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

Vagrant Base Box Information

  1. Release: Oracle Linux 5.9 x86_64
  2. Kernels: UEK2 => 2.6.39-400.24.1.el5uek, Red Hat Compatible Kernel => 2.6.18-348.6.1.0.1.el5
  3. VirtualBox Guest Additions 4.2.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 July 4, 2013. 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 Mode - NAT
    • Port forwarding configured for NAT => VBoxManage modifyvm "oracle64" --natpf1 "guestssh,tcp,,2222,,22"
    • Hostname => oracle.vagrantup.com
  9. Extra packages installed
    • tmux (~vagrant/.tmux.conf based on Gist)
    • 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 1.9.3-p448 installed using ruby-build
  • chef 11.4.4 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, ruby-shadow

Getting started

Download the base box and get the box started

$ vagrant box add oracle59 https://dl.dropbox.com/s/n5o3gfdgjc3ekhl/oracle59.box
$ mkdir test_environment
$ cd test_environment
$ vagrant init oracle59
$ vagrant up
$ vagrant ssh

Reference

Vagrant - Getting Started Guide

A List of base boxes for Vagrant