Tuesday, September 10, 2013

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!!

Thursday, August 8, 2013

Increase VirtualBox Hard Disk (VDI) Size


1. Shutdown the VM for which you want to increase the hard disk size.
2. Make sure PATH environment variable has VirtualBox location included:
C:\Program Files\Oracle\VirtualBox
3. In the command prompt, cd to location of .vdi file for the virtual machine and execute below command (size is in MB):
VBoxManage modifyhd ocm1.vdi --resize 30720
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
This takes care of increasing size of vdi to 30GB.

http://www.turnkeylinux.org/blog/extending-lvm

Wednesday, August 7, 2013

Install Oracle Database 11g Enterprise Edition Release 11.2.0.3.0(32-bit)

 

Documentation for Oracle Database 11gR2: http://www.oracle.com/pls/db112/homepage

Database Quick Installation Guide for Linux x86

Database Installation Guide for Linux

We will directly jump to creating OS groups and user for Database software installation.

http://docs.oracle.com/cd/E11882_01/install.112/e24321/pre_install.htm#BABHHEJD

1. OCM1 VM was configured to use DHCP for IP and hostname. It was showing localhost.localdomain as hostname.

2. I changed hostname using system-config-network and updated hostname to ocm1.example.com

3. I left DHCP for IP address assignment.

4. Create below groups for database. I am not going to create ASM related groups yet.

/usr/sbin/groupadd oinstall

/usr/sbin/groupadd -g 502 dba

/usr/sbin/groupadd -g 503 oper

5. Create software owner i.e. oracle user:

/usr/sbin/useradd -u 501 -g oinstall -G dba oracle

passwd oracle

6. Create Oracle Base Directory

as root:

# mkdir -p /u01/app/oracle

# chown -R oracle:oinstall /u01/app/oracle

# chmod -R 775 /u01/app/oracle

**added below lines because of INS-32031 and INS-32033… See details http://vishalorcl.blogspot.com/2013/09/ins-32031-ins-32033-while-installing.html

# mkdir –p /u01/app/oraInventory

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

# chmod –R 775 /u01/app/oraInventory

7. Create software staging directory

as root:

# mkdir -p /sw

# chown -R oracle:oinstall /sw

# chmod -R 775 /sw

8. Login as oracle user and download “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 

(****OLD*** I realize the initial disk allocation of 12GB would not be enough as 11.2.0.3 software itself is 6GB. I currently have 4.5 GB free, so I would have to increase the hard disk size to 30GB so that I dont have to increase it so often as I will have to create a database later. Follow Increase VirtualBox Hard Disk (VDI) size )

9. unzip all the files in the same folder

10. It will generate: client, database, deinstall, examples, gateways, grid

11. Go to database and start OUI using:

./runInstaller

Screenshots:

1 2 3 4 5 6 7 8 9 10 11==> Fixed this (http://vishalorcl.blogspot.com/2013/09/ins-32031-ins-32033-while-installing.html )

12 13 14 15 16 ==> Installed all these missing packages using “yum install <packagename>”

17 18 19 20

 

11.2.0.3 software install is complete.

Saturday, August 3, 2013

Export Virtual Appliance

Virtual Machine OCM1 will be exported as appliance so that I can import in future for creating another virtual machine and to avoid to do all the installation again.

-Shutdown the VM OCM1

File -> Export Appliance

clip_image002

clip_image004

clip_image006

clip_image008