How to install Oracle VM Manager – Part 1


OVS Server Details:

Hostname: ovs01.lab.local
IPADDRESS: 10.10.10.150
Oracle VM Server: 3.3.3

Oracle VM Manager Details:

Hostname: ovm.lab.local
IPADDRESS: 10.10.10.151
OS: Oracle Enterprise Linux 6.7
VM Manager: 3.3.3

NFS Server Details:

Hostname: mgmtsrv.lab.local
IPADDRESS: 10.10.10.11

Step 1: Install Prerequisites package

[root@ovm ~]# yum install ntp unzip zip perl libaio -y

Step 2: NTP configuration

[root@ovm ~]# cat > /etc/ntp.conf << EOF
driftfile /var/lib/ntp/drift

restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

restrict 127.0.0.1
restrict -6 ::1

server mgmtsrv.lab.local iburst

includefile /etc/ntp/crypto/pw

keys /etc/ntp/keys
EOF

Step 3: Download and mount Oracle VM Manager

[root@ovm ~]# mount -t iso9660 /dev/sr0 /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only

[root@ovm ~]# ls /mnt
components EULA oracle-validated.params ovmcore-console-1.0-42.el6.noarch.rpm OvmSDK_3.3.3.1085.zip TRANS.TBL
createOracle.sh LICENSE ovmcore-console-1.0-42.el5.noarch.rpm ovmm-installer.bsx runInstaller.sh

Step 4: Create Prerequisites for VM Manager

[root@ovm ~]# cd /mnt/
[root@ovm mnt]# ./createOracle.sh
Adding group 'oinstall' with gid '54321' ...
Adding group 'dba'
Adding user 'oracle' with user id '54321', initial login group 'dba', supplementary group 'oinstall' and home directory '/home/oracle' ...
Changing ownership of '/home/oracle' to oracle:dba
Creating user 'oracle' succeeded ...
For security reasons, no default password was set for user 'oracle'. If you wish to login as the 'oracle' user, you will need to set a password for this account.
Verifying user 'oracle' OS prerequisites for Oracle VM Manager ...
oracle soft nofile 8192
oracle hard nofile 65536
oracle soft nproc 2048
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
oracle soft core unlimited
oracle hard core unlimited
Setting user 'oracle' OS limits for Oracle VM Manager ...
Altered file /etc/security/limits.conf
Original file backed up at /etc/security/limits.conf.orabackup
Verifying & setting of user limits succeeded ...
Creating mountpoint '/u01' ...
Modifying iptables for OVM
Adding rules to enable access to:
7002 : Oracle VM Manager https
54322 : Oracle VM Manager core via SSL
123 : NTP
10000 : Oracle VM Manager CLI Tool
service iptables status: stop
iptables: No config file. [WARNING]
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
Rules added.

Step 5: Install Oracle VM Manager

[root@ovm mnt]# ./runInstaller.sh -n

Oracle VM Manager Release 3.3.3 Installer

Oracle VM Manager Installer log file:
/var/log/ovmm/ovm-manager-3-install-2017-12-12-025558.log

Please select an installation type:
1: Install
2: Upgrade
3: Uninstall
4: Help

Select Number (1-4): 1

Starting production with local database installation ...

Ignoring prerequisites check ...

One password is used for all users created and used during the installation.
Enter a password for all logins used during the installation: ## Enter VM Manager admin password ##
Enter a password for all logins used during the installation (confirm): ## Re-Enter VM Manager admin password ##

Please enter your fully qualified domain name, e.g. ovs123.us.oracle.com, (or IP address) of your management server for SSL certification generation 10.10.10.151 [ovm.lab.local]:

Verifying configuration ...

Start installing Oracle VM Manager:
1: Continue
2: Abort

Select Number (1-2): 1

Step 1 of 9 : Database Software...
Installing Database Software...
Retrieving MySQL Database 5.6 ...
Unzipping MySQL RPM File ...
Installing MySQL 5.6 RPM package ...
Configuring MySQL Database 5.6 ...
Installing MySQL backup RPM package ...

