Tuesday, January 8, 2013

How to setup Oracle VM 3.1.1 Demo Env on Oracle VirtualBox

In this post, we will setup OVM Manager 3.1.1 and OVM Server on virtual box.

OVM Manager: ovmm.rubiconred.com 10.0.0.41
OVM Server:     ovmsrv1.rubiconred.com 10.0.0.31

And then we will discover ovm server, storage, create network, vnics, server pool and repository.

1. Install OVM Manager
Create Virtual Machine on virtualbox
Install Linux
Install OVM Manager
Refer to Oracle Document: http://docs.oracle.com/cd/E27300_01/E27308/html/vmiug-manager-installation.html

Regarding the network of virtualbox, you can choose Host-Only or Bridge.

Since in my demo env, OVM Manager virtual machine and OVM Server virtual machine will run on different physical box, so I choose Bridge type.

VirtualBox Configuration:













Or the simplest way is to download VirtualBox Templates for Oracle VM 3.1 from Oracle Website:
http://download.oracle.com/otn/vm/OracleVM-Manager-3.1.1-build365.ova


2. Install OVM Server
Create Virtual Machine on Virtualbox
Install OVM Server
Refer to Oracle Document: http://docs.oracle.com/cd/E27300_01/E27308/html/vmiug-server-installation.html

VirtualBox Configuration














Or download from Oracle Website:  http://download.oracle.com/otn/vm/OracleVM-Server-3.1.1-build365.ova

Now we have 2 virtual machines, one for OVM Manager and one for OVM server.

It's time to config OVM Demo Platform on Oracle VirtualBox now.
Since it's a demo env, we will keep the configuration as simple as possible. For example: using nfs for repository and server pool heart beat, using same network for management and virtual machine...
Lets start to configure it!!!

3. Discover Oracle VM Servers

Click discover server button, marked with red color









Fill agent password and server ip address, click OK button.















The Oracle VM Servers are discovered and added to the Unassigned Servers folder in the Servers and VMs tab.








4. Discover Storage
In this demo, to keep it simple, we are using NFS storage.
These NFS storage are virtual disks attached to virtual machine of ovm manager 3.1.1

Click Storage Tab and Click Discover File Sever button









Fill Server Name, IP Address and then click Next button











Select Servers and Click Next button










Select File Systems for VM and click Finish button











File Server has been discovered successfully

5. Create Virtual Machine Network
Since we are using NFS-based storage, we only need create a network with Virtual Machine role. this can be assigned to the existing management network or a new network.

To keep it simple in this demo env, we will use existing management network instead of new network to be created.









Select Virtual Machine and Click Next Button










Select Servers and Click Next button










Select Ports and Click Next Button










Click Next button and then Click Finish button







6. Create VNICs

Under Network Tab, Click Virtual NICs and then Click AutoFill button and Create Button








The created results VNICs are shown in the OVMM console















7. Create Server Pool

Click Create Server Pool Button from Toolbar








Enter Sever Pool information and Click Next to Create Server Pool















Add Servers to the Server Pool and Click Finish Button













Now Server Pool RubiconredServerPool01 is created and ovmsrv1 has been added to the server pool successfully.









8. Create Repository

Under Repositories tab, Click Create New Repository button







Fill Wizard, select Network File System to create repository


























Repository is created properly now.









Now you are able to create new virtual machine in this demo env.
Have fun.