Wednesday, September 25, 2013

My LAB – HW and SW

 

Hardware

  • 1 Dell Latitude E6430 – 8GB(7.88GB usable) RAM

Software

  • Windows 7 (64-Bit) Host OS
  • Oracle VM VirtualBox

“VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. Not only is VirtualBox an extremely feature rich, high performance product for enterprise customers, it is also the only professional solution that is freely available as Open Source Software under the terms of the GNU General Public License (GPL) version 2.”

Download URL: http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html?ssSourceSiteId=ocomen

  • Oracle VM VirtualBox Extension Pack

Download URL: Same as above.

  • Oracle VM VirtualBox Linux guest additions – Click here to find out how to install guest additions for the guest VMs.
  • Oracle Enterprise Linux 5.4 (32-Bit)

http://edelivery.oracle.com

V17793-01

  • Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 (32-Bit)

11/10/11: Patch Set 11.2.0.3 for Linux, Solaris, Windows, AIX and HP-UX Itanium is now available on support.oracle.com. Note: it is a full installation (you do not need to download 11.2.0.1 first).

Download patchset 10404530

  • On one of the VMs: Download Oracle Documentation for Oracle Database, 11g Release 2 (11.2) - 825.70 MB

http://www.oracle.com/technetwork/database/enterprise-edition/documentation/database-093888.html

VM details:

1. VM Name: OCM [This is base VM server, all other VMs will be cloned from this]

eth0 – NAT – The IP will be assigned by your wireless router [DHCP]

eth1 – Host only ethernet adapter – The IP 192.168.56.101 [Static – depends on Ethernet adapter VirtualBox Host-Only Network IP which is 192.168.56.1]

Tuesday, September 10, 2013

INS-32031 INS-32033 while installing 11.2.0.3 on linux

 

The OUI for 11.2.0.3 failed with below errors:

[INS-32031] Invalid Inventory Location

[INS-32033] Central Inventory Location is not writable

 

I had specified inventory directory as “/u01/app/oraInventory”

I checked /u01/app and found that it has oracle:oinstall on oracle directory but there is no oraInventory directory.

I was hoping OUI should create the oraInventory directory automatically under /u01/app. But that did not happen and the reason was app directory was owned by root:root.

As root I did:

mkdir –p /u01/app/oraInventory

chown –R oracle:oinstall /u01/app/oraInventory

chmod –R 775 /u01/app/oraInventory

Then it worked. So for the first Oracle install on a machine need to make sure that this is created and owned by oracle software owner.

Upgraded VirtualBox, Extension Pack & Linux Guest Additions to 4.2.18

 

Today (9/10/2013) VirtualBox popped saying new version (4.2.18) of VirtualBox is available for download.

http://download.virtualbox.org/virtualbox/4.2.18/VirtualBox-4.2.18-88781-Win.exe

After install of new version, VirtualBox suggested to upgrade extension pack as well to 4.2.18.

http://dlc.sun.com.edgesuite.net/virtualbox/4.2.18/Oracle_VM_VirtualBox_Extension_Pack-4.2.18.vbox-extpack

Once above two upgrades were done, I started my guest VM, it prompted “new version (4.2.18) of guest additions is available to install”. Installed using the sh ./VBoxLinuxAdditions.run

 

 

Change log: VirtualBox 4.2.18 (released 2013-09-06)
This is a maintenance release. The following items were fixed and/or added:

  • VMM: properly handle NMIs on Linux hosts with X2APIC enabled
  • VMM: fixed potential crashes with 64-bit guests on 32-bit hosts (bug #11979)
  • GUI / seamless: properly handle mouse wheel scroll events
  • GUI, VBoxManage: when unregistering a VM, also unregister the hard disk images which are used exclusively (bug #10311)
  • GUI: prevent crashes under certain conditions on X11 hosts
  • 3D: multiscreen fixes (incorrect mouse position, flickers)
  • 3D Support: several fixes for the Windows WDDM video driver (multiscreen, seamless)
  • Snapshots: made live snapshots work again (bug #9255)
  • Teleportation: made it work again (bug #9455)
  • VBoxManage: on snapshot take, --pause is default and --live is for doing live snapshots
  • VBoxSVC: don't crash on systems with many VLAN interfaces (Solaris hosts only)
  • Network: after the host resumes from suspend, disconnect and reconnect the virtual network cables to force renewing the DHCP leases for the guests. So far only Mac OS X hosts and Windows hosts (bug #10063).
  • NAT: on name server changes force a reconnect of the virtual network cable to notify the guest (Mac OS X hosts only)
  • Mac OS X installer: keep previously installed Extension Packs on VirtualBox upgrade
  • Linux hosts / guests: Linux 3.11 fixes (bug #12001)
  • Solaris hosts: fixed a potential kernel panic caused due to unexpected preemption due to logging.
  • Windows hosts: fixed an issue with USB2 devices being inaccessible when plugged into USB3 ports.
  • Linux Additions: added PCI device identifier to vboxvideo.ko fixing DRI initialization under certain conditions (bug #11957)
  • Linux Additions: fixed udev detection in the init script with Linux 3.x kernels

Friday, September 6, 2013

Install VirtualBox linux guest additions in ocm VM

 

Tried to follow steps from this article:

http://www.dedoimedo.com/computers/virtualbox-guest-addons.html

But it was failing with below message:

The command was run: sh ./VBoxLinuxAdditions.run

ocm7

 

Tried to run “yum install kernel-devel-2.6.18-164.el5”, it returned nothing to do.

ocm8

Then realized that yum was not setup correctly.

http://public-yum.oracle.com/ 

Above link has details on how to setup yum.

ocm9

Then performed(as per http://www.virtualbox.org/manual/ch04.html#idp53088720) :

yum install kernel-devel


==> Tried to run sh ./VBoxLinuxAdditions.run  and it still failed with same message. Did a reboot. But still failed !!!


 


Paid close attention to output and realized that it could be because of missing gcc.


“The gcc utility was not found.If the following module compilation fails then this could be the reason and you should try installing it.”


Then did:


yum install gcc


==> Tried to run sh ./VBoxLinuxAdditions.run  and it still failed with same message. Did a reboot. But still failed !!!


Check /var/log/vboxadd-install.log:


ocm10


/tmp/vbox.0/Makefile.include.header:97:  *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run make again.


uname –r showed:


2.6.18-164.el5


Checked /usr/src/kernels, it didnt have matching directory to above release:


it had “2.6.18-348.16.1.0.1.el5-i686”


So did “yum install kernel”


Above command installed release 2.6.18-348. Rebooted the VM and uname –r showed 2.6.18-348.16.1.0.1.el5


==> Tried running again “sh ./VBoxLinuxAdditions.run“


and this time it worked.


ocm11



Linux guest additions is done!!