Step 2 of 9 : Java ...
Installing Java ...

Step 3 of 9 : Database schema ...
Creating database 'ovs' ...
Creating database 'appfw'
Creating user 'ovs' for database 'ovs'...
Creating user 'appfw' for database 'appfw'

Step 4 of 9 : WebLogic and ADF...
Retrieving Oracle WebLogic Server 12c and ADF ...
Installing Oracle WebLogic Server 12c and ADF ...
Applying patches to Weblogic ...

Step 5 of 9 : Oracle VM ...
Installing Oracle VM Manager Core ...
Retrieving Oracle VM Manager Application ...
Extracting Oracle VM Manager Application ...

Retrieving Oracle VM Manager Upgrade tool ...
Extracting Oracle VM Manager Upgrade tool ...
Installing Oracle VM Manager Upgrade tool ...

Step 6 of 9 : Domain creation ...
Creating Oracle WebLogic Server domain ...
Starting Oracle WebLogic Server 12c ...
Creating Oracle VM Manager user 'admin' ...

Retrieving Oracle VM Manager CLI tool ...
Extracting Oracle VM Manager CLI tool...
Installing Oracle VM Manager CLI tool ...

Step 7 of 9 : Deploy ...
Configuring Https Identity and Trust...
Deploying Oracle VM Manager Core container ...
Configuring Client Cert Login...
Deploying Oracle VM Manager UI Console ...
Deploying Oracle VM Manager Help ...
Disabling HTTP access ...

Step 8 of 9 : Oracle VM Tools ...

Retrieving Oracle VM Manager Shell & API ...
Extracting Oracle VM Manager Shell & API ...
Installing Oracle VM Manager Shell & API ...

Retrieving Oracle VM Manager Wsh tool ...
Extracting Oracle VM Manager Wsh tool ...
Installing Oracle VM Manager Wsh tool ...

Retrieving Oracle VM Manager Tools ...
Extracting Oracle VM Manager Tools ...
Installing Oracle VM Manager Tools ...
Copying Oracle VM Manager shell to '/usr/bin/ovm_shell.sh' ...
Installing ovm_admin.sh in '/u01/app/oracle/ovm-manager-3/bin' ...
Installing ovm_upgrade.sh in '/u01/app/oracle/ovm-manager-3/bin' ...

Step 9 of 9 : Start OVM Manager ...
Enabling Oracle VM Manager service ...
Shutting down Oracle VM Manager instance ...
Starting Oracle VM Manager instance ...
Waiting for the application to initialize ...
Oracle VM Manager is running ...

Please wait while WebLogic configures the applications...
Oracle VM Manager installed.

Installation Summary
--------------------
Database configuration:
Database type : MySQL
Database host name : localhost
Database name : ovs
Database listener port : 49500
Database user : ovs

Weblogic Server configuration:
Administration username : weblogic

Oracle VM Manager configuration:
Username : admin
Core management port : 54321
UUID : 0004fb00000100009157557324ed168d

Passwords:
There are no default passwords for any users. The passwords to use for Oracle VM Manager, Database, and Oracle WebLogic Server have been set by you during this installation. In the case of a default install, all passwords are the same.

Oracle VM Manager UI:
https://ovm.lab.local:7002/ovm/console
Log in with the user 'admin', and the password you set during the installation.

Note that you must install the latest ovmcore-console package for your Oracle Linux distribution to gain VNC and serial console access to your Virtual Machines (VMs).
Please refer to the documentation for more information about this package.

For more information about Oracle Virtualization, please visit:
http://www.oracle.com/virtualization/

Oracle VM Manager installation complete.

Please remove configuration file /tmp/ovm_configls3iVa.

Install Docker and pull image to local repository – Part 1


Docker, is an open-source lightweight virtualization tool designed to make it easier to create, deploy, and run applications by using containers.
Docker is a bit like a virtual machine. But it will not creating a whole virtual operating system, Docker allows applications to use the same Linux kernel as the system that they’re running on and only requires applications

