How to configure Oracle VM manager 3.3 in a lab at home using local disks

This post was done using version 3.3 of Oracle VM Manager.

Graphically things haven’t change much from version 3.2, but the configuration is slightly different and there are other improvements as well, by the way, I love the new Virtual Machine console!.

I am using a virtual box machine with Oracle Linux 6 and only 2GB of RAM for the VM Manager (requirements suggest 8GB!). It takes a time to boot and the first login in the console is quite slow as well but after that performance improves and is acceptable.

My VM server is a i7 quad-core with 2 hard drives. The more memory you have the better because OVM does not support memory overcommitment.

We need at least 2 HDD, one used as the installation/boot disk, the other one will be used as local storage for VMs.

Note: the second disk has to be raw, no partitions.
Note 2: As an alternative you can use external storage (not covered in this post), like those disk boxes that offer iSCSI or NFS (or another server sharing its disk like FreeNAS), if you have external storage the VM server machine needs only 1 HDD.

Once VM Manager is installed remember to install the new VNC console, it’s a package called ovmcore-console, use the one appropriate to your linux version.

rpm -ivh ovmcore-console-x.y-z.elv.noarch.rpm

If you follow the basic installation you already know the passwords and VM Manager console url: https://vmmanager1:7002/ovm/console

The first thing to do after you login is to discover the Oracle server:10 discover12 discover

Optionally you can edit the local disk name on the virtualization server, select your server , on the left frame and on the right in the drop down list Perspective select “Physical Disks”:

20 config storage 21 config storage

Now we make our network available to virtual machines:

30 config network 31 config network

And now we are ready to create the Server Pool:

40 create server pool

41 create server pool

42 create server pool

In Oracle OVM we need repositories, we will create one using the second local disk on the server.

Repositories will host the virtual machines disks as well other files like ISOs or Templates.

50 create local repo


51 create local repo 52 create local repo 53 create local repo

Now we can create virtual machines but first we need to import the media or templates to the repository we just created.

I have all my installers and templates on a different windows machine, Oracle VM can import them via HTTP so I installed a utility called HFS file server. It’s an executable file (no need to install it), once you run it will enable an HTTP file server in your machine. just drag the folders to the shareable section and that’s it!.

60 importing isos templates


62 importing isos templates

Here I’m importing a multi-file template:

61 importing isos templates

And that’ s it, the system is ready to start creating virtual machines.

Here is a link to the official documentation:











Posted in Oracle Server, Virtualization | Tagged , , , , , , | 1 Comment

How to install and configure Oracle Virtual Server 3.2 at home (Part 2/2)

This post covers the configuration of VM Manager using equipment at home, if you need to install it please read the first part of this post to learn how to do it.

One of the first things that I noticed by using VM Manager and trying to create my first VM is how complex it is, don’t get me wrong, the interface is actually clean but this is a complete datacenter virtualization solution and it’s aimed to manage multiple OVM servers using external storage, I’ll try to make it simple as this is our “home edition” configuration.

–Check an update of this post using version 3.3 here!

First open the URL address you received during the installation to connect to the management console, ignore the security warning and continue to the login screen. Enter the user and password.

Now we will review the following steps one by one

  1. Discover the OVM server.
  2. Configure storage.
  3. Configure network.
  4. Create server pool
  5. Configure repositories.
  6. Configure external storage to host ISOs and templates.
  7. Import ISO images or templates
  8. Create virtual machine.
  9. Boot the VM.

Continue reading

Posted in Linux/Unix, Oracle Server, Virtualization | Tagged , , , , , , , , | 3 Comments

How to install and configure Oracle Virtual Server 3.2 at home (Part 1/2)

As a DBA we do like to play with features and versions a lot, now with the release of Oracle 12c I wanted to take my virtualization system to another level 😉

I have been using VirtualBox on Linux for a while but I know how much power I can get using “real” hyperthreaded virtualization, so I decided to give Oracle Virtual Server a try after seeing small PCs running OVM and hosting three 11g RAC virtual nodes at Oracle university.

Requirements (software, virtual hardware and real hardware)
OVM needs 2 main components, one is the VM server, which will host the Virtual Machines and a Management console (VM Manager), which requires a separate server (can be a virtual machine).

For VM MANAGER I will use a Virtual Box machine as follows.

Oracle Enterprise Linux 6
25GB Disk space

For the VM server I will be using a quad-core machine with 2 hard drives. The more memory you have the better because OVM does not support memory overcommitment. This means that you can install as many VMs as your memory support.

Yes, we need at least 2 HDD, one used as the installation/boot disk, the other one will be used as local storage for VMs.
Note: the second disk has to be raw, no partitions in it.
Note 2: As an alternative you can use external storage, like those disk boxes that offer iSCSI or NFS (or another server sharing its disk like FreeNAS), if you have external storage the VM server machine needs only 1 HDD.


Continue reading

Posted in Oracle Server, Virtualization | Tagged , , , , , , | 3 Comments

virtualbox script to control Virtual Machines

Additional to my daily job, I need to “play” from time to time in my home server, it’s a quad core machine with 8 gigs of RAM and two hard drives, nothing special about it, the important thing is that it does the job.

