0% found this document useful (0 votes)
7 views14 pages

I014 CC Lab7

The document outlines an experiment for creating a server pool and storage repository using Oracle VM as part of the MBATECH-IT program for the academic year 2021-22. It details the prerequisites, installation steps, and configuration procedures for Oracle VM VirtualBox and Oracle VM Manager, including network setup and server pool creation. The learning outcomes include understanding the IAAS model of cloud computing and configuring server pools and storage in Oracle VM.

Uploaded by

s.049.joshua
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views14 pages

I014 CC Lab7

The document outlines an experiment for creating a server pool and storage repository using Oracle VM as part of the MBATECH-IT program for the academic year 2021-22. It details the prerequisites, installation steps, and configuration procedures for Oracle VM VirtualBox and Oracle VM Manager, including network setup and server pool creation. The learning outcomes include understanding the IAAS model of cloud computing and configuring server pools and storage in Oracle VM.

Uploaded by

s.049.joshua
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Cloud Computing

2021-22

Academic Year: 2021-22 Programme: MBATECH-IT


Year: 3rd Semester: VI
Name of Student: Jash Kathiria Batch: A1
Roll No: I014 Date of experiment:
Faculty: Signature with Date:

Experiment 7: Oracle VM

Aim: To create a server pool and storage repository on Oracle


VM.

Learning Outcomes:
After completion of this experiment, student should be able to

1. Understand Oracle VM Virtual Box template


2. Understand IAAS model of Cloud
3. Configure and make use of server pool and storage in
Oracle VM

Theory:
Oracle VM VirtualBox is a free and widely used desktop
virtualization tool. It is installed on an x86 operating
system (OS) and is available on all the major x86
operating systems, for example, Windows XP, Windows
7, many Linux distributions, Apple Mac OS, Oracle Solaris 10, and
Oracle Solaris 11. Therefore, the native operating system on
the laptop, desktop, server machine used for this lab can
be any of these operating systems.
Pre-requisite:
The minimal configuration needed for your laptop, desktop, or
server is as follows:
• Minimum 8 GB of memory
• Intel or AMD x86 quad-thread processor (quad-core or dual-
core dual-thread)
• 15 GB of disk space to store the files needed to
start the lab
Downloads:

1
Cloud Computing
2021-22

• Latest version of Oracle VM VirtualBox


https://www.virtualbox.org/wiki/Downloads

• Oracle VM VirtualBox template for Oracle VM Manager


3.1.1 build 365 (2.75 GB) • Oracle VM VirtualBox
template for Oracle VM Server 3.1.1 build 365 (249 MB)

Both downloads available at


https://www.oracle.com/virtualization/technologies/vm/downloads/templatedownlo
ads.html

Install the Primary OS and


OracleVM VirtualBox 1. Install
Oracle VM VirtualBox.
2. In Oracle VM VirtualBox, configure a host-only network:
a. Select File-> Preferences-> Network.
b. Specify the following:
Network address: 192.168.56.0
Physical machine's IP address:
192.168.56.1
Netmask: 255.255.255.0

c. Disable the DHCP server since we will not use it.


d. Open a terminal window on your physical machine.

Host only network setup.

3. Install the JRE on your physical machine. For example,


on a Linux machine, run the following command:

2
Cloud Computing
2021-22

$ su -
# rpm -ivh jre-7u4-linux-x64.rpm

4. Restart your Web browser.

Procedure:

Step 1 - Install OracleVM Server


Create the first Oracle VM VirtualBox virtual machine by
importing the pre-existing Oracle VM VirtualBox template
OracleVMServer3.1.1build365.ova.
This VM will be our Oracle VM Server.
The normal way of installing Oracle VM Server is to boot
from an ISO file or CD-ROM, but here we use the
template to save time.

1. In Oracle VM VirtualBox, select File-> Import Appliance and then


select the file OracleVMServer3.1.1build365.ova.
2. In the Appliance ImportSettings screen, do the following:
a. Double-click OracleVMServer3.1.1 and change the name to
HOL9558_ovm-srv. b. Change CPU to 3
c. If you have 8 GB of RAM, change RAM to 2048
MB.
d. Click Import.
3. Accept the license agreement.
4. Wait for the import to complete (about two minutes).
5. Modify the storage settings:
a. Select the VM HOL9558_vm-srv and click Settings.
b. Go to Storage and remove the disk2 entry under SATA
Controller by clicking icon, as shown in Figure below.

3
Cloud Computing
2021-22