In this section we will see how to install docker in CentOS-6.8 x86_64

Step 1: Install Prerequisites and docker package

[root@docker ~]# yum install epel-release

[root@docker ~]# yum install docker-io

Dependencies Resolved

================================================================================
Package Arch Version Repository
Size
================================================================================
Installing:
docker-io x86_64 1.7.1-2.el6 epel 4.6 M
Installing for dependencies:
bridge-utils x86_64 1.2-10.el6 base 30 k
libcgroup x86_64 0.40.rc1-23.el6 base 131 k
lua-alt-getopt noarch 0.7.0-1.el6 epel 6.9 k
lua-filesystem x86_64 1.4.2-1.el6 epel 24 k
lua-lxc x86_64 1.0.10-2.el6 epel 16 k
lxc x86_64 1.0.10-2.el6 epel 124 k
lxc-libs x86_64 1.0.10-2.el6 epel 258 k
rsync x86_64 3.0.6-12.el6 base 335 k
xz x86_64 4.999.9-0.5.beta.20091007git.el6 base 137 k

Transaction Summary
================================================================================
Install 10 Package(s)

Total download size: 5.6 M
Installed size: 22 M
Is this ok [y/N]: y

Installed:
docker-io.x86_64 0:1.7.1-2.el6

Dependency Installed:
bridge-utils.x86_64 0:1.2-10.el6
libcgroup.x86_64 0:0.40.rc1-23.el6
lua-alt-getopt.noarch 0:0.7.0-1.el6
lua-filesystem.x86_64 0:1.4.2-1.el6
lua-lxc.x86_64 0:1.0.10-2.el6
lxc.x86_64 0:1.0.10-2.el6
lxc-libs.x86_64 0:1.0.10-2.el6
rsync.x86_64 0:3.0.6-12.el6
xz.x86_64 0:4.999.9-0.5.beta.20091007git.el6

Complete!

Step 2: Start the docker service

[root@docker ~]# /etc/init.d/docker status
docker is stopped

[root@docker ~]# /etc/init.d/docker start
Starting cgconfig service: [ OK ]
Starting docker: [ OK ]

[root@docker ~]# chkconfig docker on

Step 3: Docker Check

Execute below command to see the version of installed docker application

[root@docker ~]# docker version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d/1.7.1
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d/1.7.1
OS/Arch (server): linux/amd64

To see the basic information about the docker

[root@docker ~]# docker info
Containers: 0
Images: 0
Storage Driver: devicemapper
Pool Name: docker-253:0-5084-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: extfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 305.7 MB
Data Space Total: 107.4 GB
Data Space Available: 7.027 GB
Metadata Space Used: 729.1 kB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.147 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.117-RHEL6 (2016-04-01)
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 2.6.32-642.el6.x86_64
Operating System:
CPUs: 1
Total Memory: 1.826 GiB
Name: docker.devtcs.local
ID: DW2Z:OXCT:IJIK:X7DQ:5X4E:KNZN:RYQ6:GMGG:GRGS:M426:DEMZ:QKEE

Step 4: Search and Pull the docker registry for latest CentOS images

[root@docker ~]# docker search centos

where,

Name – Name of the Docker Image
STARS – Indicates the popularity of the Image. It’s good to go with the most STARS

Below command only pulls the docker image to your local repository and does not run it.

[root@docker ~]# docker pull centos
latest: Pulling from centos

d9cdac769794: Pull complete
8b7794bcb4f9: Pull complete
f3b88ddaed16: Pull complete
Digest: sha256:acb3b91e930743331be14cd3c8154da9967e2a2fca2aad0e1f27efce6deb2884
Status: Downloaded newer image for centos:latest

Check your local image repository by running the below command.

[root@docker ~]# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
centos latest f3b88ddaed16 4 weeks ago 192.5 MB

To check the status of your images
(more…)

Install Openfiler as a Guest OS in VirtualBox


