How To Migrate To Oracle Linux and Oracle VM
How To Migrate To Oracle Linux and Oracle VM
Communities
Products
Solutions
Downloads
I am a...
I want to...
Store
Support
Search
Training
Partners
About
OTN
Introduction
This document details all actions that were done during Oracle OpenWorld 2013 session Hands-On Lab 9981.
This hands-on lab takes you through the best practices for migrating an existing Oracle Database workload from VMware to Oracle VM. It also walks you
through how to migrate to Oracle Linux a Red Hat Enterprise Linux 6 guest exported from VMware by downloading Oracle's Unbreakable Enterprise
Kernel from Oracle's public yum server.
Oracle VM is a free-license product, and it's the only virtualization x86 software solution certified for all Oracle products.
This lab showcases the Open Virtualization Assembly (OVA) format, a free-of-charge service supplied by Oracle's public yum server with which Oracle
Linux and Oracle VM can be maintained without a subscription. By performing the steps in this lab, you will obtain a fully supported and certified
configuration for Oracle Database (whereas on VMware, Oracle Database is only supported, not certified).
During this lab at Oracle OpenWorld, we used a demo environment built on a single x86 laptop (using Oracle VM VirtualBox), which contained two
virtual servers and one Oracle VM Server guest:
Oracle VM Server
Oracle VM Manager
Oracle VM guest imported as an assembly
Note: You can also run this lab at your home or office on an x86 server, desktop, or laptop.
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
1/34
10/1/2014
Export from a third-party virtualization solution (such as VMware) a guest in OVA format (that is, as an assembly).
Configure the default HTTP server on Oracle VM Manager (port 80).
Prepare an Oracle yum server based on http://public-yum.oracle.com.
Note: To run this lab from your home or office, perform the tasks in Appendix A first to prepare your environment before you run the lab.
Note: The migration approach followed by this lab is not the only one; other valid migration methods are based on official Oracle VM Templates such as
Oracle VM Templates for Oracle Database.
Global Picture
Figure 1 shows all the components (Oracle VM VirtualBox and Oracle VM virtual machines) with their names and configuration (memory, IP addresses,
and so on).
In the console, you should see the two VMs we will use in this lab.
to start it.
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
2/34
10/1/2014
to start it.
Figure 4. Status of the Oracle VM pool and server in the Servers and VMs tab.
2. Click the Networking tab and verify that the existing network is usable by guests. You should see a checkmark under Virtual Machines, as
shown in Figure 5.
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
3/34
10/1/2014
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
4/34
10/1/2014
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
5/34
10/1/2014
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
6/34
10/1/2014
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
7/34
10/1/2014
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
8/34
10/1/2014
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
9/34
10/1/2014
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
10/34
10/1/2014
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
11/34
10/1/2014
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
12/34
10/1/2014
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
13/34
10/1/2014
5. Start the vmdb01.oow.local guest by clicking
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
14/34
10/1/2014
Figure 45. Telling the browser to open the file using the JRE.
Click OK to confirm.
The console with a boot-progress bar will appear but it will not have a login prompt:
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
15/34
10/1/2014
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
16/34
10/1/2014
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
17/34
10/1/2014
Figure 53. Verifying the status of Oracle Database and Oracle Listener.
One of the goals of this lab is to show Oracle's public yum server: http://public-yum.oracle.com.
Oracle's public yum server offers a free and convenient way to install the latest Oracle Linux packages as well as packages from the Oracle VM
installation media via a yum client.
You can download the full Oracle Linux and Oracle VM installation media via Oracle Software Delivery Cloud. To stay current on errata updates, you
might wish to subscribe to the Oracle Linux errata mailing list. This yum server is offered without support of any kind. If you require support, please
consider purchasing Oracle Linux Support online or via your sales representative.
For this lab, we will replicate a local Oracle public yum server to speed up the switching process. The role of the local Oracle public yum server belongs
to the ovm-mgr.oow.local (192.168.56.100) server.
1. If you are not already connected, connect via a terminal window to your vmdb01.oow.local guest.
2. Execute the following command to copy the yum configuration:
# scp 192.168.56.100:/etc/yum.repos.d/myRepo.repo /etc/yum.repos.d/
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
18/34
10/1/2014
Note: This command will replace Red Hat logos, install the Unbreakable Enterprise Kernel (due to dependencies) and, last but not least, install
Oracle software preinstallation packages such as the following:
oracle-rdbms-server-11GR2-preinstall
oracle-em-agent-12cR1-preinstall
These preinstallation packages are available for x86_64 only. Specifically, these packages do the following:
Cause the download and installation of various software packages and specific versions needed for database installation, with package
dependencies resolved via yum
Create, if needed, the user oracle and the groups oinstall and dba, which are the defaults used during database installation
Modify the kernel parameters in /etc/sysctl.conf to change settings for shared memory, semaphores, the maximum number of file
descriptors, and so on
Set hard and soft shell resource limits in /etc/security/limits.conf, such as the number of open files, the number of processes, and
the stack size to the minimum required based on the Oracle Database 11g Release 2 installation requirements
Set numa=off in the kernel boot parameters for an x86_64 machine
These packages automate and prepare Oracle Linux to accommodate software such as Oracle Database, Oracle WebLogic, Oracle Enterprise
Manager Cloud Control, Oracle E-Business Suite, and so on.
Yum will ask for a confirmation to proceed with the install of packages; reply with Y:
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
19/34
10/1/2014
After that, verify that the default value is correctly set (value is 0).
# cat /boot/grub/grub.conf
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
20/34
10/1/2014
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
21/34
10/1/2014
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
22/34
10/1/2014
ovmd -s cleanup
chkconfig ovmd on
service ovmd enable-initial-config
shutdown -h now
Note: If you aren't able to open a guest console and obtain a login prompt, connect via ssh and execute all the steps in one command (the
password is ovsroot):
ssh root@<IP_address_obtained_earlier>
# ovmd -s cleanup; chkconfig ovmd on; service ovmd enable-initial-config; shutdown -h now
Note: If you are connected by ssh, you'll lose the connection to the guest.
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
23/34
10/1/2014
4. In the "Clone or Move Virtual Machine: vmdb01.oow.local" window, select the first option on the left and click Next.
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
24/34
10/1/2014
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
25/34
10/1/2014
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
26/34
10/1/2014
Summary
Congratulations! You have successfully imported a guest from VMware to Oracle VM, switched from Red Hat to Oracle Linux, and created your first
Oracle VM Template using Oracle VM Template configuration scripts.
You can now master your knowledge and create your own Oracle VM Template configuration scripts by following the guide deployed by Wim Coekaerts
on his Oracle blog:
https://blogs.oracle.com/wim/entry/oracle_vm_template_config_script
Appendix A: Preparing the Environment to Run the Lab from Your Home or Office
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
27/34
10/1/2014
Oracle VM Server
Oracle VM Manager
ovm-mgr.oow.local
ovm-srv.oow.local
vmdb02.oow.local
ovm-mgr
ovm-srv
vmdb02
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
28/34
10/1/2014
You can put the .ova file on the Oracle VM Manager server at the following path:
/var/www/html/ovas
For example:
scp /app/rhel-64-oracle-rdbms.ova 192.168.56.100:/var/www/html/ovas
Alternatively, you can put the .ova file on your own web server; be sure to note the path where you put the file, because you will need this information
during the lab.
Export methods using other VMware products are reported at these public links:
vSphere 4
vSphere 5
PowerCLITool
Note: If you are instead going to export a Microsoft Windows guest from VMware, you could encounter a known problem: the BSOD (blue screen of
death) on the first run of your guest on Oracle VM. To sort out this problem, you have two options you can follow before exporting the guest:
Connect to your Windows guest and extract driver .cab files already present in the Microsoft Windows distribution. The files are downloadable
here.
Install Oracle VM paravirtual (PV) drivers for Microsoft Windows. Download Oracle VM PV drivers for Microsoft Windows from the Oracle
Software Delivery Cloud.
Reference: Oracle VM Windows PV Drivers for Microsoft Windows Guests (XP/Vista/7/2003/2008/2008 R2) 3.0.1 - 32-bit/64-bit (signed by Microsoft for
the Windows Logo Program for Windows 2008, Windows 2008 R2, Windows 2003 and Windows 7)
ovm-mgr.oow.local
ovm-srv.oow.local
vmdb02.oow.local
ovm-mgr
ovm-srv
vmdb02
7. Enable the Apache httpd daemon on the manager (which will be used to upload templates):
# service httpd start
# chkconfig httpd on
8. Configure directories that will support the httpd daemon used for .ova files and the yum server.
# mkdir -p /web/ovas
# mkdir -p /web/yum
# cd /var/www/html; ln -s /web/ovas .; ln -s /web/yum .
9. Copy the .ova file you exported from VMware to the new directory created in the previous step. You should then obtain output similar to this if
you list the contents of the directory:
[root@ovm-mgr]# ls -l
-rwxr-xr-x 1 ovmovm 9900220416 Aug 19 13:02 rhel-64-oracle-rdbms.ova
[root@ovm-mgr]# pwd
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
29/34
10/1/2014
/web/ovas
10. Prepare a yum repository for Oracle Linux 6 based on http://public-yum.oracle.com. (The Oracle VM Manager guest will need internet access, so
you have to temporarily modify your network connection.)
a. Download the public yum repository file to install new packages:
# cd /etc/yum.repos.d
# wget https://public-yum.oracle.com/public-yum-el5.repo
b. Install the tools needed to build your local yum repository:
# yum install yum-utils createrepo
c. Download the public yum repository file for Oracle Linux 6 (the target release of our guest on top of Oracle VM in this lab) and remove the
Oracle Linux 5 repo file (which was used to install the packages above).
# rm -f /etc/yum.repos.d/public-yum-el5.repo
# cd /etc/yum.repos.d
# wget https://public-yum.oracle.com/public-yum-ol6.repo
d. Create the local repository on the Oracle VM Manager machine.
Note: It might take many hours, depending on your internet connection, because it will download about 27 GB; if you don't have much
time, see the alternative option below.
#
#
#
#
An alternative option is to directly use http://public-yum.oracle.com in this lab; to implement this alternative, you will need to have internet
access and, at the same time, configure your Oracle VM Manager guest to reach external sites.
e. Prepare the .repo file to use on your future Oracle VM guest (with Oracle Linux 6 x86-64):
[local_ol6_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://192.168.56.100/yum/OracleLinux/OL6/latest/$basearch/
gpgkey=http://192.168.56.100/RPM-GPG-KEY-oracle-ol6
gpgcheck=0
enabled=1
[local_ol6_UEK_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://192.168.56.100/yum/OracleLinux/OL6/UEK/latest/$basearch/
gpgkey=http://192.168.56.100/RPM-GPG-KEY-oracle-ol6
gpgcheck=0
enabled=1
11. Install and implement a DHCP server on Oracle VM Manager; we need this function to supply IP addresses on the guest that will be created on
our Oracle VM Server:
# wget http://public-yum.oracle.com/repo/OracleLinux/OL5/9/base/x86_64/dhcp-3.0.5-31.el5_8.1.x86_64.rpm
# chkconfig dhcpd on
# service dhcpd start
option routers
192.168.56.1;
option subnet-mask
255.255.255.0;
option nis-domain
"oow.local";
option domain-name
"oow.local";
option domain-name-servers
192.168.56.1;
range dynamic-bootp 192.168.56.250 192.168.56.254;
default-lease-time 86400;
max-lease-time 86400;
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
30/34
10/1/2014
Click
.
Leave 8899 for the Oracle VM Agent port.
Enter ovsroot for the Oracle VM Agent password.
Enter 192.168.56.101 for the IP address.
Click OK to launch the discovery.
Wait a few seconds.
You should now see the server, named ovm-srv.oow.local, under Unassigned Servers.
g. Under Unassigned Servers, click the server to see server information (CPU, memory, and so on).
3. Modify the network configuration:
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 default network.
a. Click the Networking tab.
b. Select network 192.168.56.0 and click
to edit its properties.
c. In the network channels list, select the checkboxes Virtual Machine and Storage.
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
31/34
10/1/2014
to add all servers (here, only one server) to the pool, and finally click Finish.
g. Once the pool is created, you should see the pool and our Oracle VM server, ovm-srv, in it. Click
to expand.
Click
to create a new storage repository.
For Repository Name, enter repo01.
For Repository Location, select Physical Disk (this is used for local HDDs, iSCSI, and FC LUNs).
Select the right server pool (there is only one choice for mypool here).
f. Click
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
32/34
10/1/2014
to expand it.
See Also
Oracle VM documentation
In addition, this hands-on-lab document is available at the following site: https://blogs.oracle.com/scoter/entry/oracle_openworld_2013_hands_on
Acknowledgments
Special thanks to Christophe Pauliat, Olivier Canonge, and Doan Nguyen for their contributions.
Revision 1.0, 12/20/2013
Follow us:
Blog | Facebook | Twitter | YouTube
E-mail this page
Printer View
Oracle Cloud
Blogs
Discussion Forums
Wikis
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
33/34
10/1/2014
Oracle ACEs
User Groups
Social Media Channels
Services and Store
Phone: +1.800.633.0738
Global Contacts
Oracle Support
Partner Support
http://www.oracle.com/technetwork/systems/hands-on-labs/migrate-ovm-linux-2095469.html?msgid=3-9568010570
34/34