Professional Documents
Culture Documents
OVM Step by Step Guide By./Ahmad Hassaan
OVM Step by Step Guide By./Ahmad Hassaan
/Ahmad Hassaan
Virtualization Technologies :
Oracle VM components:
http://Solarisway.wordpress.com Page 1 of 29
OVM Step By Step Guide By./Ahmad Hassaan
Oracle VM Architecture :
http://Solarisway.wordpress.com Page 2 of 29
OVM Step By Step Guide By./Ahmad Hassaan
http://Solarisway.wordpress.com Page 3 of 29
OVM Step By Step Guide By./Ahmad Hassaan
Oracle VM Resources:
http://Solarisway.wordpress.com Page 4 of 29
OVM Step By Step Guide By./Ahmad Hassaan
http://Solarisway.wordpress.com Page 5 of 29
OVM Step By Step Guide By./Ahmad Hassaan
1- Download OVM 3.2.7 server software image (hypervisor), its size is 250 MB,burn
to a blank cd.
2- Got to your server, put the OVM server CD and boot from it, follow installation
steps shown on the screen.
3- Repeat this installation for all servers you have.
1- Download OVM Manager software 3.2.6 (software to manage the whole environment
,its size= 2.5 GB.
2- Install oracle linux or redhat linux on any desktop or machine.
3- Burn the image or copy it to the linux machine.
4- Mount the dvd rom,or image you just copied, and go to that directory
5- Run (/createOracle.sh) ,this script will prepare linux for OVM installation
6- Run these commands :
http://Solarisway.wordpress.com Page 6 of 29
OVM Step By Step Guide By./Ahmad Hassaan
- default port is (8899) for ovm agent which is running at ovm server.
- Type ips of newly installed ovm servers, and password for agent.
http://Solarisway.wordpress.com Page 7 of 29
OVM Step By Step Guide By./Ahmad Hassaan
- Hint: during OVM server installation,it asked for two passwords, one for root,while the
other for ovm agent [this one will be used by ovm manager to connect to ovm server
and discover it]
- Server Discovery, so servers will come under “un-assigned servers”
- Click OK to finish servers discovery.
http://Solarisway.wordpress.com Page 8 of 29
OVM Step By Step Guide By./Ahmad Hassaan
Step 2 (Networks)
Network Elements:
http://Solarisway.wordpress.com Page 9 of 29
OVM Step By Step Guide By./Ahmad Hassaan
Optional step :
by default there is bond0 nic created for each ovm server during installation of ovm server, but if you
want to change/add another bond you should do these steps:
http://Solarisway.wordpress.com Page 10 of 29
OVM Step By Step Guide By./Ahmad Hassaan
Hint: you can’t add port that has ip address assigned to it.
Addressing:
1- None: don’t give ip now, just create bond
2- Use DHCP: to get ip from network
3- IP Address: put the ip address to be used
Bonding Types:
1- Active Backup: one port will be master, others are slave
2- Dynamic Link Aggregation: two or more ports will act as one big port
3- Adaptive Load Balancing: all ports are active and the bond will make load balance
between them.
http://Solarisway.wordpress.com Page 11 of 29
OVM Step By Step Guide By./Ahmad Hassaan
Step 1 : create Network Layer,by using “Networking” Tab in OVM manager console.
Step 2:create virtual interfaces vnics [till now these vnics are free and not assigned to any network].
Step 3: create your VM and give it one or more vnics, then assign this vnic to a network
OVM Manager will create network using bonds and/or physical ports directly from OVM
servers.
OVM manager will create network using vlans switch (which is already created inside
VLAN Groups)
OVM manager will make one big virtual switch composed of vlans and bonds/ports
http://Solarisway.wordpress.com Page 12 of 29
OVM Step By Step Guide By./Ahmad Hassaan
3- give a name, and select all network channels ,unless you have a plan for different network
channels.
http://Solarisway.wordpress.com Page 13 of 29
OVM Step By Step Guide By./Ahmad Hassaan
6- Select vlan group and vlan segment if applicable (optional ,unless you will make vlans)
7- In last window,leave all values as it is,it should be as following ,then click “finish”
http://Solarisway.wordpress.com Page 14 of 29
OVM Step By Step Guide By./Ahmad Hassaan
So,now you have a ready network for your virtual machines environment, next step is to
create vnics (virtual network interfaces),so when you create a new virtual machine you can
give it a network interface.
http://Solarisway.wordpress.com Page 15 of 29
OVM Step By Step Guide By./Ahmad Hassaan
You should have enough vnics ,as every vm will need at least one vnic,so initially you can create 20 vnics.
Put “20” in “create” field,then click on “Auto Fill” ,and click “Create” to finish vnics creation
This window also will tell you which vnic is used by which vm on which network.
http://Solarisway.wordpress.com Page 16 of 29
OVM Step By Step Guide By./Ahmad Hassaan
http://Solarisway.wordpress.com Page 17 of 29
OVM Step By Step Guide By./Ahmad Hassaan
http://Solarisway.wordpress.com Page 18 of 29
OVM Step By Step Guide By./Ahmad Hassaan
http://Solarisway.wordpress.com Page 19 of 29
OVM Step By Step Guide By./Ahmad Hassaan
Storage:
Storage Tab:
http://Solarisway.wordpress.com Page 20 of 29
OVM Step By Step Guide By./Ahmad Hassaan
Repository Guide/Design:
NFS Repository can be shared across all Server Pools, while can’t do for SAN volumes.
Pool FS : must be 12GB or greater and is needed only if u have a pool cluster plan,otherwise no need
for this filesystem
1- From repository tab, click on green “+” icon, chose whether NFS or Physical Disk
http://Solarisway.wordpress.com Page 21 of 29
OVM Step By Step Guide By./Ahmad Hassaan
2- after we click on “Magnifying Glass” we got these options to choose one of them, select
carefully one disk, then click OK, you will be sent back to main screen ,so click on next [again
be carefull ,as once u click on next it will start creating repository,so all data on this disk will
be erased]
http://Solarisway.wordpress.com Page 22 of 29
OVM Step By Step Guide By./Ahmad Hassaan
3- Select which servers to access this repository by adding this server to right pane in the
following window, then click on OK to finish creating repository:
http://Solarisway.wordpress.com Page 23 of 29
OVM Step By Step Guide By./Ahmad Hassaan
The only way is to import iso files is by ftp,so on your laptop/desktop install any free ftp server
(https://filezilla-project.org/download.php?type=server )
and create a folder and put OS iso files in that folder as following
Click here to Click here to add new
open Users users,make a new user
configuration named ovm
window
sers configuration
Click on “shared
folder” to add
folder that will
contain iso files
http://Solarisway.wordpress.com Page 24 of 29
OVM Step By Step Guide By./Ahmad Hassaan
ftp://user_name:password@10.10.5.175/linux5.9.iso
http://Solarisway.wordpress.com Page 25 of 29
OVM Step By Step Guide By./Ahmad Hassaan
OS type,VM name,Memory,cpus
http://Solarisway.wordpress.com Page 26 of 29
OVM Step By Step Guide By./Ahmad Hassaan
4- Choose one vnic and network you created in previous step ,click “Add VNIC”,and then click
“Next”
http://Solarisway.wordpress.com Page 27 of 29
OVM Step By Step Guide By./Ahmad Hassaan
6- Enter disk size,this disk will be the main disk for OS installation on VM,then click on OK
7- On slot “1”,select CD/DVD ,and then click search icon that have “magnifying glass”
http://Solarisway.wordpress.com Page 28 of 29
OVM Step By Step Guide By./Ahmad Hassaan
9- Move Disk and CDROM to right pane,and be sure CDROM is on top of Disk,so vm will boot
from iso image you just attached,and now click finish.
http://Solarisway.wordpress.com Page 29 of 29