oracle virtualbox basic to rac attack

36
Bobby Curtis, EMBA Northeast Ohio Oracle User Group Session November 21, 2014 Learning Oracle Virtual Box: Basics to RAC Attack

Upload: bobby-curtis

Post on 02-Jul-2015

466 views

Category:

Technology


1 download

DESCRIPTION

NEOOUG presentation on Virtual Box

TRANSCRIPT

Page 1: Oracle virtualbox basic to rac attack

Bobby Curtis, EMBA Northeast Ohio Oracle User Group Session November 21, 2014

Learning Oracle Virtual Box: Basics to RAC Attack

Page 2: Oracle virtualbox basic to rac attack

Accenture Enkitec Group Enkitec joined Accenture’s Infrastructure Services as Accenture Enkitec Group (May 2014)

Ø  17,000 Infrastructure Services professionals Ø  52,000 Oracle professionals

Focus on Oracle Engineered Systems Solutions Ø  Database Migrations & Transformations Ø  Database-as-a-Service Ø  Oracle Applications on Engineered Systems Ø  Cloud-based solutions leveraging Engineered Systems Ø  And many more offerings coming.

Page 3: Oracle virtualbox basic to rac attack

Speaker

Douglasville, Georgia Infrastructure Principle IOUG, RMOUG, GAOUG, RACSIG, DISOG

@dbasolved http://dbasolved.com [email protected] [email protected]

Page 4: Oracle virtualbox basic to rac attack

Agenda •  What is Oracle VM VirtualBox •  What do I need to run VirtualBox •  VirtualBox Virtualization Architecture •  Installing and Running VirtualBox •  VirtualBox Use Cases •  Learning Resources •  OTN Developer Days VirtualBox Appliances •  Accessing your VM Guests •  Tips and Tricks •  Snapshots

Page 5: Oracle virtualbox basic to rac attack

What is VirtualBox? §  Cross platform desktop virtualization software §  Supported Hosts:

§  Window, Mac, Linux and Solaris §  Runs on x86 based processors

§  Intel and AMD §  Operating Systems Supported

§  Windows (32-bit/64-bit) §  Linux (32-bit/64-bit) §  Solaris (32-bit and 64-bit)

§  Benefit §  Free!!!!!!

Page 6: Oracle virtualbox basic to rac attack

Requirements for VirtualBox •  Modern  computer  

•   Preferably  with  Virtualiza8on  support    •  Enabled  at  BIOS  

•  More  memory  the  be?er  •  4GB  min/8G  or  more  recommended  

•  Plenty  of  disk  space  •  SSD  recommended  

Page 7: Oracle virtualbox basic to rac attack

Virtualization Stack

Page 8: Oracle virtualbox basic to rac attack

Use Cases •  Applica8on  development  –  PL/SQL,  Java,  PHP,  APEX    •  Test  disaster  recovery  scenarios  

•  RMAN  Backup  &  Recovery  •  Data  Guard/GoldenGate  

•  Create  custom  appliances  •  Database  server  •  Applica8on  server  •  Custom  apps  

•  Patch  tes8ng  •  Run  Windows  on  a  Mac  -­‐  No  dual-­‐boot  required  

•  Dual  VPNs  

Page 9: Oracle virtualbox basic to rac attack

Getting Started

Download  

Install  

Build  VMs  

Timing:  10-­‐15  min.  

See  download  page  for  templates  or  custom  build.  

Page 10: Oracle virtualbox basic to rac attack

Learning Resources •  Oracle Learning Library

•  Tutorials •  Demos •  Videos

•  OTN Developer Days •  In-Person and Virtual •  Pre-Built Developer VMs

Page 11: Oracle virtualbox basic to rac attack

Oracle Learning Library

Page 12: Oracle virtualbox basic to rac attack

Pre-Built Virtual Machines Loca8on  to  find  pre-­‐built  VMs  

Page 13: Oracle virtualbox basic to rac attack

Pre-Built Virtual Machines Big Data Lite Appliance

Page 14: Oracle virtualbox basic to rac attack

Moving VMs •  Export/Import  Formats  

•  Open  Virtualiza8on  Format  (OVF)  •  Open  Virtualiza8on  Archive  (OVA)  –  add  disks  in  one  file  •  Useful  for  handing  out  (OTNVDD)  

•  Benefits  •  Useful  for  demos  and  hand-­‐outs  •  Portability  between  different  hosts/OS  •  Backups

