46
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 1

Oracle VM VirtualBox: The Best Tool I Ever Used

Embed Size (px)

DESCRIPTION

Oracle VM VirtualBox provides high performance, support for numerous virtual appliances available in the Open Virtualization Format (OVF), multiplatform application development and testing, 2-D/3-D graphics acceleration, and cutting-edge features—including the ability to teleport a running virtual machine between hosts. Oracle VM VirtualBox is a useful tool for developers who need to port code across different operating environments. Because Oracle VM VirtualBox enables hosting of multiple guest operating systems on a single machine, a developer can easily switch operating systems in no time, simply by changing between different desktop windows. In this session, you will understand why it will be your favorite tool as well.

Citation preview

Page 1: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.1

Page 2: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.2

Oracle VM VirtualBox:The Best Tool I Ever UsedAndy HallDirector of Product Management

Page 3: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.3

Oracle VM VirtualBoxCross-platform Virtualization Software

• For Windows, Linux, Solaris and Mac Hosts

• Leverage existing hardware and skillsets

• Huge Guest Coverage• Easy to install and use• Fast and powerful• Free for Personal Use

Host Platforms

Guest Platforms

x86 Hardware

Oracle VM VirtualBox

Page 4: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.4

Oracle VM VirtualBoxCross-platform Virtualization Software New in

4.2

Page 5: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.5

PerformanceHigh Performance Virtual Hardware• Processor: 1-32 vCPUs per guest; 32-bit and 64-bit guests; PAE support; with

or without VT-x/AMD-V (EPT/Nested Paging, VPID supported)• RAM: up to 1TB per guest• Storage: SATA, SAS, SCSI or IDE controllers; >100 disks; integrated iSCSI

initiator• Network: up to 36 NICs per guest; Intel gigabit; virt-io; PCnet• Virtual USB Controller: USB 1.1 and 2.0; pass-through and virtual devices• Audio: Intel High Definition Audio• Full ACPI Support: guests show real power status• Virtual CD/DVD: pass-through for CD/DVD writing, multiple concurrent• Display Adaptor: multi-monitor capable with graphics acceleration: OpenGL for

Windows, Linux, Solaris Guests; Direct3D for Windows; 2D Video acceleration, built-in RDP Server

Page 6: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.6

Introductory Demo

Page 7: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.7

Demo

Creating a new client vm Suspend and resume Display modes Copy and paste USB Shared folders Command Line Interface

Host Platforms

Guest Platforms

x86 Hardware

Oracle VM VirtualBox

Page 8: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.8

User Mode

•Web Service interfaces•COM/XPCOM interfaces•Python interfaces and interactive shell

•Command line interface VBoxManage•Pluggable Virtual Device architecture and APIs

Kernel Mode

VirtualBox HypervisorWindows, Linux, OS X, Solaris, FreeBSD

VirtualBox API layerlanguage neutral programming interface

Teleportation

Web Services API

PortabilityLayer

cross platform

abstraction layer

Command line interfaceVirtualBox Manager

VirtualDevices

binary compatibleinterface,

3rd Party plug-in

Resource Monitor VRDP Server

Architecture

Page 9: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.9

VirtualBox Front-ends

• Powerful command line tools

# VBoxManage …

• Python shell

# python vboxshell.py

Command Line Interface

Page 10: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.10

Oracle VM VirtualBox Manager

Organize– VM groups to manage and control guests collectively– Nested groups– Enter/Leave group contexts

Create– “Express” mode guest creation– New Guest types

Start– Launch groups– Launch headless

Stop– Stop vm or groups using Shutdown, Suspend, Poweroff

New in4.2

Page 11: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.11

Host-Guest Interoperability

Shared clipboard– Controllable copy and paste– Backwards compatible

Drag and Drop– Linux guests only (as yet)

Extended Guest Control commands– Files commands Copy from/to, Create directory, Stat– Execution– Update Guest Additions

New in4.2

Page 12: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.12

Autostart

Using guests to deliver services

Uses host’s native service mechanism– Linux - /etc/init– Solaris – SMF framework– Mac - Launchd

Host Platforms

x86 Hardware

Guest Platforms

Oracle VM VirtualBox

New in4.2

Page 13: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.13

“I need to be able to work anywhere and anytime. I'd love to carry my entire work environment with me everywhere.”

The IT Pro

The Server in your Lap

Page 14: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.14

Host Platform

en0: 129.156.4.212Built-in DHCP server for guestsGateway: 10.0.2.2

VirtualBox NAT Networking

• Guests sit on own private LAN

• VirtualBox acts as a DHCP Server

• VirtualBox NAT engine translates addresses

• Destination servers see traffic originating from VirtualBox host

• No configuration needed on Host or Guest

• Great when guests are clients

• Not good for guests as servers

Zero Guest Configuration

Guest Platform