6. Add a new 100 GB hard drive (we will use this drive
later as a repository) by selecting SATA Controller and
clicking icon “+”. Select VDI as the file type, choose
Dynamically allocated, specifythe name repo, and specifya size
of 100 GB.

7. Modify the network settings, as shown in Figure 3:


a. Go to Network, and click the Adapter 1 tab.
b. From the Attached to list, select Host-only Adapter.
c. Expand the Advanced section.
d. For Promiscuous Mode, select Allow All. Make sure you enable the
promiscuous mode on the network interface. If you
do not, your Oracle VM virtual machine will not be
accessible from your host machine.

4
Cloud Computing
2021-22

e. Repeat these actions for the Adapter 2 tab.


f. Click OK to exit the settings.

8. Start and Configure the VM for Oracle VM Server


a. In the Oracle VM VirtualBox admin console, select the
HOL9558_ovm-srv VM and click Start.
b. Look at the VM console and wait for the message
Enter static IP address, which is shown in figure below.

c. Enter the following information:


For the static IP address, enter 192.168.56.2.
For the netmask, enter 255.255.255.0 (the default).

5
Cloud Computing
2021-22

For the gateway, enter 192.168.56.1.


For the DNS, enter 192.168.56.1.
For the host name, enter ovm-srv.oow.com.
d. Oracle VM Server is now ready, and it should look similar
to below figure

Note: The root password for this VM is ovsroot.

To gain access to the mouse, press the rightmost CTRL key


on your keyboard and minimize the ovm-srv
window.

Important: On your physical machine's native OS, open a


new terminal window by selecting Applications->
System Tools-> Terminal and run ping 192.168.56.2 to
check that the Oracle VM VirtualBox virtual machine is
OK.

Step 2 - Install OracleVM Manager


Create a VM by importing the Oracle VM VirtualBox
template for Oracle VM Manager, and then you start and
configure the VM for Oracle VM Manager.

This VM will be our Oracle VM Manager.


The normal way of installing Oracle VM Manager is to
install a Linux Server (Oracle Linux or Red Hat Linux) and

6
Cloud Computing
2021-22

then install Oracle VM Manager from an ISO file or CD-


ROM, but here we use the template to save time.

1. In Oracle VM VirtualBox, select File-> ImportAppliance and then select


the file OracleVMManager3.1.1build365.ova.
2. In the Appliance ImportSettings screen, do the following:
a. Double-click OracleVMManager3.1.1build365 and change the name
to HOL9558_ovm-mgr.
b. Click Import.
Note: There is no need to change the RAM (4096 MB) or
the CPU (1 vcpu) settings.
3. Accept the license agreement.
4. Wait for the import to complete (about three minutes).
5. Modify the network settings:
a. Select the VM ovm-mgr and click Settings.
b. Go to Network and click the Adapter 1 tab.
c. From the Attached to list, select Host-only Adapter.
Note: There is no need to set promiscuous mode to "Allow all"
for the network interface because no VM will run
on the manager.

Start and Configure the VM for Oracle


VM Manager
1. In the Oracle VM VirtualBox admin console, select the
HOL9558_ovm-mgr VM and click
Start.

2. Look at the VM console and wait for the message


New Unix Passwd.

3. Enter the following information:


For the password, enter ovsroot twice (same as the Oracle VM
Server password). Ignore the warning about a bad password,
which is shown because the password is not secure.
For the static IP address, enter 192.168.56.3.
For the netmask, enter 255.255.255.0 (the default).
For the gateway, enter 192.168.56.1.
For the DNS server, enter 192.168.56.1.
For the host name, enter ovm-mgr.oow.com.

7
Cloud Computing
2021-22

4. Wait for the VM to be ready (when the GNOME


desktop is displayed), which takes about two minutes.

5. To gain access to the mouse, press the rightmost CTRL key


on your keyboard and minimize the ovm-mgr window.

6. On your machine, open a new terminal window by


selecting Applications-> Systems Tools-> Terminal and
run ping 192.168.56.3 to check that the Oracle VM VirtualBox
virtual machine is OK.

Step 3 - Createa Server Pool


and Storage Repository 1. Connect to
the Oracle VM Manager Web console:

a. On your physical machine, open a browser and connect


to the Oracle VM Manager console using the URL
http://192.168.56.3:7001/ovm/console.
b. Log in using user admin and password Welcome1.
You
should now see the Oracle VM Manager console shown in
figure below.

2. Discover Oracle VM Server:


a. Click icon.

