With special help from Oracle Red Samurai Edwin Biemond, here are the steps on creating an Oracle WebLogic 12c domain with Vagrant on a Windows machine acting as the host.
Edwin Biemond provided unparalleled support and his Puppet scripts are first rate. He can be found on github at https://github.com/biemond
Getting Oracle WebLogic 12c Version 12.1.2.0.0 stood up in under 10 Minutes*
What you need to download to get the environment stood up.
KIT REQUIRED:
Download and install the latest Version of VirtualBox:
Download and install Vagrantup:
Download and Install Git for Windows:
https://help.github.com/articles/set-up-git
For Provisioning Oracle WebLogic:
Download JDK7 u40
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Make sure you rename the jdk to jdk-7u40-linux-x64.tar.gz from jdk-7u40-linux-x64.gz
JDK7 Changes of Note as of 10/15/2013
Oracle released a new version of the JDK 1.7u45. This has been reflected and tested in the site.pp file. If you have an older JDK you will need to modify site.pp only. The JDK7 Puppet module does not need to be modified.
site.pp is located in c:\….\vagrant-wls12c-centos64\puppet\manifests\site.pp
Download Oracle WebLogic 12c version 12.1.2.0.0
http://www.oracle.com/technetwork/middleware/downloads/index-087510.html
Optional Tools:
PuTTy Terminal / PuTTy Key Generator
http://www.chiark.greenend.org.uk/~sgtatham/putty/
MacOS Users:
This was originally developed on MacOS and then ported for Windows users.
* Truth in Advertising Statement:
On the initial ‘vagrant up’ run, you will need to download the centos64.box on the initial run from dopbox. This can take more then 10 minutes, but at least I warned you.
The rest of the work has been done for you…have fun.
Vagrant – Google Chrome
vagrantup.com
Vagrant – Downloads – Google Chrome
Vagrant – Downloads – Google Chrome
Open File – Security Warning
Vagrant Setup
Vagrant Setup
Vagrant Setup
Vagrant Setup
Set Up Git · GitHub Help – Google Chrome
matthewbaldwin/vagrant-wls12c-centos64 – Google Chrome
GitHub you don't need an account…but you can always create one.
If you don’t login then press “Skip Setup” and the repository will be downloaded
GitHub
GitHub
Add downloaded wls_121200.jar and jdk-7u40-linux-x64.tar.gz
C:\Users\mbaldwin\Documents\GitHub\vagrant-wls12c-centos64\
Once you have synced with GitHub and a quicknote on how they are used
You will have directory structure in the image
Quick Note about VirtualBox shared files between the guest and the host when the virtual machine is booted up.
This directory is being shared with the guest VM. If you modify, delete or add files on the host, the same will happen on the guest and vice versa.
The directory c:\Users\mbaldwin\My Documents\GitHub\vagrant-wls12c-centos64 on the host is mapped to /vagrant on the linux guest. The subdirectories of \vagrant-wls12c-centos64 are also available on the Linux guest and automatically mounted.
Puppet modules and manifests on the host:
c:\Users\mbaldwin\My Documents\GitHub\centos64\puppet\modules (or manifests)
Are shown in the booted linux as
/vagrant/puppet/modules (or manifests)
AND
/etc/puppet/modules-0
/etc/puppet/manifests
GitHub
posh~git ~ vagrant-wls12c-centos64 [master]
posh~git ~ vagrant-wls12c-centos64 [master]
Note that we don’t have a centos64 vagrant box to work with here. We will add this box in the Vagrantfile. This is a onetime operation.
"vagrant up" posh~git ~ vagrant-wls12c-centos64 [master]
This is downloading the vagrant box specified in the Vagrantfile.
posh~git ~ vagrant-wls12c-centos64 [master]
Completed the download and now importing.
posh~git ~ vagrant-wls12c-centos64 [master]
Booting the vm…based upon the vagrantfile.
Whole Bunch of output
Big Pause posh~git ~ centos64 [master]
Just a quick note…this was from my test (Oracle Enterprise Linux) oel64.box. You will get the same pause.
Success – posh~git ~ centos64 [master]
Running is nodemanager as a linux service and AdminServer
Oracle WebLogic Server Administration Console – Google Chrome from Host Windows Machine
Since we port forwarded in the Vagantfile we can login from the host machine
login: weblogic/welcome1
WebLogic Console
"vagrant ssh" posh~git ~ centos64 [master]
Running vagrant ssh gets you into the machine as user vagrant
login as oracle posh~git ~ centos64 [master]
You can then su -l oracle and have access to the guest.
From here you have all the commandline control you need over this server.
"vagrant box list" posh~git ~ vagrant-wls12c-centos64 [master]
Exit out of the ssh to the git command line and you can see that you have the new vagrantbox added to your list. You can use this box as a starter box for your other work.
"vagrant destroy" – posh~git ~ vagrant-wls12c-centos64 [master]
With ‘vagrant destroy’ you then reset the box and when you run ‘vagrant up’ the Puppet scripts will run again.
Little Tip: If you chnage the provision scripts…you just need to run “vagrant provision”
Vagrant Documentation – Getting Started – SSH – For Windows Users
Information on setting up SSH with PuTTY…not really needed if using Git
http://docs-v1.vagrantup.com/v1/docs/getting-started/ssh.html
PuTTY Download Page – Google Chrome
PuTTY Key Generator
This procedure would be done after you import the vagrant box
Load private key:
This key is generated when you first run vagrant