vm1: 10.0.2.15

Guest Platform

vm2: 10.0.2.15

Guest Platform

vm3: 10.0.2.15

Page 15: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.15

VirtualBox Bridged Networking

• VirtualBox bridges to Host Network• Good for clients or server guests• Consumes IP addresses• May involve configuration of guest • Best for production environments

Guests are Full Network Citizens

Guest Platform

vm1: 129.156.4.10

Host Platform

en0: 129.156.4.212

Guest Platform

vm2: 129.156.4.11

Guest Platform

vm3: 129.156.4.12

Page 16: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.16

VirtualBox Internal Networking

• Guests can see other guests on same internal network

• Host cannot see internal network• Network configuration needed • Functions even when Host

disconnected.• Can be used in conjunction with

Bridged• Good for multi-tier solutions

Totally Isolated Network

Host Platform

en0: 129.156.4.212

Guest Platform

vm1: 10.0.2.1

Guest Platform

vm2: 10.0.2.2

Guest Platform

vm3: 10.0.2.3

VBoxNet0

Page 17: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.17

VirtualBox Host-only Networking

• VirtualBox creates a private internal network for guests and host

• Host sees a new software NIC• VirtualBox provides a DHCP server• Guests cannot see outside world• Guests function even when host

disconnected• Great for development

Convenient Internal Networking

Built-in DHCP server for guestsen0: 192.168.56.1

en0: 129.156.4.212

Guest Platform

vm1: 192.168.56.101

Guest Platform

vm2: 192.168.56.102

Guest Platform

vm3: 192.168.56.103

VBoxNet0

Page 18: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.18

Host Platform

en0: 129.156.4.212Built-in DHCP server for guestsGateway: 10.0.2.2

VirtualBox Port Forwarding with NAT

Guests connect out via NAT as usual Clients on the network can connect to

host:port and be mapped to a guest:port

No guest reconfiguration required when host moves across networks

For Mobile Server-based Guests

Guest Platform

vm1: 10.0.2.15

Guest Platform

vm2: 10.0.2.15

Guest Platform

vm3: 10.0.2.15

Page 19: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.19

Networking Demo

Page 20: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.20

A Server in your Lap Demo

• Networking modes– NAT (client)– Bridged (full network citizen)– Internal– Host-only networking– Port-forwarding

• 32-bit or 64-bit Servers• SMP Servers• Headless-mode Servers

Host Platforms

Guest Platforms

x86 Hardware

Oracle VM VirtualBox

Page 21: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.21

Improved Networking

Scale– Up to 36 virtual NICs using ICH9

chipset

Network I/O Bandwidth Throttle– VBoxManage bandwidthctl "VM name" add Limit

--type network --limit 20m– VBoxManage modifyvm "VM name" --

nicbandwidthgroup1 Limit

VLAN support with E1000

Host Platform

en0: 129.156.4.212Built-in DHCP server for guestsGateway: 10.0.2.2

Guest Platform

vm1: 10.0.2.15

Guest Platform

vm2: 10.0.2.15

Guest Platform

vm3: 10.0.2.15

Page 22: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.22

Fear-free Development

“You never know when a change in the environment or stack is going to bite you. You can sometimes spend so much time diagnosing what changed.”

Developer/System Architect

Page 23: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.23

Snapshots

Testing– Create a snapshot– Modify guest (e.g. patches, install apps, etc.)– Revert back to initial state

Branching– Use different software levels of the guest (e.g.

IE5, IE6, IE7, ...)

Backup– Revert to a pristine base (e.g. viruses, ...)

Page 24: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.24

SnapshotsHow Snapshots work

Page 25: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.25

Cloning

Use cases:– Backup: create a full copy of an existing VM to have a backup– Branching/Testing: like Snapshots– Template: allow to create several VMs (which could than be modified) from one base state– Replication: the same VM could be started more than once after cloning (e.g. clusters, grids)

Exact copy of VM either as full copy or in some linked way

Virtual Machine A

VM Configuration

Virtual Disks and Snapshots

Clone of Virtual Machine

Copy of VM Configuration

Copy of Virtual Disks and Snapshots

Page 26: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.26

Clones

Full Clones– Full copy– Disk UUIDs automatically made unique– Optionally MAC addresses made unique– VirtualBox Manager and CLI

Linked clones– VM config is copied– A snapshot is taken at source– The clone uses a child differencing disk

with source snapshot as parent

Duplicate Virtual MachinesVirtual Machine A

VM Configuration

Virtual Disks and Snapshots

Clone of Virtual Machine

Copy of VM Configuration

Copy of Virtual Disks and Snapshots

Virtual Machine A Clone of Virtual Machine

VM Configuration

Virtual Disks and Snapshots

Copy of VM Configuration

Differencing disk

Page 27: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.27

Snapshots and Clones Demo

