Oracle 12.1.0.2 Database install with Vagrant on Centos 6.5 (Jellema and Biemond)

Lucas Jellema writes the following in August 2014.

https://technology.amis.nl/2014/08/04/quick-generation-of-a-virtualbox-vm-with-oracle-database-12-1-0-2-ee-on-oracle-linux-5-6/

Based upon Edwon Biemonds work:

https://github.com/biemond/biemond-oradb

This leverages Edwin Biemonds repos’s so bug fixes might be there.  The only issue I had was taking out the X libraries in db.pp in the manifests directory.

===> ‘libXext’ and ‘libXtst’

These are not needed anymore.

Total install time after downloading binaries from Oracle.

==> db12102: Notice: Finished catalog run in 1376.77 seconds or 22 Minutes.

Not bad!

Advertisements
Tagged ,

VirtualBox on Mac Nit with Cisco VPN

I have to use Cisco VPN to log into the corporate network.  This causes me to lose connectivity to my VBox guest via the host only adapter (vboxnet0).  This is expected.  However, once I logoff the VPN, I am unable to ping the adapter.  In my case, the adapter for this guest is assigned ip address 192.168.50.5. The simple solution is to Log into Terminal and refresh the interface…so you don’t have to reboot.

sudo ifconfig vboxnet0 down
sudo ifconfig vboxnet0 up

Probably should write an Automater script for that…something like

do shell script "sudo ifconfig vboxnet0 down" with administrator privileges

Ahh better.

VirtualBox 4.3.4 Released

For Windows users, I believe this release took care of some of the networking issues when using the host adapter.  I uninstalled VirtualBox and then re-installed 4.3.4.  Virtual machines need to be stopped.  When I used vagrant up. I had some issues with the driver. …but I also had to make sure that the virtual machines were not in a saved state or the driver won’t be installed and therefore the virtual machine will not be brought up.

vagrant-soasuite_admin_1385504136---Settings

 

I also confirmed that the Guest Additions do not need to be updated.  Yeah!

Announcement-New vagrant box uploaded – centos-6.4-x86_64.box”

https://dl.dropboxusercontent.com/u/97268835/boxes/centos-6.4-x86_64.box

This has VBGA 4.3.2 installed and is smaller in size. I also disabled selinux and added a puppet bootstrap install script to the code.  Therefore in your Vagrantfile  you will need to change the following:

~~~

config.vm.box = “centos-6.4-x86_64”
config.vm.box_url = “https://dl.dropboxusercontent.com/u/97268835/boxes/centos-6.4-x86_64.box”

~~~

This was made via http://packer.io with this helpful post:

http://ariya.ofilabs.com/2013/11/using-packer-to-create-vagrant-boxes.html

Updating VirtualBox Guest Additions in Vagrant

Change happens, the centos64 vagrant with VirtualBox Guest Additions are now out of date with the rollout to 4.3.2.  I  don’t want to update those additions quite yet since it might impact other users or post a new box which has the latest additions.  I have done some preliminary testing with the vagrant plugin below. Give it a try and tell me if you like it.

I was looking for this because I was getting checksum errors when copying files from the /vagrant directory…and was frustrated that I would have to run “vagrant provision” after a 20 minute failure.  It is better to upgrade the box.

https://github.com/dotless-de/vagrant-vbguest

11/15/2013 – Update

The version that I was using 0.9 (vagrant plugins list)  Generally worked ok..however I would have some issues when a box already add the guest additions already installed.  Once I started with packer.io…my box creation days are wildly simplified..so I think I will just create a new box with the same name and post it with the latest VBGA.  Open for comments on this.

Vagrant on VirtualBox 4.3.2 on Windows

I would hold off on upgrading from VirtualBox 4.2 if you are using Vagrant.

https://github.com/mitchellh/vagrant/issues/2392

There is a beta build for 4.3.3 (In the link)…which addresses private network issues on Windows, however it is being tested so use at your own risk.

 

 

 

Install Oracle XE 11gR2 with Vagrant

Working for Oracle, you need to be able to use and install a database.  While I am primarily focused on Fusion Middleware, the Oracle XE database, while not as “cool” as the new 12c database, is a very functional and useful tool for both development and learning.

I am working on some projects which will need to have the database act as an application data store as well as hold, for example,  the MDS for SOA Suite 11g R2.  However, I don’t need to have a production database system. I need just enough to get the job done on my limited development system.

