Professional Documents
Culture Documents
Welcome Ali
Account Sign Out Help Country Communities I am a... I want to... Search
All System Admin Articles by Christophe Pauliat with contributions from Olivier Canonge, Simon Coter, and Doan Nguyen
All Systems Topics This hands-on lab takes you through private cloud management using Oracle Enterprise Manager Cloud Control 12c in an Infrastructure as
Cool Threads a service (IaaS) model. You will first configure the IaaS cloud as the cloud administrator and then deploy guest virtual machines (VMs) as a
self-service user.
Did you Know
Published October 2013 (updated December 2013)
DST
End of Notices
Table of Contents
FAQ Introduction
Preparation Want to comment on this
Hands-On Labs Summary of Steps article? Post the link
High Performance Computing Global Picture on Facebook's OTN Garage
Setting Up the Infrastructure Cloud as the Cloud Administrator page. Have a similar article
Interoperability Using the Self-Service Portal to share? Bring it up on
Summary
Facebook or Twitter and
Jet Toolkit Appendix A: Preparing the Environment to Run the Lab from Your Home or Office
Appendix B: References let's discuss.
Oracle ACES for Systems
Oracle on Dell
Introduction
This document details all actions that were done during Oracle OpenWorld 2013 session Hands-On Lab 10003.
Patches
Oracle Enterprise Manager Cloud Control 12c is much more than a virtual machine manager. It enables monitoring and management of many Oracle
Security products (database, middleware, and applications). It can also manage other types of cloud service models: Platform as a Service (PaaS), Database
Software in Silicon as a Service (DBaaS), and even Software as a Service (SaaS). However, these features are outside the scope of this lab.
Software Stacks During this lab at Oracle OpenWorld, we used a demo environment built on a single x86 laptop, which contained three virtual servers (Oracle VM
VirtualBox virtual machines): Oracle VM Server for x 86, Oracle VM Manager, and Oracle Enterprise Manager 12c.
Solaris Developer
Note: You can also run this lab at your home or office on an x86 server, desktop, or laptop.
Solaris HowTo
Summary of Steps
In this lab, you will execute the following steps in Oracle Enterprise Manager Cloud Control 12c:
Start the three servers (that is, the three Oracle VM VirtualBox virtual machines).
Connect to the Oracle Enterprise Manager Cloud Control 12c console.
Register Oracle VM Manager.
Discover the Oracle VM server.
Configure the network.
Create VNICs (virtual network interface cards).
Create a nonclustered server pool.
Create a zone.
Create a storage repository.
Present the repository to the Oracle VM Server for x86.
Import an Oracle VM assembly into the repository.
Set up the IaaS self-service portal.
Configure the Chargeback feature.
As a self-service user, do the following:
1 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
Setting Up the Infrastructure Cloud as the Cloud Administrator
Start the Three Servers (Oracle VM VirtualBox VMs)
As previously explained, we will use Oracle VM VirtualBox to host the three servers (Oracle VM Server for x86, Oracle VM Manager, and Oracle
Enterprise Manager Cloud Control) on a single laptop.
In the console, you should see the three VMs we will use in this lab.
Note: Firefox might raise a security warning (for example, This Connection is Untrusted) since the SSL certificates are self-signed. If so,
ignore the warning (expand I understand the Risks, then click Add Exception, and then click Confirm Security Exception).
2 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
You should now see the Infrastructure Cloud home page shown in Figure 5:
Name: ovm-mgr
Monitoring Agent: 192.168.56.3:3872
Oracle VM Manager URL: tcps://192.168.56.3:54322
Oracle VM Manager Console URL: https://192.168.56.3:7002/ovm/console
Username: admin
Password: Welcome1
Click Submit.
A confirmation window should pop up stating that a job has been successfully submitted and asking whether you want to close the window or display
the job details.
3 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
Select 15 seconds in the Auto Refresh drop-down menu (by default, this page does not refresh automatically).
Wait for the job to finish (look for Status to show Succeeded).
If it fails, start again from Step 1 (you might have entered incorrect information).
Go back to the Infrastructure Cloud home page by clicking Enterprise, then Cloud, and then Infrastructure Home.
4 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
A single network called 192.168.56.0 was created with the following roles:
Server Management
Cluster HeartBeat
Live Migration
Note: The Storage role is used when accessing storage with the IP protocol (NFS or iSCSI). In our case, we will use a physical disk, so we don't
need the Storage role.
The Virtual Machine role provides the virtual machines with access to networks, so we need to have at least one network with this role. In our case,
for simplicity, we will add this role to this existing network.
Go back to the Infrastructure Cloud home page by clicking Enterprise, then Cloud, and then Infrastructure Home.
Right-click ovm-mgr, and then click Manage Network.
Select the line corresponding to network 192.168.56.0, but don't click the 192.168.56.0 hyperlink.
Click the Edit icon.
Add the Virtual Machine role to this network using the corresponding checkbox.
Click Next.
In the "Edit Network: Configure Ports and VLAN Interfaces" window, click Next.
In the "Edit Network: Network Profile and QoS" window, click to select the network type.
5 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
Do the following:
Click Next.
In the "Edit Network: Review" window, click Finish.
In the Confirmation window, click Job details to follow the job's progression.
Make sure Auto Refresh is set to 15 Seconds.
Wait for the job to finish (look for Status to show Succeeded).
Note: A network profile is used to automate assignment of IP addresses to guest virtual machines. A network profile is a list of IP address along with
host names. It defines a set of IP addresses, their associated host names, and common networking attributes for them.
During the preparation of the lab, we created a network profile called dev_netprofile with the following parameters:
Go back to the Infrastructure Cloud home page by clicking Enterprise, then Cloud, and then Infrastructure Home.
Right-click ovm-mgr and then click Manage Network.
Click the Virtual Network Interface Card Manager tab.
Click Generate to create VNICs.
Leave default values for the initial MAC Address (00:21:F6:00:00:00) and for the number of addresses (25), and click Create.
Note: Since the Oracle VM VirtualBox virtual machines network connections are "host only," they cannot have access to the external network; so we
can use the same MAC addresses for the VNICs on the different machines.
In the Confirmation window, click Close. (We will save time here by not following the job's progression.)
Create a Server Pool
A virtual server pool contains one or more virtual servers and guest virtual machines. A virtual server can belong to one and only one virtual server
pool at a time. Guest virtual machines and resources are also associated with the server pools. A clustered server pool may contain several virtual
servers sharing a storage system. VMs within a clustered server pool may be live-migrated from one virtual server to another.
We will now create a nonclustered server pool using the single Oracle VM server we have. (We cannot create a clustered server pool since we don't
have a shared storage system here.)
In the Infrastructure Cloud home page, right-click ovm-mgr and then click Create Virtual Server Pool.
6 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
In the Create Virtual Server Pool window, enter the following information:
When you are back in the Create Virtual Server Pool window, click OK to create the pool.
7 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
In the Confirmation window, click Job details to follow the job's progression.
Make sure Auto Refresh is set to 15 Seconds.
Wait for the job to finish (look for Status to show Succeeded).
Go back to the Infrastructure Cloud home page by clicking Enterprise, then Cloud, and then Infrastructure Home.
Click View and then Expand All to see all components.
You should now see the newly created pool called devpool.
Create a Zone
A zone is used to group related cloud resources together. Cloud zones can be created based on location or software lifecycle status and for grouping
resources according to a cost center or for metering and chargeback purposes. Typically, a zone can cover a department or possibly a small data
center.
In the Infrastructure Cloud home page, right-click ovm-mgr, and then click Create Zone.
8 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
Click Select.
Click OK to actually create the zone:
In the Confirmation window, click Job details to follow the job's progression.
Make sure Auto Refresh is set to 15 Seconds.
Wait for the job to finish (look for Status to show Succeeded).
Create a Storage Repository
A storage repository is virtual disk space on top of physical storage hardware, which is made available to the Oracle VM Servers in a server pool or in
various server pools. It defines where Oracle VM resources may reside. Resources include virtual machines, templates for virtual machine creation,
virtual machine assemblies, ISO images, shared virtual disks, and so on.
We will create a storage repository for Oracle VM on a local HDD (40 GB) on the Oracle VM Server for x86.
Reminder: When creating a repository on a physical disk, you can use only unused/unpartitioned disks.
Go back to the Infrastructure Cloud home page by clicking Enterprise, then Cloud, and then Infrastructure Home.
Right-click ovm-mgr, and then click Manage Storage Repository.
9 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
Click next to Location to choose the physical disk to use. This will open the LUN Selector window.
Select the 40 GB local HDD and click OK.
Click next to Server Pool to choose the server pool to use. This will open the "Search and Select: Targets" window.
Select the devpool target and click Select.
Figure 30 - Click OK
In the Confirmation window, click Job details to follow the job's progression.
Make sure Auto Refresh is set to 15 Seconds.
Wait for the job to finish (look for Status to show Succeeded).
Go back to the Infrastructure Cloud home page by clicking Enterprise, then Cloud, and then Infrastructure Home.
Right-click ovm-mgr, and then click Manage Storage Repository.
You should now see the newly created repository called devrepo.
10 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
In the Present Servers window, you should now see the ovm-srv.example.com server. Click Present.
In the Confirmation window, click Job Details to follow the job's progression.
Wait for the job to finish (look for Status to show Succeeded).
Import an Oracle VM Assembly into the Storage Repository
An assembly is a collection of virtual machine instances. You can use assemblies provided by Oracle or create your own assemblies using Oracle
Virtual Assembly Builder.
Self-service users can deploy only assemblies that are stored in an Oracle VM storage repository and in the Oracle Software Library of Oracle
Enterprise Manager Cloud Control.
To save time, we will use a very small and very simple template (Oracle Linux 6 Update 4 PVM). This assembly was imported into the Oracle
Software Library before the lab (or you imported it by following Appendix A). We will now import it to the storage repository.
Note: When running Oracle VM Server for x86 in an Oracle VM VirtualBox virtual machine, only ParaVirtualized Machine (PVM) guest VMs can be
created, because Oracle VM Server for x86 does not have Intel-VT or AMD-V virtualization extensions.
Go back to the Infrastructure Cloud home page by clicking Enterprise, then Cloud, and then Infrastructure Home.
Right-click ovm-mgr, and then click Manage Storage Repository.
In the Storage Repository window, click the devrepo repository.
In the "Storage Repository Details: devrepo" window, click the Assemblies tab.
Click Import.
Click Continue.
Note: Because of the poor performance of the x86 physical machine (laptop), you might get the error Unable to retrieve the component
type for the Selected Component. If so, wait for a few seconds and click Continue again. The error should disappear.
11 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
To save time, we will continue to the next steps. The import of the assembly should be finished before we actually use the assembly with the
self-service user.
Go to the Infrastructure Cloud Self Service Setup page by clicking Setup, then Cloud, and then Infrastructure.
In the Machine Sizes section, click Create.
Click Select.
Click Apply.
12 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
Note: In this lab, we chose not to deploy the Oracle Enterprise Manager agent on the guest VMs to save time. In real life, it is recommended that you
deploy the Oracle Enterprise Manager agent.
In the "Assign Quotas, Zones & Network profiles to Role" section, do the following:
Number of Servers: 3
Number of VCPUs: 6
Memory (GB): 10
Local Disk (GB): 100
Select the dev_netprofile network profile.
Leave the default values for others parameters.
Click Save.
13 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
In the Select Software Components section, click Add and select the OL6u4_x64_PVM line.
In the Select Roles section, click Add and select the SSA_DEVELOPER line.
Click Publish.
Figure 46
In this section, we granted the following authorizations to all self-service users with the role SSA_DEVELOPER:
Ability to create VMs based on assembly OL6u4_x64_PVM within the zone devzone.
Ability to use resources subject to the following resources limits:
Configure Chargeback
Chargeback, as the name implies, is a tool of accountability. The application's primary uses can generally be described as follows:
Provide resource usage metering by aggregating and normalizing the enormous amount of metric data that Oracle Enterprise Manager collects.
Provide IT staff with a means to "charge" a currency amount to internal organizations that use resources.
Provide internal organizations and users with reports detailing their consumption and charges.
Chargeback has three basic metrics against which to compute resource consumption: CPU usage, and memory and storage allocation. These
metrics comprise a universal charge plan that can be applied to any target type configured for Chargeback.
While CPU, memory, and storage can be used for Chargeback across a variety of target types, there might be situations where target-specific
charges are required. In this instance, an extended charge plan can be used. The extended charge plan provides greater flexibility to Chargeback
administrators, enabling them to:
Configuring the universal charge plan (cost for CPU, memory, and storage usage) and creating an extended charge plan, if needed.
Creating the cost centers.
Assigning the charge plans to the target.
In our case, steps 1 and 2 were done before the lab to save time, and an extended charge plan called devplan was created and also several cost
centers (see Appendix A for details).
We will now assign the extended charge plan devplan to the zone devzone.
14 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
Click Next.
Select the devzone and devpool lines, and then click Assign Plan.
15 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
Click Next.
Note: We don't need to assign a cost center here, since the cost center will automatically be assigned during guest VMs creation by the self-service
users.
Click Submit.
Take a quick look at the Charge Plans and Cost Centers tabs.
16 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
The setup of the infrastructure cloud environment by the cloud administrator is now complete.
User: paris_user1
Password: puser1
You should now see the Infrastructure Cloud Self Service Portal.
Note: On the left panel (Usage), you can see the resource limits previously set by the cloud administrator (three servers, 6 vCPUs, 10 GB of memory,
and 100 GB of disk space).
Click the OVM_OL6U4_x86_64_PVM1: OL6u4_x64_PVM line, which will display the deployment options.
Enter dev as the root password for the future VM.
Select very small from the Server Size drop-down menu.
Expand the network options by clicking the right arrow in front of Network.
17 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
Click Configure Networks (on the top right corner below the Cancel button).
In the Configure Networks window, do the following:
Select Non Internet Routable from the Network QoS Type drop-down menu.
Select Backend Network 192.168.56.0 by clicking
Click OK.
Select the eth0 line and click Edit.
Click OK.
Click Next.
In the "New Server Request: Schedule" window, click Next.
In the "New Server Request: Review" window, click Finish.
Note: The user inputs for this VM can be stored in a deployment plan. This is useful if the user wants to request several identical servers.
18 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
Wait for a few minutes for the deployment to complete. (You can start reading the next steps).
Click in the top right corner to refresh the page.
We can see that a new server called dev1.example.com was deployed (host name allocated as planned in the network profile dev_netprofile).
In the Infrastructure Cloud Self Service Portal, right-click the server dev1.example.com and click Launch VNC Console.
Ignore (accept) any security warnings. A new window will open and display the console of the guest VM.
Log in on the console using login root and password dev.
Type the ifconfig command to see which IP address was allocated:
19 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
The allocated IP address is 192.168.56.11 as planned in the network profile dev_netprofile (range 192.168.56.11 to 192.168.56.20).
Summary
Congratulations! You have successfully created your first virtual machine in your IaaS private cloud using Oracle Enterprise Manager Cloud Control
12c and Oracle VM.
For instance, as the cloud administrator (user CLOUDADM), you could do the following:
20 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
We hope you enjoyed this hands-on lab and your time in San Francisco at Oracle OpenWorld 2013.
You will find that all operations executed from Oracle Enterprise Manager 12c (for example, tasks that involved the network configuration, pool,
repository, template, and so on) are also executed in Oracle VM Manager.
This is normal since Oracle Enterprise Manager 12c uses Oracle VM Manager to manage Oracle VM.
Note: When you use Oracle Enterprise Manager 12c, it is recommended that you not execute actions in Oracle VM Manager, since those actions will
not be reflected in Oracle Enterprise Manager 12c.
Appendix A: Preparing the Environment to Run the Lab from Your Home or Office
This section explains how to prepare the environment to run this lab if you want to run this lab at your home or office.
The first step is to find an x86 machine (server, desktop, or laptop) that has the required resources:
At least 16 GB of RAM
An x86 64-bit CPU (Intel or AMD) with at least four CPU threads and with virtualization extensions (Intel VT or AMD-V)
An OS supported by Oracle VM VirtualBox (Microsoft Windows, various Linux distributions, Oracle Solaris 10 or 11, or Apple Mac OSX)
40 GB of disk space
Then you will do the following:
21 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
This section lists the required binaries and explains how to download them.
Java Runtime Environment (JRE) 7 (the javaws binary is needed to get the VNC console):
Download the version for your OS from http://java.com/en/download/manual.jsp.
Oracle Linux 5 update 7 ISO image (needed in order to add the sysstat package to the Oracle VM Manager server)
Go to the Oracle Software Delivery Cloud page for Oracle Linux.
Once logged in, select the two checkboxes to acknowledge the license and export restriction agreements, and click Continue.
In the Media Pack Search page, select Oracle Linux from the Select a Product Pack list, and select x86 64 bit from the Platform list.
Click Go.
Select Oracle Linux Release 5 Update 7 Media Pack for x86_64 (64 bit), which is part number B64448-01.
Click Continue.
On the next page, download the file for Oracle Linux Release 5 Update 7 for x86_64 (64 Bit), which is part number V27570-01 (size 3.5 GB). This
is a .zip file.
Download the files for Oracle Enterprise Manager Cloud Control 12c:
Oracle VM VirtualBox for Oracle Enterprise Manager Cloud Control 12c Release 3 (12.1.0.3) and plug-in Update 1 for Linux x86-64
Go to the Oracle Software Delivery Cloud page for Oracle VM.
Once logged in, select the two checkboxes to acknowledge the license and export restriction agreements, and click Continue.
In the Media Pack Search page, select Oracle VM Templates from the Select a Product Pack list, and select x86 64 bit from the Platform list.
Click Go.
On the next page, select Oracle VM VirtualBox for Oracle Enterprise Manager Cloud Control 12c Release 3 (12.1.0.3) Media Pack for x86 (64
bit), which is part number B73896-02.
Click Continue.
Then download the files for the following four part numbers: V41137-01 (size 4.1 GB), V41139-01 (size 4.0 GB), V41140-01 (size 4.0 GB), and
V41141-01 (size 446 MB). This are .zip files.
Go to Storage.
Select disk OracleVMServer3.2.4-... below "Controller: SATA Controller."
Click the second icon from the left (-) to remove this HDD.
Click the first icon from the left (+) to add a new HDD.
Select Add Hard Disk, Create New Disk, VDI, and Dynamically Allocated, name the new disk repo, and specify its size as 40 GB.
Start the virtual machine hol10003_ovm_srv.
Configure the virtual machine (in the VM console):
22 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
IP address : 192.168.56.2
Netmask: 255.255.255.0
Gateway: 192.168.56.1
DNS server: 192.168.56.1 (we will not use DNS, but we have to give an IP address here)
Hostname: ovm-srv.example.com
Wait for the boot to complete.
If your x86 machine runs a UNIX, Linux, or Mac operating system, open a terminal window and connect to the VM using ssh.( You can use PuTTY if
your machine runs Microsoft Windows.)
Configure the network by going to Network and clicking the Adapter 1 tab. From the Attached to list, select Host-only Adapter.
Leave Amount of Memory as 4096 MB (you need at least 3072 MB).
Start the virtual machine hol10003_ovm_mgr.
Configure the virtual machine (in the VM console):
IP address: 192.168.56.3
Netmask: 255.255.255.0
Gateway: 192.168.56.1
DNS server: 192.168.56.1 (we will not use DNS, but we have to give an IP address here)
Hostname: ovm-mgr.example.com
Wait for the boot to complete.
If your x86 machine runs a UNIX, Linux, or Mac operating system, open a terminal window and connect to the VM using ssh. (You can use PuTTY if
your machine runs Microsoft Windows.)
$ ssh root@192.168.56.3
Add the following lines to the /etc/hosts file:
# mkdir /u01/em_agent
# chown oracle /u01/em_agent
Set a password for the oracle UNIX user (choose oracle as the password):
# passwd oracle
Install the sysstat package (which is needed by the Oracle Enterprise Manager agent):
# cd /u01/app/oracle/ovm-manager-3/bin
# ./secureOvmmTcpGenKeyStore.sh
Generate OVMM TCP over SSH key store by following steps:
Enter keystore password: Store00
Re-enter new password: Store00
What is your first and last name?
[Unknown]: oow
What is the name of your organizational unit?
[Unknown]: oow
What is the name of your organization?
[Unknown]: oow
What is the name of your City or Locality?
[Unknown]: oow
What is the name of your State or Province?
[Unknown]: oow
What is the two-letter country code for this unit?
[Unknown]: oow
Is CN=oow, OU=oow, O=oow, L=oow, ST=oow, C=oow correct?
[no]: yes
# ./secureOvmmTcp.sh
Enabling OVMM TCP over SSH service
23 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
The job of enabling OVMM TCPS service is committed, please restart OVMM to take effect.
# cd ..
# mkdir keystore
# chown oracle ./keystore
# /u01/app/oracle/java/bin/keytool -keystore /u01/app/oracle/ovm-manager-3/ovmmCoreTcps.ks -exportcert
-alias ovmm -file ./keystore/export.jks
Enter keystore password: Store00
Certificate stored in file <./keystore/export.jks>
Stop the Oracle VM Manager preparation for now and perform the steps in the "Install Oracle Enterprise Manager Cloud Control 12c" section. When
Oracle Enterprise Manager Cloud Control is ready, come back here and continue.
Deploy the Oracle Enterprise Manager agent on the Oracle VM Manager server:
Go to the Oracle Enterprise Manager Cloud Control 12c console by opening the URL https://192.168.56.5:7799/em in your web browser.
Log in with user sysman and password welcome1.
Click Setup, Add Target, and Add Target Manually.
Select Add host target and click Add Host.
Click Add and enter the following information:
Host: 192.168.56.3
Platform: Linux x86-64
Click Next.
Ignore the warning about fully qualified host names.
In the "Add Host Targets: Installation Details" window, enter the following information, and then click Next:
Username: oracle
Password: oracle
Save As: oracle
Click OK.
Privileged Delegation Setting: <empty>
In the "Add Host Targets: Review" window, click Deploy Agent.
Wait for the agent to be deployed (which takes several minutes).
Execute the indicated scripts as root on Oracle VM Manager to finish deployment.
$ ssh root@192.168.56.3
# /u01/em_agent/core/12.1.0.3.0/root.sh
# /u01/app/oraInventory/orainstRoot.sh
Set up the Oracle Enterprise Manager 12c software library:
In the Oracle Enterprise Manager Cloud Control console, click Setup, Provisioning and Patching, and Software Library.
In the Upload File Locations tab, make sure that the Storage Type selected is OMS Shared File System.
Click Add.
Enter the information for this location:
Name: default_loc
Location: /u01/OracleHomes/swlib
Click OK.
Click Job Details (to make sure the job ends successfully).
Select 15 seconds for Auto Refresh.
Wait for status "Succeeded."
Install the Oracle Virtualization plug-in on the Oracle Enterprise Manager agent just deployed:
In the Oracle Enterprise Manager Cloud Control console, click Setup, Extensibility, and Plug-ins.
Expand Servers, Storage, and Network.
Select Oracle Virtualization.
Click Deploy On and Management Agent.
Click Continue.
Select the line 192.168.56.3 and click Continue.
Click Next.
Click Deploy.
Finish configuring the secure connection between Oracle VM Manager and Oracle Enterprise Cloud Control. (Use the default password.)
$ ssh oracle@192.168.56.3
oracle$ cd /u01/app/oracle/ovm-manager-3
oracle$ /u01/em_agent/agent_inst/bin/emctl secure add_trust_cert_to_jks
-trust_certs_loc ./keystore/export.jks -alias ovmm
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
Password: welcome
Unzip the file V38315-01.zip you previously downloaded. This will create a file called OVM_OL6U4_x86_64_PVM.ova.
The Oracle VM Manager virtual machine already has an Apache HTTP server configured and running. The Document Root directory is /var/www
/html. Create a subdirectory called files under /var/www/html.
$ su -
# cd /var/www/html
# mkdir files
# chmod 777 files
24 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
Copy the file OVM_OL6U4_x86_64_PVM.ova into the files directory (use scp or WinSCP):
# ls -lh
total 490M
-rw-r--r-- 1 root root 490M aug 12 07:47 OVM_OL6U4_x86_64_PVM.ova
Change the default timeout for VNC consoles from 300 seconds to 30 seconds. (When opening a VNC console for an Oracle VM guest for the first
time, there are several warnings about security. It can take more than 30 seconds to read them and close the windows.)
# cd /u01/app/oracle/ovm-manager-3/ovm_utils
# ./ovm_managercontrol -u admin -p Welcome1 -h localhost -T 300 -c setsessiontimeout 300
Install Oracle Enterprise Manager Cloud Control 12c
Create the Oracle Enterprise Manager Cloud Control template file from the three zip files you downloaded:
Unzip the V38990-01.zip, V38991-01.zip, and V38992.zip files. This will create three files with a .ova extension.
Concatenate the three .ova files to create a single .ova file:
In the Oracle VM VirtualBox console, import the VM from the Oracle Enterprise Manager Cloud Control template:
Configure the network by going to Network and clicking the Adapter 1 tab. From the Attached to list, select Host-only Adapter.
Set the base memory to 5120MB (System, Motherboard).
Start the virtual machine hol10003_emcc.
On the VM console, log in using user root and password welcome1.
Warning: The VM is preconfigured with US/qwerty keyboard; if you have another keyboard, make sure to press the keys corresponding to the qwerty
layout.
$ ssh root@192.168.56.5
If you are not using a US/qwerty keyboard, you will have the correct keyboard layout in this terminal window.
Change the root password to ovsroot (it is easier to have the same root password for all servers):
# passwd root
Disable the Linux firewall to authorize HTTP/HTTPS traffic between the x86 machine's web browser and Oracle Enterprise Manager:
#!/bin/bash
export ORACLE_HOSTNAME=emcc.example.com
echo "Starting the Oracle Management Server ....."
echo ""
cd /u01/OracleHomes/Middleware/oms/bin
./emctl start oms
Edit file /home/oracle/stop_oms.sh and set its content to the following:
#!/bin/bash
export ORACLE_HOSTNAME=emcc.example.com
echo "Stopping the Oracle Management Server ....."
echo ""
cd /u01/OracleHomes/Middleware/oms/bin
./emctl stop oms
Create a startup script named /etc/init.d/emcc to automatically start Oracle Enterprise Manager Cloud Control at boot:
#!/bin/bash
case "$1" in
start)
echo -n "Starting Enterprise Manager 12cR3"
su oracle -c /home/oracle/start_all.sh
;;
stop)
echo -n "Stopping Enterprise Manager 12cR3"
25 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
su oracle -c /home/oracle/stop_all.sh
;;
*)
echo "Usage: $0 {start|stop}"
esac
# chmod +x /etc/init.d/emcc
# ln -s /etc/init.d/emcc /etc/rc3.d/S98emcc
# ln -s /etc/init.d/emcc /etc/rc0.d/K01emcc
# ln -s /etc/init.d/emcc /etc/rc1.d/K01emcc
# ln -s /etc/init.d/emcc /etc/rc6.d/K01emcc
Add the following lines to the /etc/hosts file:
id:5:initdefault:
# mkdir /u01/OracleHomes/swlib
# chown oracle:dba /u01/OracleHomes/swlib
Reboot the server:
# reboot
Wait for the boot to complete and for Oracle Enterprise Manager Cloud Control to start. (Wait for the prompt emcc login: on the VM console.)
Go back to the "Install Oracle VM Manager" section and continue with Step 12.
Preconfigure the IaaS Environment in Oracle Enterprise Manager 12c
Some aspects of the IaaS setup were done before the Oracle OpenWorld lab to save time and ensure the lab fit in the one-hour slot. Those
operations were:
URL: https://192.168.56.5:7799/em
User: sysman
Password: welcome1
Click Setup-> Security-> Administrators.
Click Create.
Enter the following information:
Name: cloudadm
Password: cloud
Confirm Password: cloud
Leave defaults values for other fields and click Next.
Add role EM_CLOUD_ADMINISTRATOR to the existing roles (EM_USER and PUBLIC) and click Next.
In the "Create Administrator cloudadm: Target Privileges" window, click Next.
In the "Create Administrator cloudadm: EM Resource Privileges" window, click Next.
In the "Create Administrator cloudadm: Review" window, click Finish.
Create the SSA_DEVELOPER Role (Custom Role for Self-Service Users)
As explained in the section 3.4.1 of the Enterprise Manager Cloud Control Cloud Administration Guide (see Appendix B: References), we need to
create a custom role for self-service application users.
In the Oracle Enterprise Manager Cloud Control 12c console (while still logged in as the sysman user), click Setup-> Security-> Roles.
Click Create.
Enter SSA_DEVELOPER as the name and click Next.
Add role EM_SSA_USER (there are no existing roles) and click Next.
In the "Create Role SSA_DEVELOPER: Target Privileges" window, click Next.
In the "Create Role SSA_DEVELOPER: EM Resource Privileges" window, click Next.
In the "Create Role SSA_DEVELOPER: Administrators" window, click Next.
In the "Create Role SSA_DEVELOPER: Review" window, click Finish.
Create a Self-Service User
In the Oracle Enterprise Manager Cloud Control 12c console (while still logged in as the sysman user), click Setup-> Security-> Administrators.
Enter the following information:
Name: paris_user1
Password: puser1
Confirm Password: puser1
Cost Center: PARIS_USER1
Line of Business: DEV GROUP PARIS
Description: Developer based in Paris
Leave defaults values for other fields and click Next.
Add role SSA_DEVELOPER to the existing roles.
Remove the existing roles EM_USER and PUBLIC.
Click Next.
In the "Create Administrator ssa_user1: Target Privileges" window, click Next.
In the "Create Administrator ssa_user1: EM Resource Privileges" window, click Next.
In the "Create Administrator ssa_user1: Review" window, click Finish.
Create Three More Self-Service Users
Do the following to create the second user:
26 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
Name: paris_user2
Password: puser2
Confirm Password: puser2
Cost Center: PARIS_USER2
Click Next four times (in the next four windows), and then click Finish.
Do the following to create the third user:
Name: rome_user1
Password: ruser1
Confirm Password: ruser1
Cost Center: ROME_USER1
Line of Business: DEV GROUP ROME
Description: Developer based in Rome
Click Next four times (in the next four windows), and then click Finish.
Do the following to create the fourth user:
Name: rome_user2
Password: ruser2
Confirm Password: ruser2
Cost Center: ROME_USER2
Click Next four times (in the next four windows), and then click Finish.
Import an Oracle VM Assembly
In the Oracle Enterprise Manager Cloud Control 12c console (while still logged in as the sysman user), click Setup, Provisioning and Patching,
and Software Library.
Select the Referenced File Locations tab.
Select HTTP as the storage type and click Add.
Enter the following information and then click OK:
Name: http_mgr
Location: http://192.168.56.3/files
Click Enterprise, Provisioning and Patching, and Software Library.
Right-click Software Library, and then click Create Folder.
Enter HOL10003_Cloud as the name, and click OK.
Right-click HOL10003_Cloud, and then click Create Entity and then Virtualization.
Select Assembly as the subtype and click Continue.
Enter OL6u4_x64_PVM as the name and click Next.
Do the following in the "Create Assembly: Upload Files" window:
In the Oracle Enterprise Manager Cloud Control 12c console (while still logged in as the sysman user), click Setup-> Provisioning and Patching->
Network Profile.
Click Create.
Enter the following information:
Name: dev_netprofile
Domain name: example.com
Netmask: 255.255.255.0
Gateway: 192.168.1.1
DNS: 192.168.1.1
IP Address: Range
Click Add and enter the following information:
27 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
Click Add.
Enter the following information:
28 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
Click Add.
Enter the following information:
Appendix B: References
Oracle Enterprise Manager Cloud Control Cloud Administration Guide
Building and Managing a Cloud Using Oracle Enterprise Manager 12c (Oracle Press), Authors: Madhup Gulati, Adeesh Fulay, and Sudip Datta
Oracle Enterprise Manager Cloud Control 12c documentation
Oracle VM documentation
In addition, this document is available at http://blogs.oracle.com/cpauliat/entry/hol_oow2013.
Changed Step 9.
Added a new step between the old Step 12 and Step 13 (this new step is now Step 13), and
renumbered subsequent steps.
Changed what was Step 15 (now Step 16) to show becoming superuser first.
In the "Install Oracle Enterprise Manager Cloud Control 12c" section, did the following:
Follow us:
Blog | Facebook | Twitter | YouTube
ORACLE CLOUD JAVA CUSTOMERS AND EVENTS COMMUNITIES SERVICES AND STORE
Learn About Oracle Cloud Learn About Java Explore and Read Customer Blogs Log In to My Oracle Support
Computing Stories
Download Java for Consumers Discussion Forums Training and Certification
Get a Free Trial All Oracle Events
Download Java for Developers Wikis Become a Partner
Learn About DaaS Oracle OpenWorld
Java Resources for Developers Oracle ACEs Find a Partner Solution
Learn About SaaS JavaOne
Java Cloud Service User Groups Purchase from the Oracle Store
Learn About PaaS Source Code for Open Source
Java Magazine Social Media Channels
Learn About IaaS EMAIL SUBSCRIPTIONS Software
Learn About Private Cloud Subscription Center
29 of 30 1/22/2017 12:35 PM
Lab: Deploying and Managing a Private Cloud with Oracle VM and Orac... http://www.oracle.com/technetwork/systems/hands-on-labs/lab-privatecl...
30 of 30 1/22/2017 12:35 PM