Page 28: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.28

Snapshot and Cloning Demo

Snapshots– How to take a snapshot– Reverting to a snapshot– Deleting a snapshot

Clones– Full and Linked

Summary

Page 29: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.29

Team working

“I work with some great guys who are super-smart.I wish we could clone them somehow, or be able to use them and their output more intelligently.”

Team members

Page 30: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.30

Client

Server

VirtualBox

Virtual Disk

Virtual Disk(ubuntu 9)

VirtualBox

Virtual Disk(ubuntu 10)

Virtual Disk(Windows 7)

Virtual Disk(Windows XP)

iSCSI orShared filesystems (NFS, SMB, etc)

VirtualBox

Collaborative WorkingClient-side or Server-side Storage

Page 31: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.31

VirtualBox Remote Display

High performance Remote Display Server

Microsoft RDP compatible Sits “beneath” guests No RDP requirement on guest Delivers boot-time display of VM

consoles Companion Flash RDP client

Built-in access to virtual machine console

Guest

Hypervisor

VRDP Server

Guest Guest Guest

StandaloneRDP Client

(e.g. Microsoft RDC, rDesktop)

Browser-basedFlash RDP

Client

Page 32: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.32

ClientVirtualBox

VM

RDP client

RDPVRDP Server

Collaborative WorkingRemote Access to Virtual Machines

Page 33: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.33

Client

Server

VirtualBox

...

RDP

VM VM VM VM VM

Collaborative WorkingRemote Access to Virtual Machines

Page 34: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.34

Remote Access Demo

Page 35: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.35

Oracle VirtualizationThe Full Stack, End-to-End

DATA CENTER

Servers Servers Servers

Oracle VM Servers

Oracle Enterprise Manager

12cVMVM

VM

VM

VM

VM

Server Virtualization Desktop Virtualization

Oracle VMTemplates

&Assemblies

SiebelCRMVMs

Software Delivery Cloud

USER

S

Siebel Contact Center

Oracle Sun Ray Clients

PCs, MACs,MOBILE

DEVICES

THIN CLIENTS

Oracle Virtual Desktop Client

BROWSER

Oracle Secure Global DesktopApplication Stack

Oracle D

esktop Virtualization

• Oracle VM Server for x86• Oracle VM Server for SPARC

(LDoms)

• Oracle Virtual Desktop Infrastructure

• Sun Ray Clients • Oracle Secure Global Desktop• Oracle VM VirtualBox

Network

Storage

Storage

Network Virtualization• Oracle Xsigo Data Center Fabric

Page 36: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.36

Enterprise Desktop use of VirtualBoxOther sessions

“Bring Your Own Device for Enterprise Application Access in 2012 and Beyond”

– Tuesday, October 2nd. 1:15 PM - Moscone South – 270

“The Desktop Cloud: Simplified, Reliable, and Secure Access to Oracle Applications”

– Tuesday, October 2nd. 5:00 PM - Moscone South – 252

Page 37: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.37

“So often problems are introduced by people not deploying our stuff correctly. But we can't ship a human being with every copy of the software.”

Virtual Appliances or VM Templates

New Deployment Approaches

Page 38: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.38

Virtual Appliances

Export and Import of VMs– Industry Standard “Open

Virtualization Format”– Easy to use wizard – Command-line interface

Built-in Support for OVF Templates or Appliances

Page 39: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.39

Virtual Appliances Enterprise Java Development Database App Development Oracle VM Manager & Server VMs Solaris 11 Admin VM Sun ZFS Storage Appliance Simulator Oracle Tuxedo Web Application Server Demo Oracle Business Intelligence SampleAppV207 SOA & BPM Development VM Enterprise PHP Development VM

Downloadable appliances

Page 40: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.40

Virtual Appliance Demo

Page 41: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.41

Oracle Virtual Desktop Infrastructure and Sun Ray ClientsMoscone South, Center S-139

Oracle Secure Global DesktopMoscone South, Center S-140

Oracle VM VirtualBoxMoscone South, Center S-174

DEMOgrounds

Desktop Virtualization Product Demonstrations

Page 42: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.42

Learn More: Oracle Desktop Virtualization

Home Pageoracle.com/virtualizationwww.virtualbox.org

Blogblogs.oracle.com/virtualizationblogs.oracle.com/fatbloke

Downloadoracle.com/technetwork/server-storage/virtualbox/downloads/index.htmlvirtualbox.org/wiki/Downloads

Page 43: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.43

Join the conversation@ORCL_Virtualize @VirtualBox

facebook.com/OracleVirtualizationfacebook.com/OracleVMVirtualBox

youtube.com/OracleVirtualizationyoutube.com/user/TheFatBloke007

Page 44: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.44

Questions?

Page 45: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.45

Page 46: Oracle VM VirtualBox: The Best Tool I Ever Used

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.46