Once again, we run into the issue with a fully constructed VM.  The fully constructed templated VM doesn’t give me the flexibility, read agility, to prototype solutions for myself or my customers.

Once again, we can leverage the type 2 hypervisor from VirtualBox to help build out this component of the larger stack and have the VM do the specific function for which it is designed.  This is the cloud way.

We will, in a latter (hopefully not to much latter) post, show how we can leverage Vagrant to start assembling these infrastructure components that do something useful.  Running VM’s and installing software is not that interesting.  VM’s doing or proving some workload are much more interesting.

Here you go…test it out. I hope it works for you.

https://github.com/matthewbaldwin/vagrant-xe11g

/Matt

@baldwinonline

Vagrant Error when importing a Box

I am running on Mac with VirtualBox 4.2.18 and out of no where started getting these errors.

/// Problem

Bringing machine ‘default’ up with ‘virtualbox’ provider…

[default] Importing base box ‘centos64’…

Progress: 20%There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: [“import”, “/Users/mbaldwin/.vagrant.d/boxes/centos64/virtualbox/box.ovf”]

Stderr: 0%…10%…20%…30%…40%…50%…60%…70%…80%…90%…100%

Interpreting /Users/mbaldwin/.vagrant.d/boxes/centos64/virtualbox/box.ovf…

OK.

0%…10%…20%…

Progress state: VBOX_E_FILE_ERROR

VBoxManage: error: Appliance import failed

VBoxManage: error: Could not create the clone medium ‘/Users/mbaldwin/VirtualBox VMs/centos64_1/box-disk1.vmdk’ (VERR_VD_VMDK_INVALID_FORMAT)

VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Appliance, interface IAppliance

VBoxManage: error: Context: “int handleImportAppliance(HandlerArg*)” at line 781 of file VBoxManageAppliance.cpp

//// Solution 

execute “vagrant box remove centos64”
execute “vagrant up” – reinstall the image…

As they say…it worked for me.

 

Re-install VirtualBox for use on OSX 10.9 Mavericks

I was in an internal workshop yesterday and was given an image to use in the workshop.  Sadly, it wasn’t a Vagrant scripted image. 😉  Anyways.

I have a Macbook Air (2013)  and had VirtualBox 4.2.18 installed.  The image that I was using was using bridged networking and the virtual machine networking failed upon start-up.

Well…the answer to the story is re-install VirtualBox and all is right with the world.  You won’t notice the problem if using Vagrant…since by default you are using NAT networking.

— Append answer to this:

Make sure that you run the uninstall utility in the install package, reboot, and then run the uninstall utility in the install package to make sure everything is cleaned out…then run install.

 

Tagged

Install Oracle Service Bus with Vagrant

Oracle Service Bus

Oracle Service Bus

I am working with a team on a  federated a service bus design for a customer.  It is one thing to sketch out a design on paper and it is another to start looking at more implementation specific details.  

While I have installed OSB many times, I wanted to have an installer which would have more agility. While I like virtual machine templates, they have limitations when you start changing  fundamental infrastructure pieces such as the JVM, the OS, patches to the AppServer.  From a configuration management perspective, developers get caught in not incorporating those changes in their work and this leads to errors when the application goes through the deployment cycle to dev, test and prod.  In addition, many of these templates are really made for production rollout and management and are tuned accordingly.

Over the past week, I have been working on setting up a focused automated install and domain creation for OSB (ps6).  I have posted the install on github.  As before, I have been using Edwin Biemond’s modules and making them task/product specific in a single package that works everytime for a developer or someone evaluating.  I know there are many postings about installing OSB. I am more interested in removing the cruft so that you can get started using the product in very short order.  In this case, you can have the bits installed and the running domain complete in about 15 minutes.

https://github.com/matthewbaldwin/vagrant-osb

This took Edwin Biemonds sample OSB template and focused just on installing OSB with the latest modules that he had published.  His module scripts had migrated since he initially wrote them and this is a self contained script that you can use.

I am not going to go over the install process, that is pretty self explanatory (read the WLS 1212c on this blog for some analogous detail on getting Vagrant installed on a Windows machine).

Some features of the site.pp script that I want to highlight.

  1. Patching WLS 10.3.6 with BSU so that you are always using the latest patchset.
  2. OSB Domain Creation and Starting the Domain
  3. Create keystores for automatic WLST login for scripting.

Edwin Biemond’s github repos can be found here:

https://github.com/biemond

Enjoy…

Matt

Tagged , ,