Page 15: Oracle virtualbox basic to rac attack

Cloning VMs •  Clones  

•  Full  Clone  •  Linked  Clone  

•  Benefits  •  Quickly  create  VMs  •  Linked  clones  save  space  

Page 16: Oracle virtualbox basic to rac attack

Cloning VMs 1  

2  

3  

4  

Page 17: Oracle virtualbox basic to rac attack

Importing VMs

1  

2  

3  

Page 18: Oracle virtualbox basic to rac attack

Importing VMs

4  

5  

6  

Page 19: Oracle virtualbox basic to rac attack

Did you take a Snapshot?

Page 20: Oracle virtualbox basic to rac attack

Snapshots •  Point-­‐in-­‐8me  view  of  VM  •  Convenient  method  of  tes8ng  changes  •  Roll  back  and  forward  using  snapshots  •  Use  snapshots  sparingly  

•  Consume  lots  of  space  •  Snapshots  become  read-­‐only.    

•  New  data  wri?en  to  snapshot  deltas  •  Do  not  use  as  backups!  

Page 21: Oracle virtualbox basic to rac attack

Tips and Tricks General •  Add physical memory •  Store virtual disks on SSD •  Install Guest Additions (changes every version)  •  Enable memory over commitment (Page Fusion & Memory

Ballooning)*  •  Disable Host I/O cache •  Use dynamic disks •  Linked Clones (reduce disk usage for multiple VMs) •  Snapshots  

Page 22: Oracle virtualbox basic to rac attack

Networking Virtual Machines

Page 23: Oracle virtualbox basic to rac attack

Accessing Virtual Machines •  VirtualBox  GUI  

–  Remote  RDP  to  view  VM  from  different  machine  

•  Networking  –  Connect  remotely  using  SSH,  VNC  etc.  

•  Port  Forwarding  –  Connect  to  VM  from  host  using  forwarded  ports  

•  Shared  Folders  –  Share  files  between  VMs  and  host  

Page 24: Oracle virtualbox basic to rac attack

Accessing Virtual Machines •  Complicated/Confusing  

•  Network  Address  Transla8on  (NAT)  (Default)  •  Port  Forwarding  

•  Host-­‐only  networking  •  Bridged  Networking  •  Internal  Networking  

Tip:  Disable  firewalls  on  OS  within  VMs    Unix/Linux:  service  iptables  stop  

Page 25: Oracle virtualbox basic to rac attack

Accessing Virtual Machines NAT with Port Forwarding

Page 26: Oracle virtualbox basic to rac attack

Tips and Tricks Networking •  KISS principle

KEEP IT SIMPLE S______!  

Page 27: Oracle virtualbox basic to rac attack

Command Line Interface

•  Ran  by  VBoxManage  •  Uses  Verb  that  do  the  same  in  GUI  

•  VBoxManage –help!•  VBOXManage list –l vm!•  VBOXManage clonevm

<vmname>!  

Page 28: Oracle virtualbox basic to rac attack

Virtual Media Manager

•  Quickly  see  what  disks  are  where  

 

•  Can  remove  as  needed  •  If deleting VMs make sure

disks are remove from here  

Page 29: Oracle virtualbox basic to rac attack

Shared Folders

•  Easy  to  setup    

•  Quick  access  to  files  on  host  machine  

 

Page 30: Oracle virtualbox basic to rac attack

Roll your own VM

•  Download  sofware  from  OTN  •  Oracle  Linux  at  E-­‐Delivery  

 

•  Install  as  needed  •  OS of choice with patches •  Database software •  Applications

 

Page 31: Oracle virtualbox basic to rac attack

RAC Attack 12c •  Started by the IOUG RACSIG •  Held mostly at major conferences

•  Collaborate, RMOUG, ECO, and many others including international

•  SWAG •  Build a 2+n node RAC on your laptop

•  Instructions (racattack.org/12c) •  Become a RAC Attack Ninja

Page 32: Oracle virtualbox basic to rac attack

RAC Architecture on VMs

Page 33: Oracle virtualbox basic to rac attack

Valuable Resources VirtualBox.org  

Oracle Technology Network

Oracle Learning Library

Oracle Documentation

The Fat Bloke's Blog

Page 34: Oracle virtualbox basic to rac attack
Page 35: Oracle virtualbox basic to rac attack
Page 36: Oracle virtualbox basic to rac attack

Contact Info

@dbasolved http://dbasolved.com [email protected] [email protected]