3
Step-1: Installing/Configuring Oracle VirtualBox On Windows 7. 1. Install Oracle VirtualBox-4.3.2-90405-Win, Oracle_VM_VirtualBox_Extension_Pack-4.3.2-90405 on Window 7 64-bit laptop from https://www.virtualbox.org . Procedure: Step-2: Creating Virtual Machines, Installing OEL 5.4 guest Operating system 1. 2. Create Virtual Machines (edbar2p55). Creating VM : Select 'NEW' from 'Group/Machine' tab Specify Name, Type and OS Version: edbar2p5, linux and Oracle. Give Memory size: 4096MB For 'Hard disk': Choose option: 'Create a virtual hard drive now' For 'Hard drive file type', Choose option: VDI(VirualBox disk image) For 'Storage on Physical hard drive',Choose Option: Dynamically Allocated Specify File Location and Size: D:\VirtualBox VMs\Support Lab\edbar2p5\edbar2p5.vdi and 60GB. Click 'Finish'. 2. Install Oracle Linux 5.4 32-bit guest Operating System from Enterprise-R5-U4-Server- i386-dvd. References: http://www.oratraining.com/blog/2012/02/creating- oracle-virtualbox-virtual-machine-with-oracle-linux Steps : -Mount the OEL5.4 on the Virtual CD. -Press Enter to continue with Graphical mode installation -At this moment we can ignore this message if it appears since graphics is already available. Once we install Virtualbox Guest Additions (Explained later) -Use TAB to select between options. Select “Skip” and press Enter -Keep default “English (English)” Click Next -* Select 'Review and modify partition layout' and click 'NEXT' when prompted Confirm 'Yes'. - Give as follows: /u01 - 31720 GB /u02 - 15000 GB / - 10592 GB /swap- 5024 GB (max that can be allocated.) - Next - At Network Devices, Do the following: *Choose EDIT And Disable IPV6 support *Select 'Manual configuration' for IPV4 support, and Assign the IP address and Prefix as 192.168.168.11/255.255.255.0 *Give hostname as: edbar2p5.oracle.us.com *Under 'Miscellaneous Settings' ,Specify Gateway: 192.168.168.1 Next - Choose time as: ASIA/DUBAI - Give root password: root123 Select Customize now and click Next Make sure to include following while selecting. Software Development, Web Server, Clustering, Storage Clustering <NEXT> Select 'Development' -> Keep Check Only for 'Development Libraries', and 'Development tools' and uncheck all. -> Click on Tab 'Optional packages' -> check 'libstdc++44-devel-4.4.0-6.el5.I386' Select 'Developement'-> Check 'Development tools'-> Click on Tab 'Optional packages' -> check all packages starting with 'gcc' and lmake package. Select 'Base System' and Check 'System tools' and then Click on Tab 'Optional packages'-> and choose 'oracle- validated-1.0....el5.I386. Then Click <NEXT> Again <NEXT> to start the Installation ...... After completing the installatin, Reboot the server, and do the following below: - Choose disable the Firewall. - Choose Disable 'SELinux' - Finally <Finish>, The server reboots again. Note: OS Installation took around 20-30minutes. File Ref: document.doc (v. Error: Reference source not found )

HowTo Install VMbox and Extension

Embed Size (px)

DESCRIPTION

IMP

Citation preview

CR010_2

Step-1: Installing/Configuring Oracle VirtualBox On Windows 7.

1.Install Oracle VirtualBox-4.3.2-90405-Win, Oracle_VM_VirtualBox_Extension_Pack-4.3.2-90405 on Window 7 64-bit laptop from https://www.virtualbox.org.

Procedure:

Step-2: Creating Virtual Machines, Installing OEL 5.4 guest Operating system

1. Create Virtual Machines (edbar2p55).Creating VM:Select 'NEW' from 'Group/Machine' tab

Specify Name, Type and OS Version: edbar2p5, linux and Oracle.

Give Memory size: 4096MB

For 'Hard disk': Choose option: 'Create a virtual hard drive now'

For 'Hard drive file type', Choose option: VDI(VirualBox disk image)

For 'Storage on Physical hard drive',Choose Option: Dynamically AllocatedSpecify File Location and Size: D:\VirtualBox VMs\Support Lab\edbar2p5\edbar2p5.vdi and 60GB.

Click 'Finish'.

2. Install Oracle Linux 5.4 32-bit guest Operating System from Enterprise-R5-U4-Server-i386-dvd. References: http://www.oratraining.com/blog/2012/02/creating-oracle-virtualbox-virtual-machine-with-oracle-linuxSteps:

-Mount the OEL5.4 on the Virtual CD.

-Press Enter to continue with Graphical mode installation

-At this moment we can ignore this message if it appears since graphics is already available. Once we install Virtualbox Guest Additions (Explained later)

-Use TAB to select between options. Select Skip and press Enter-Keep default English (English) Click Next

-* Select 'Review and modify partition layout' and click 'NEXT' when prompted Confirm 'Yes'.

- Give as follows:

/u01 - 31720 GB

/u02 - 15000 GB

/ - 10592 GB

/swap- 5024 GB (max that can be allocated.)

- Next

- At Network Devices, Do the following:

*Choose EDIT And Disable IPV6 support

*Select 'Manual configuration' for IPV4 support, and Assign the IP address and Prefix as 192.168.168.11/255.255.255.0

*Give hostname as: edbar2p5.oracle.us.com

*Under 'Miscellaneous Settings' ,Specify Gateway: 192.168.168.1

Next

- Choose time as: ASIA/DUBAI

- Give root password: root123

Select Customize now and click NextMake sure to include following while selecting.

Software Development, Web Server, Clustering, Storage Clustering

Select 'Development' -> Keep Check Only for 'Development Libraries', and 'Development tools' and uncheck all. -> Click on Tab 'Optional packages' -> check 'libstdc++44-devel-4.4.0-6.el5.I386'

Select 'Developement'-> Check 'Development tools'-> Click on Tab 'Optional packages' -> check all packages starting with 'gcc' and lmake package.

Select 'Base System' and Check 'System tools' and then Click on Tab 'Optional packages'-> and choose 'oracle-validated-1.0....el5.I386.

Then Click

Again to start the Installation ......

After completing the installatin, Reboot the server, and do the following below:

- Choose disable the Firewall.

- Choose Disable 'SELinux'

- Finally , The server reboots again.

Note: OS Installation took around 20-30minutes.

3. Install the VMBox Guest Additions in VM. Ensure copy/paste, Folder sharing working. Reference:

http://vishalorcl.blogspot.ae/2013/09/install-virtualbox-linux-guest.htmcd /u02/software/VBOXADDITIONS_4.3.2_90405/ ./ VBoxLinuxAdditions.runIssue encountered:

Building main guest additions module Failed.

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

Resolution/Solution steps:

Note: Always boot the OS using the latest kernel other than the 2.6.18-164.el5PAEStep-1 Set up Oracle Linux 6 with public-yum for all updates

-Log in as user root

-Download the yum repo file from http://public-yum.oracle.com# cd /etc/yum.repos.d

# wget http://public-yum.oracle.com/public-yum-ol6.repo

-If you want, you can edit the repo file and enable other repositories, I enabled [ol6_UEK_latest] by just setting enabled=1 in the file with a text editor.

-Run yum repolist to show the registered channels and you see we are including everything including the latest published RPMs.Step-2:

# yum install kernel-devel

# yum install gcc

# yum install kernel

Reboot the system and re-run ./ VBoxLinuxAdditions.run

6. Change the resolution to higher value.

Click on System -> Preferences -> Screen Resolution

Change the resolution to 1024768. Click Apply. On next reboot the system will show higher resolution.

2.Remove old Oracle Linux Kernels. And keeping only the most updated with 'YUM'Procedure:

Login as root, and using 'yum' remove the old kernel as below:[root@edbar2p6 init.d]# uname -r

2.6.18-371.1.2.0.1.el5[root@edbar2p6 init.d]# rpm -qa | grep kernelkernel-devel-2.6.18-371.1.2.0.1.el5

kernel-PAE-devel-2.6.18-164.el5

kernel-2.6.18-371.1.2.0.1.el5

kernel-headers-2.6.18-164.el5

kernel-2.6.18-164.el5

kernel-PAE-2.6.18-164.el5#yum remove kernel-2.6.18-164.el5#yum remove kernel-PAE-2.6.18-164.el5[root@edbar2p6 init.d]# rpm -qa | grep kernel[root@edbar2p6 init.d]# reboot ( then test ,)Test by starting all db & grid control services................................

3.

Finally, Clone each VM and keep the Backup to re-start LAB when require.......................

Reference URLs:

https://www.virtualbox.org.https://edelivery.oracle.comhttp://www.oratraining.com/blog/2012/02/creating-oracle-virtualbox-virtual-machine-with-oracle-linux/ (vip for sample VM setups...)http://public-yum.oracle.comhttp://vishalorcl.blogspot.ae/2013/09/install-virtualbox-linux-guest.htm

http://www.oracledistilled.com/windows/configuring-the-loopback-adapter-on-microsoft-windows/

http://www.oracle.com/technetwork/server-storage/linux/asmlib/ol6-1709075.htmlhttp://oracleexamples.wordpress.com/2011/08/08/how-to-install-asmlib-from-oracles-public-yum/For 11gR1 GridControl Setup:Case Study - Installing Grid Control 11.1.0.1 - Installation of jdk1.6 0n Linux x86_64 Before Installing WebLogic Server 10.3.2 (Doc ID 1063587.1)

EM 11g: Required External Components and Versions for the Grid Control 11.1.0.1.0 Installation (Doc ID 1106105.1)

How to Download and Apply the Recommended WLS patch WDJ7 (9438213) on WLS for 11g Grid Control Installation or Upgrade (Doc ID 1072763.1)

File Ref: SAW - size hardware for Portal implementation (v. DRAFT 1A )