8
Cloud Computing
2021-22

b. Leave 8899 for the Oracle VM Agent Port.


c. Enter ovsroot for the Oracle VM Agent Password.
d. Enter 192.168.56.2 for the IP Address.
e. Click OK to launch the discovery.
f. Wait a few seconds. You should now see the server,
named ovm-srv.oow.com, in Unassigned Servers.
g. Click the server to see server information (CPU, memory,
and so on).

3. Modify the network properties:


Oracle VM has a number of network channels: Server
Management, Live Migrate, Cluster
Heartbeat, Virtual Machine, and Storage. The Server Management, Live
Migrate, and Cluster
Heartbeat roles are automatically assigned to the management
network when you discover Oracle VM Server. For
simplicity, we will use a single network for all roles
by assigning the Virtual Machine and Storage roles to
the defaultnetwork.

a. Click the Networking tab.


b. Select network 192.168.56.0 and click icon to edit the
network properties.
c. In the Network Channels list, select the checkboxes Virtual
Machine and Storage.

9
Cloud Computing
2021-22

d. Leave all other parameters as the defaultvalues by clicking


Next-> Next-> Next-> Finish.

4. Create VNICs.
The VNIC Manager creates VNICs, which can be used by virtual
machines as network cards. You create virtual network
interfaces by defining a range of MAC addresses to
use for each VNIC.

a. In the Networking tab, click Virtual NICs.


b. Click Auto-Fill and then Create.This will create 20 VNICs.
You should now see those VNICs listed, as shown in Figure below

5. Create a server pool using Oracle VM Server:

10
Cloud Computing
2021-22

A server pool contains a group of Oracle VM Servers, which


as a group perform virtual machine management tasks, such
as ensuring high availability (HA), implementingresource and
power management policies, and providing access to networking,
storage, and repositories.

The virtual machines running on a server can be "live


migrated" to another server in the same pool. Of course,
you need to have a shared storage system (NFS, iSCSI,
FC) between all the servers of the pool. Such a
pool is called clustered.

Here, for simplicity, we will create a non-clustered server pool


with a single server and use a local HDD (hard disk drive)
(actually a file on the laptop that is seen by Oracle
VM VirtualBox as an HDD).

a. In Oracle VM Manager, go back to the Servers and


VMs tab.
b. Click the third icon from the left ( icon) to create
a new server pool, as shown in Figure below

11
Cloud Computing
2021-22

c. For Server Pool Name, select mypool, as shown in Figure


below.

d. For Virtual IP Address for the Pool, select 192.168.56.4.


e. Deselect Clustered Server Pool.
Note: The Virtual IP Address of the pool is assigned to
one server in the pool, called the master server. Several actions
are executed by this master server. In a non-clustered pool
with just one server, the server is also the master server. In a
clustered pool with at least two servers, one of them
is the master server. In case of failure on the master server,
another server will take the master server pool and get this
IP address. If you want to create a clustered server
pool (not needed here), you need to have dedicated storage
(NFS file system, or iSCSI LUN, or FC LUN) of at
least 12 GB.

f. Click Next.
g. In the next window, click icon to add all servers
(here there is only one) to the pool, and click Finish.
You should now see the pool
and our Oracle VM Server, ovm-srv, in it.
h. Click icon to expand it.

6. Create the storage repository.

12
Cloud Computing
2021-22

Before creating VMs hosted on the server pool, we need to


create at least one storage repository to store not only
the VMs' files but also ISO files, templates, and so on.

a. Click the Repositories tab.


b. Click icon to create a new storage repository.
c. Enter the following information:
For Repository Name, enter myrepo (see Figure 13).
For Repository Location, select Physical Disk (used for
local HDDs, iSCSI LUNs, and FC LUNs).
Select the right server pool (there is only one choice for
mypool here).
Click the icon to select the local HDD (100 GB).
Note: Only unused and unpartitioned local HDDs can be
used.

d. Click Next.
e. Click icon to present this repository to all servers
(here, there is only one).

13
Cloud Computing
2021-22

f. Click Finish.
g. Wait a few seconds for the repository to be
created.

Note: For non-NFS storage (whichis our case here), an


OCFS2 (Oracle Cluster File System) is created
on the repository.

h. You should now see the new repository. Click icon to


expand it.

Conclusion: Had successfully set up and configured Oracle VM,


including the installation of Oracle VM Server and Oracle VM
Manager. We established a server pool and storage
repository, allowing efficient management of virtualized
resources.

14

You might also like