About 8 month ago I upgraded the OS and VMWare server started to “complain”, specially the graphical interface, it was discontinued and almost dead, so I decided to move to VirtualBox, I also updated the OS to Oracle Linux 6.

I’m surprised on how complete VirtualBox is and the multiple configuration options available, the graphical interface just doesn’t make justice to the product.

I started creating virtual machines to test my new toy and I realized that when the virtual machines are started from the graphical interface (I use gnome) they have a “collateral” impact on the host performance, having that GUI interface sitting there cost cpu and memory, after that I understood the importance on correctly setting the “VRDE” (Virtual Box Remote Desktop Extension), let me tell you something, it really rocks.
VRDE allows you to connect to your machines, linux, windows or whatever, using your normal Windows remote desktop connection, is a true console that works even if the virtual machine you are connecting to have no network.

I want to share with you a script that I developed using bash shell scripting to control machines on VirtualBox 4, I call it vbctl (VirtualBox control), and it really helps controlling the machines states (startup, pause,shutdown ,save state, etc).

– It will scan the virtual machines in the system and list them (screenshot 1).
– It will allow you to perform operations on them (screenshot 2).
– Designed for headless machines, it will only start headless machines and it will show the RDC port (VRDE Port) in the listing (screenshot 1).
– VRDE activation, if you start a machine with VRDE disabled it will enable it and ask for a port number (between 5000 and 5050).

I want to state that this is not an intelligent script, it will do whatever you ask it to do (with some minor exceptions), for example, it will allow you to shut down a machine that’s already down.

Installation instructions:
– Create a directory (with the virtualbox administrator user).
– Save the script as
– chmod 740
– edit your .bash_profile and create an alias (optional)
alias vbctl=’/<path>/’

Click to enlarge

Screenshot 1 – Click to enlarge

click to enlarge

screenshot2 – Click to enlarge

One last thing, if you improve this script please share it back!



Well, the OperSource spirit arrived sooner than I expected.

In less than two weeks I received the first important improvement!

  • V1.3  can now be downloaded from here

Mr. João Figueiredo improved the visual presentation and added colors! he also fixed minor problem when Virtual machine names have spaces.

Please visit his website for screenshots and details or download the script directly from his website.

Version 1.2 is still available for download.

Posted in Linux/Unix, Oracle Server, Virtualization | Tagged , , , | 6 Comments

How to install ASMLIB from Oracle’s public YUM

There are several ways to get ASMLIB, we can download it from the OTN here, or we can download it from from ULN (Unbreakable Linux Network).

Also it comes in the the Unbreakable Linux media, but if you are not subscribed to ULN and you are not using Unbreakable Linux then most people go to the OTN, where you have to select your Linux flavor and then navigate to the correct file according to the linux kernel and then download the 3 files one by one.

I’m going to explain here how easy is to get it from Oracle’s public YUM repository (how to configure the public YUM repository?)

Once you have the public YUM enabled do as root:

yum install oracleasm-support oracleasmlib oracleasm-`uname -r`

ET VOILA!!! it will take just one minute to complete!.

Here is an example on a CentOS 5.4

[root@scen503 yum.repos.d]# yum install oracleasm-support oracleasmlib oracleasm-`uname -r`
..   skipping a bunch of things...
Resolving Dependencies
--> Running transaction check
---> Package oracleasm-2.6.18-194.el5.x86_64 0:2.0.5-1.el5 set to be updated
---> Package oracleasm-support.x86_64 0:2.1.4-1.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

Package                      Arch       Version          Repository       Size
oracleasm-2.6.18-194.el5     x86_64     2.0.5-1.el5      el5_u5_base      25 k
oracleasm-support            x86_64     2.1.4-1.el5      ol5_u6_base      87 k

Transaction Summary
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 113 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm   |  25 kB     00:00
(2/2): oracleasm-support-2.1.4-1.el5.x86_64.rpm          |  87 kB     00:00
Total                                           133 kB/s | 113 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : oracleasm-support                                        1/2
Installing     : oracleasm-2.6.18-194.el5                                 2/2

oracleasm-2.6.18-194.el5.x86_64 0:2.0.5-1.el5
oracleasm-support.x86_64 0:2.1.4-1.el5


Then just follow the installation guide…here are some quick steps to configure ASMLIB:

[root@scen503]# oracleasm configure -i
Configuring the Oracle ASM library driver.

This will configure the on-boot properties of the Oracle ASM library
driver.  The following questions will determine whether the driver is
loaded on boot and what permissions it will have.  The current values
will be shown in brackets ('[]').  Hitting <ENTER> without typing an
answer will keep that current value.  Ctrl-C will abort.

Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
[root@scen503]# /usr/sbin/oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Mounting ASMlib driver filesystem: /dev/oracleasm

Then we need to create all disks, change ASMLIBDISK1 according to your naming conventions:

/usr/sbin/oracleasm createdisk ASMLIBDISK1 /dev/sdb1
Writing disk header: done
Instantiating disk: done

and finally scan and list the disks

/usr/sbin/oracleasm scandisks

/usr/sbin/oracleasm listdisks

Find more of ASM here.

Good luck!

Posted in High-Availability, Linux/Unix, Oracle Server | Tagged , , , | 3 Comments