In my previous post we have seen the steps to install VirtualBox on CentOS. Here we are going to see the steps to install Openfiler as a guest os on VirtualBox.

After installing VirtualBox follow the steps below.

The term “Guest OS” refers to the operating system which is to be installed inside a VirtualBox.

Step1: Create a Virtual Machine

First job is to create a virtual machine, to do open VirtualBox and click “New” from the toolbar.

Select “New” from the toolbar to create a new Virtual Machine

Enter any name for your Virtual Machine and select the Operating System you are going to use as your GUEST OS. ie., Enter Openfiler in Name field

Select the OS you are going to use inside your Virtual Machine. ie., Select the type as Linux and Version is Linux 2.6 (64 bit)

Select the amount of RAM to be allocated to the Virtual Machine. ie., Minimum RAM should be 512MB

You need to create a Virtual Hard disk for your Virtual Machine. ie., Minimum 10GB Dynamic Partition

Step 2: Change the boot order of the VM

Right click the newly created Virtual machine and go to settings.

Go to the settings of your Virtual Machine

Select storage from the left side list, select the CD icon and from the right select “Choose a virtual CD/DVD disk file”, navigate to the Openfiler ISO image file of the OS on your computer. Now the OS image is mounted to your Virtual machine.

To change the boot device order of your virtual machine go to the “System” option from the left side list, select Hard Disk and click the up arrow to bring it to the top of the list. Make the CD/DVD-ROM the second device and uncheck the other devices.

Set the boot device priority for the virtual machine.

Step 3: Start the Virtual machine

To start the virtual machine double-click the VM, a window opens here you can press F12 if you want to select a device of your choice to boot.

Press F12 to select the boot device of your choice

To boot from the CD-ROM press c.

Press c to boot the VM from a CD image

Your VM will now boot from your Operating System image file and the OS installation will start as usual.

Step 4: Openfiler Installation

Use the below link to install and configure openfiler guest os.

http://www.openfiler.com/learn/how-to/graphical-installation

Install Oracle VirtualBox on CentOS/RedHat 6/5


Oracle VirtualBox is a cross-platform virtualization application(windows/linux). It extends the capabilities of your existing operating system so that it can run multiple operating systems at the same time.

Here we are going to see how to install VirtualBox on CentOS/RHEL using repoistory.

Step 1: Required yum repositories

First we need to create VirtualBox yum repository on linux server.

[root@server.local ~]#cd /etc/yum.repos.d/
[root@server.local ~]#wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo

Download and install CentOS/RHEL EPEL repository

CentOS/RHEL 6, 32 Bit (i386):
[root@server.local ~]#rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

CentOS/RHEL 6, 64 Bit x86_64):
[root@server.local ~]#rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

CentOS/RHEL 5, 32 Bit (i386):
[root@server.local ~]#rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

CentOS/RHEL 5, 64 Bit (x86_64):
[root@server.local ~]#rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

Step 2: Install dependency packages

Oracle VirtualBox requried some dependency packages to run virtualbox.

[root@server.local ~]#yum install gcc make patch dkms qt libgomp
[root@server.local ~]#yum install kernel-headers kernel-devel fontforge binutils glibc-headers glibc-devel

Step 3: Environment variable configuration

VirtualBox installation required kernel source code to install required modues, so we need to configure environment variable KERN_DIR.

[root@server.local ~]#KERN_DIR=/usr/src/kernels/2.6.32-220.2.1.el6.i686
[root@server.local ~]#export KERN_DIR

Step 4: Install VirtualBox

The below command is used to install Oracle VirtualBox

[root@server.local ~]#yum install VirtualBox-4.3

Finally re-run vboxdrv setup. This step may take a while to complete:

[root@server.local ~]#/etc/init.d/vboxdrv setup

Step 5: Start VirtualBox

Use following command to start VirtualBox from X windows. You can switch to GUI mode using init 5 or startx commands from terminal.

[root@server.local ~]# virtualbox &