- Project: VagrantBoxes@GitHub
- Download:
vagrant init terrywang/oraclelinux-5-x86_64 && vagrant up
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.
- Release:
Oracle Linux 5.11 x86_64
- Kernels: UEK R2 =>
2.6.39-400.215.10.el5uek
, Red Hat Compatible Kernel =>2.6.18-398.0.0.0.1.el5
- VirtualBox Guest Additions 4.3.16 installed
- Default run level 3 =>
id:3:initdefault:
- Public YUM and EPEL configured, system up-to-date (packages and errata) as of 30 September, 2014. Simply run
yum update -y
asroot
to stay updated. - Users and passwords
root
/vagrant
vagrant
/vagrant
Public Key authentication configured for vagrant, password-less sudo
- 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 usingVBoxManage 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.
- Networking
- Networking mode - NAT
- Port forwarding configured for NAT =>
VBoxManage modifyvm "oracle511" --natpf1 "guestssh,tcp,,2222,,22"
- Hostname =>
oracle.vagrantup.com
- 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)
- tmux (
- Services
- sshd (on)
- iptables (off)
- ip6tables (off)
- SELinux is disabled, to re-enable, edit
/etc/selinux/config
and reboot - 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) orssh -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 ofssh -X vagrant@localhost -p 2222
.
- Install oracle-validated RPM =>
rbenv
installed in~vagrant/.rbenv
ruby 2.1.3
installed usingruby-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 runyum install puppet
, to configure, check Configuring Puppet - Other gems =>
bundler
,rbenv-rehash
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