Virtualization VM VirtualBox + Oracle Enterprise Linux With Oracle 11GR2
description
Transcript of Virtualization VM VirtualBox + Oracle Enterprise Linux With Oracle 11GR2
Virtualized Environments Oracle Enterprise Linux and Oracle VM (SUN)Virtual Box
John Heaton, iSeerix
Oracle OpenWorld UnConference Sep 2010
Agenda • Overview of Virtualization
• Terminology
• Types of Virtualization
• Oracle VM (Sun) VirtualBox
• Creating the Virtual Machine
• Virtual Machine – Guest O/S Install
• Oracle VM VirtualBox Additions
• Oracle Installation
• Post Install Steps
• Open Virtualization Format
• Conclusion
Overview of Virtualization
• Virtualization is the abstraction of computer resources.
• Widespread.
• Different types.
• Similar goal: how to more efficiently utilize available resources.
Terminology
• Host – the environment and operating system upon which the virtual machines are being executed.
• Guest – the operating system which is executed within the virtual machine.
• Virtual Hard Drive – file acting as a HD for a guest
• Virtual Machine – an environment which is created and runs on the host. Dedicated hardware resources and software.
Types of Virtualization
• Platform – separates operating system from underlying resources.
• Application – hosting of applications. • Storage – abstraction of logical storage from
physical storage. • Memory – creating virtualized memory pools. • Network – virtual private networks. • Desktop – remote desktop environments. • Database – decoupling of the database layer.
ORACLE VM (SUN) VIRTUALBOX
• Supports both 32 bit and 64 bit host and guest operating systems.
• Intel VT or AMD-V are supported.
• Support SMP up to 32 virtual processors.
• Large number of host platform options.
• Supports unmodified guests operating systems.
• Compatible with industry standards for OVF.
Oracle VM (Sun) VirtualBox Usage
• Maintaining legacy environments for applications.
• Testing of new operating systems and environments.
• Separate environments to isolate applications (development vs. office).
• Research and development environments to test features or functionality.
• Demo / Sandbox environments.
BUILDING AN ORACLE ENTERPRISE LINUX VIRTUALIZED ENVIRONMENT
• Requirements
Component Processor Memory Graphics
Memory
HDD
Host -
Windows 7
1Ghz or
higher
1GB minimum 128 MB 16 GB
Guest -
Oracle
Enterprise Linux
1Ghz or
higher
512 MB
minimum
32 MB 4 GB
Oracle 11GR2 1Ghz or
higher
1.5 GB 32 MB 24 GB
Total Hardware
Required
1 Ghz
higher
3 GB 128 MB 44 GB
VirtualBox - http://www.virtualbox.org Oracle Enterprise Linux - http://edelivery.oracle.com Oracle 11GR2 obtained - http://otn.oracle.com
Virtual Hard Drive • File which simulates the HD
for the guest operating system.
• Formatted and partitioned by the guest operating system.
• Can be fixed size or dynamic.
• Managed by the virtual media manager.
• Portable across the same host operating systems.
• Pre-create.
Demo Virtual Media Manager
Software Images
• CD / DVD images in ISO format.
• Can be shared across multiple Virtual Machines.
• When mounted are the same as a CD.
• Can be a boot device.
• Easier to use than CD / DVD.
• Best to be local on the Host HDD – faster access.
Demo Virtual Media Manager
Creating the Virtual Machine
• Container for the Guest Operating System.
• Identifies Guest Operating System.
• Can allocate system resources. – Memory
– Storage
– Networks
– Video
– Serial Ports
– USB Drives
– Shared Folders
• Configurable at any stage.
Demo Create Virtual Machine
Virtual Machine Options
• 32 / 64 Bit – Intel VT or AMD-V are required for 64 bit and must be enabled.
• Video Memory – use at least 32mb .
• Load the ISO image for O/S installation under Storage.
• Use Bridged network options. Allows you to interact with the VM. You can change these as necessary based on location and network options.
Virtual Machine – Guest O/S Install • Ensure the compatible
version for the Host. • If the ISO is configured
Linux will start the install process automatically
• Initial setup and package loading screen may take some time.
• Use the Host Key (Right CTRL) to toggle mouse support on/off for the VM.
Demo Install Guest O/S
• Graphical. • Same install process as a
physical server. • Walk through the
wizard. • Configure IP as DHCP if
no static address available and on different networks.
• The Virtual HDD will be partitioned for the O/S.
Virtual Machine – Guest O/S Install
• You can choose the default installation.
• Additional required packages can be installed later and are listed for Oracle.
• The Virtual HDD will be formatted for the Guest O/S.
• Package install could take 45 minutes + .
Virtual Machine – Guest O/S Packages
Virtual Machine – Guest O/S Install Continued
• After packages, reboot.
• Unmount CD.
• Continue the setup.
• Disable Firewall and SELinux.
• Use Oracle as the additional user.
• Once complete, reboot.
Oracle VM VirtualBox Additions • Installed from supplied ISO.
• Adds support for: – Shared Folder – the ability to share a folder
between the host operating system and guest operating system. • Read or Read / Write Mode.
• Mounted as a drive within Oracle Linux
– Mouse Support – removes the need to use the host key. (Right CTRL) to toggle the mouse support for the Virtual Machine.
– Enhanced Graphics Support – dependant on the kernel. Auto screen size and seamless mode is available.
Demo Additions and file mount
Configuring the Environment
• Prepare the Oracle Enterprise Linux for Oracle 11GR2 – Extraction of the software.
– Installation of Additional Linux Packages.
– Configuring the environment: • System configuration
• File Limits
• Profile Settings
• Oracle User
• Bash profile
Demo Environment Config
Installation of Oracle Software
• Select the type of installation. – Software and database
– Desktop Class
• Validate and verify the prerequisites, if not clean then correct and continue.
• Verify directory settings and database names.
Installation of Oracle Database
• Database configuration.
• Run root scripts.
• Configure the Listener with the database (NETMGR).
• If database create fails, use DBCA.
Demo NETMGR and DBCA
Open Virtualization Format • Independent. • Portable across
Operating Systems. • Can be used for
Backups. • Compresses. • Most reliable way to
Virtual Machines. • DO NOT INSTALL
VBADDITIONS FOR CLONES.
Demo OVF
Conclusion
• Oracle VM (Sun) Virtual Box is a robust cost effective virtualization technology.
• Multi Platform.
• Supports 32 bit and 64 bit.
• Effective as a sandbox environment from desktop to server using clones.
• Whitepaper as a download is available from
– www.iseerix.com