Oracle Virtualization – Installing Oracle VM Server 2.2.1, Oracle VM Manager 2.2.0 and Deploying Oracle RAC 11gR2 (11.2.0.2) Oracle VM templates Linux x86 64 bit for
Oracle Virtualization – Installing Oracle VM Server 2.2.1, Oracle VM Manager 2.2.0 and Deploying Oracle RAC 11gR2 (11.2.0.2) Oracle VM templates Linux x86 64 bit for test configuration
Oracle Virtualization – Installing Oracle VM Server 2.2.1, Oracle VM Manager 2.2.0 and Deploying Oracle RAC 11gR2 (11.2.0.2) Oracle VM templates Linux x86 64 bit for test configuration
Oracle provides virtualization software ranging from bare metal implementations based on Oracle VM Server to a Microsoft Windows/Linux/Mac OS and Solaris deployments based on Oracle Virtual Box. Oracle VM Manager facilitates management of Oracle VM Server. In this article we will look at the installation of Oracle VM server and Oracle VM Manager on Oracle VirtualBox and will deploy Oracle RAC 11gR2 (11.2.0.2) Oracle VM templates Linux x86 64 bit for test configuration using Oracle VM Manager. All software can be downloaded from edelivery.oracle.com and the templates can be downloaded as a patch from MOS (patch 10113572). The approach described in the article is applicable on any supported platform although it is using Oracle VirtualBox for testing.
Software versions used are:
Oracle VirtualBox 4.0.0
Oracle VM Server 2.2.1
Oracle VM Manager 2.2.0
OEL 5.4
The article will cover the following:
VirtualBox configuration for VMServer machine and VMManager machine
Installation of Oracle VM Server
Installation of Oracle VM Manager
Deployment of Oracle RAC 11gR2 Oracle VM templates Linux x86 64bit for test configuration
In real life Oracle VM server runs on a dedicated set of servers and is installed as a bare metal product without the need of an Operating system. Oracle VM Manager is installed on a Linux box. Oracle VirtualBox can be successfully used for testing and self-study of the new features.
VirtualBox configuration to run VMserver machine and VMManager machine.
The article assumes that the VirtualBox is downloaded and installed and that both virtual machines are configured as follows.
OEL 54 is installed as a base OS for the OracleVMManager while Oracle VM Server is used for the OracleVM machine. The latter will be discussed in greater details in bullet item 2. Note that in case of OracleVMManager machine Guest additions are installed and the shared folder feature is enabled by placing in the guest /etc/rc.local the following command’ mount -t vboxsf OracleVMServer /media/windows’. Both machines also have multiple NIC defined. Bridged interfaces are required for the ORacleVM and OracleVMManager setup. NAP is for access to the Internet and the host-only adapters are for access from the host OS (Microsoft Windows in my case). All iso images are in the shared folder and the OEL or Oracle VM server iso is specified for the initial OEL and Oracle VM Server installation. For additional information related to OEL installation click here.
Installation of Oracle VM Server
Specify the Oracle-VM-Server-2.2.1.iso and start the OracleVM machine.
Skip the testing if already sure about the physical integrity of the media. Press Skip to continue.
Select the model of the keyboard and press OK.
Initialize the drive.
OK the default.
Select Yes to continue.
Review the layout and press OK to continue.
Press OK to continue.
Select eth3 interface for the VM management. Press OK to continue.
Enter 198.169.2.41 and the mask 255.255.255.0. Remember that this address will be used to talk to the Oracle VM Manager later.
Enter the gateway and DNS information as specified below.
Select a hostname and press OK to continue.
Select the time zone and press OK to continue.
Enter a password for the Oracle VM agent and press OK to continue.
Enter the root password and press OK to continue.
Press OK to continue and take a note of the location.
Wait for the installation to complete.
Wait for the installation to complete.
When installation completes press Reboot.
Acknowledge the license agreement.
After that you are about to login.
Installation of Oracle VM Manager
The article assumes that OEL is installed and networking is configured so that both OracleVM machine and OracleVM Manager machine can communicate. The /etc/hosts is as follows.
[root@oraclevmmgr racovm]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.2.18 oraclevmmgr.gj.com oraclevmmgr
192.168.2.41 oraclevm.gj.com oraclevm
[root@oraclevmmgr racovm]#
If only iso is available mount it as follows.
[root@oraclevmmgr cdrom]# mount -o loop,rw OracleVM-Manager-2.2.0.iso /media/cdrom
[root@oraclevmmgr cdrom]# cd /media/cdrom
[root@oraclevmmgr cdrom]# ls
EULA LICENSE readme.txt runInstaller.sh scripts source TRANS.TBL
[root@oraclevmmgr cdrom]# ./runInstaller.sh
bash: ./runInstaller.sh: Permission denied
Copy directory structure to a new location to be able to set the permissions.
[root@oraclevmmgr cdrom]# mkdir /media/vmmanager
[root@oraclevmmgr cdrom]# ls
EULA LICENSE readme.txt runInstaller.sh scripts source TRANS.TBL
[root@oraclevmmgr cdrom]# cd ../vmmanager
[root@oraclevmmgr vmmanager]# ls
[root@oraclevmmgr vmmanager]# cp -R /media/cdrom .
[root@oraclevmmgr vmmanager]# ls
cdrom
[root@oraclevmmgr vmmanager]# cd cdrom
[root@oraclevmmgr cdrom]# ls
EULA LICENSE readme.txt runInstaller.sh scripts source TRANS.TBL
[root@oraclevmmgr cdrom]# ./runInstaller.sh
bash: ./runInstaller.sh: Permission denied
[root@oraclevmmgr cdrom]# chmod 777 runInstaller.sh
[root@oraclevmmgr cdrom]#
Execute the installer and respond to the prompts.
[root@oraclevmmgr cdrom]#
[root@oraclevmmgr cdrom]# ./runInstaller.sh
Welcome to Oracle VM Manager 2.2
Please enter the choice: [1|2|3]
1. Install Oracle VM Manager
2. Uninstall Oracle VM Manager
3. Upgrade Oracle VM Manager
1
Starting Oracle VM Manager 2.2 installation …
Do you want to install a new database or use an existing one? [1|2]
1. Install a new Oracle XE database on localhost
2. Use an existing Oracle database in my network
1
Prepare to install the Oracle XE database …
Checking the supported platforms … Done
Checking the prerequisite packages are installed … Done
Checking the available disk space … Done
Installing the oracle-xe-univ package (rpm) now …
Done
Oracle Database 10g Express Edition Configuration
————————————————-
This will configure on-boot properties of Oracle Database 10g Express
Edition. The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts. Press to accept the defaults.
Ctrl-C will abort.
Specify the HTTP port that will be used for Oracle Application Express [8080]:
Specify a port that will be used for the database listener [1521]:
Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:
Confirm the password:
Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:
Starting Oracle Net Listener…Done
Configuring Database…Done
Starting Oracle Database 10g Express Edition Instance…Done
Installation Completed Successfully.
To access the Database Home Page go to “http://127.0.0.1:8080/apex”
Checking the availability of the database …
Set default database schema to ‘OVS’.
Please enter the password for account ‘OVS’:
Confirm the password:
Creating the Oracle VM Manager database schema …Done
Installing the ovs-manager package (rpm) …
Done
Installing the oc4j package (rpm) …
Done
Please enter the password for account ‘oc4jadmin’:
Confirm the password:
Starting OC4J … Done.
To access the OC4J Home Page and change the password go to http://127.0.0.1:8888/em
Deploying Oracle VM Manager application to OC4J container.
Creating connection pool … Done
Creating data source … Done
Deploying application help … Done
Deploying application … Done
Please enter the keystore password for the Web Service:
Password must be at least 6 characters. Enter password:
Confirm the password:
Setting keystore password for Web Service …administ Done
Do you want to use HTTPS access for Oracle VM Manager (Y|n)Y
Configuring OC4J to use HTTPS … Done
Stopping OC4J … Done
Starting OC4J … Done
Please enter the password for the default account ‘admin’:
Confirm the password:
Configuring SMTP server …
Please enter the outgoing SMTP mail server(e.g. – mail.abc.com, mail.abc.com:25): oraclevmmgr
Mail server checking, may need some time, please wait …
Mail server ‘oraclevmmgr’ check failed, enter Y to change the name and retry or N to keep hostname and continue(Y|n)?localhost
Please enter the outgoing SMTP mail server(e.g. – mail.abc.com, mail.abc.com:25): localhost
Mail server checking, may need some time, please wait …
Setting the SMTP server to localhost …
Done
Please enter an e-mail address for account ‘admin’: root@localhost
Confirm the e-mail address : root@localhost
Updating e-mail address for account ‘admin’ to ‘root@localhost’ …
Done
The console feature is not enabled by default.
For detailed setup, refer to Oracle VM Manager User’s Guide
Installation of Oracle VM Manager completed successfully.
To access the Oracle VM Manager 2.2 home page go to:
To access the Oracle VM Manager web services WSDL page go to:
To access the Oracle VM Manager help page go to:
You have mail in /var/spool/mail/root
[root@oraclevmmgr cdrom]#
Now once Oracle VM Manager is installed and configured spicefy the URL above to access it with a browser.
After login we have
A server pool needs to be defined. Press Next to continue. Enter the name of the server pool and the hostname of the server where the Oracle VM Server is installed along with the server agent password and login credentials.
Press Create button to create the server pool.
- Deployment of Oracle RAC 11gR2 Oracle VM templates Linux x86 64bit for test configurationTemplates provide a fast and easy way to deploy Oracle RAC, applications in Oracle VM Server environment t for both test and production. For additional information related to RAC templates click here. From edelivery.oracle.com can be downloaded EBS, PeopleSoft, JD Edwards , RAC 11gR2 and other templates. Latest 11gR2 (11.2.0.2)templates are patch 10113572 from MOS.Download the templates and transfer them to the /OVS directory in the Oracle VM Server.
p10113572_10_Linux-x86-64_1of3.zip
p10113572_10_Linux-x86-64_2of3.zip
p10113572_10_Linux-x86-64_3of3.zip
For simplicity attest template will be loaded though the approach discussed in the article is a general and applicable for production deployment.
- Unzip and un-tar the templates in /OVS/seed_pool on Dom-0 where Oracle Server is installed.
- Create 5 shared virtual disks to hold the database. On a production system the disks must be configured on Dom-0 on both servers. For the test we will use 5 ASM disks created using Oracle VM Manager.
- Select Resources->Shared Virtual Disks. Click the Create button and enter name of the disk, size and description. Once done repeat for ASM2, ASM3, ASM4 and ASM5.
- Confirm the creation of the disk by pressing Confirm button.
- Repeat the procedure for the remaining ASMn disks where n in [2,,5].
- Import the template from step 41. Using Oracle VM manager.
- Click the link Resources -> Virtual Machine Templates. Click Import button
- Chose Select from Server pool and press Next to continue.
- Specify the server pool we created in step 3 while we installed and configured the Oracle VM Manager. Select the template we unzipped and un-tarred in step 4.1 and specify the logon credentials for the VM username. Press Next to continue.
- Press Confirm to continue. When status changes from Importing to pending press approve.
- Press Approve again.
- Now the template changes to active.
- Create two VM from the template that was imported
- In our example we name the VMs raclinux1 & raclinux2, you may choose any name you wish. IMPORTANT – The only non-default item you will need is to change the second NIC to xenbr1 (the first NIIC on xenbr0 will automatically be configured, see following pages)
- Select Virtual machines tab. Click on the Create Virtual Machine button
- Select Create VM based on a template. Press Next to continue.
- Select the Server pool and press Next to continue.
- Select the imported template and press Next to continue.
- Enter a name for the VM. Enter a password for the console. Change VIF1 to xenbr1 while leaving VIF0 to xenbr0. Press Next to continue.
- Review the details and press Confirm to continue.
- Create in similar fashion raclinux2.
- Add the shared disks in 4.2 to both VMs
- Select the Virtual machines tab. Select the radio button for the first guest & Click the Configure button.
- Press the Storage tab.
- Press Add/Detach Shared Virtual Disk tab. Transfer ASM1to ASM5. Press OK to continue.
- When added it will show
- Go to General tab and adjust the memory to 1700MB from 2046 MB
- Repeat the same for raclinux2.
- Inspect the configuration files for both VMs
Check the content of /OVS/running_pool/*raclinux1/vm.cfg and /OVS/running_pool/*raclinux2/vm.cfg.
[root@oraclevmmgr OVS]# cat raclinux1.cfg
bootloader = ‘/usr/bin/pygrub’
disk = ['file:/var/ovs/mount/EE6C6F356F024EF38B468CCEE192E548/running_pool/30_raclinux1/System.img,xvda,w',
'file:/var/ovs/mount/EE6C6F356F024EF38B468CCEE192E548/running_pool/30_raclinux1/Oracle11202RAC_x86_64-xvdb.img,xvdb,w',
'file:/var/ovs/mount/EE6C6F356F024EF38B468CCEE192E548/sharedDisk/ASM1.img,xvdc,w!',
'file:/var/ovs/mount/EE6C6F356F024EF38B468CCEE192E548/sharedDisk/ASM2.img,xvdd,w!',
'file:/var/ovs/mount/EE6C6F356F024EF38B468CCEE192E548/sharedDisk/ASM3.img,xvde,w!',
'file:/var/ovs/mount/EE6C6F356F024EF38B468CCEE192E548/sharedDisk/ASM4.img,xvdf,w!',
'file:/var/ovs/mount/EE6C6F356F024EF38B468CCEE192E548/sharedDisk/ASM5.img,xvdg,w!',
]
maxmem = 1700
memory = 1700
name = ’30_raclinux1′
on_crash = ‘restart’
on_reboot = ‘restart’
uuid = ’57588713-afb1-4655-a01d-465f2c960418′
vcpus = 1
vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0,vncpasswd=admin']
vif = ['bridge=xenbr0,mac=00:16:3E:5E:42:BC,type=netfront',
'bridge=xenbr1,mac=00:16:3E:04:EA:B3,type=netfront',
]
vif_other_config = []
[root@oraclevmmgr OVS]# cat raclinux2.cfg
bootloader = ‘/usr/bin/pygrub’
disk = ['file:/var/ovs/mount/EE6C6F356F024EF38B468CCEE192E548/running_pool/33_raclinux2/System.img,xvda,w',
'file:/var/ovs/mount/EE6C6F356F024EF38B468CCEE192E548/running_pool/33_raclinux2/Oracle11202RAC_x86_64-xvdb.img,xvdb,w',
'file:/var/ovs/mount/EE6C6F356F024EF38B468CCEE192E548/sharedDisk/ASM1.img,xvdc,w!',
'file:/var/ovs/mount/EE6C6F356F024EF38B468CCEE192E548/sharedDisk/ASM2.img,xvdd,w!',
'file:/var/ovs/mount/EE6C6F356F024EF38B468CCEE192E548/sharedDisk/ASM3.img,xvde,w!',
'file:/var/ovs/mount/EE6C6F356F024EF38B468CCEE192E548/sharedDisk/ASM4.img,xvdf,w!',
'file:/var/ovs/mount/EE6C6F356F024EF38B468CCEE192E548/sharedDisk/ASM5.img,xvdg,w!',
]
maxmem = 1700
memory = 1700
name = ’33_raclinux2′
on_crash = ‘restart’
on_reboot = ‘restart’
uuid = ‘a579ce95-1afe-443b-b0a4-a7298db6bf77′
vcpus = 1
vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0,vncpasswd=admin']
vif = ['bridge=xenbr0,mac=00:16:3E:61:42:35,type=netfront',
'bridge=xenbr1,mac=00:16:3E:5E:98:DD,type=netfront',
]
vif_other_config = []
[root@oraclevmmgr OVS]#
- Start both VMs using the Oracle VM Manager.Select the Virtual Machines tab, Select the radio button for the first node, Click the Power On button, repeat for second node.Vncviewer can be used to access the VMs after determining the ports.I this case raclinux1 can be accessed with oraclevm:5900 and raclinux2 can be accessed via oraclevm:5901.We open to sessions to raclinux1 and raclinux2 using vncviewer. Complete the first boot interview. This is one time only when the guest is started for the first time. At this point in time the guest machines are identical – they have no personality e.g. no hostname, no IPaddress etc. First boot adds this personality. On Node1 Enter: YES (On Node2 Enter: NO) The configuration utility then waits until the NO response has been given on the second node. After completing the node identification steps you must now provide information for first boot to complete. A simple data entry screen is displayed.Enter the personality of the cluster that is addresses as specified below.Run the script to build the RAC from the template.In about 45 minutes the installation completed.
Verify that Oracle 11gR2 RAC is running successfully.
Using srvctl and sqlplus utilities verify that the cluster is functioning properly.
Summary:
We installed and configured Oracle VM Server 2.2.1 and Oracle VM Manager 2.2.0. Imported Oracle RAC 11gR2 Oracle VM templates and installed pre-configured RAC on the VM server. We verified that Oracle RAC 11gR2 is up and running properly. We also looked at using Oracle VirtualBox as a solution for testing the Oracle Virtualization concepts on a Windows PC.
No comments:
Post a Comment