You are on page 1of 298

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
Oracle VMra n
Administration:
o n -t
s a n eVM
Oracle

Server for x86

r ) ha uid
o v a nt G
i b g tude Activity Guide
c n b is S
@ b e th
u g o u s
z (h
L ope
H ugo

D74549GC10
Edition 1.0
April 2012
D76951
Author Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Michele Dady Disclaimer

This document contains proprietary information and is protected by copyright and


Editors other intellectual property laws. You may copy and print this document solely for your
own use in an Oracle training course. The document may not be modified or altered
Aju Kumar in any way. Except where your use constitutes "fair use" under copyright law, you
may not use, share, download, upload, copy, print, display, perform, reproduce,
Anwesha Ray
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

publish, license, post, transmit, or distribute this document in whole or in part without
the express authorization of Oracle.
Graphic Designer The information contained in this document is subject to change without notice. If you
Satish Bettegowda find any problems in the document, please report them in writing to: Oracle University,
500 Oracle Parkway, Redwood Shores, California 94065 USA. This document is not
warranted to be error-free.
Publishers Restricted Rights Notice
Nita Brozowski
Veena Narasimhan
If this documentation is delivered to the United States Government or anyone using
the documentation on behalf of the United States Government, the following notice is
e to
applicable:
ce ns
l i
U.S. GOVERNMENT RIGHTS
b le
era
The U.S. Governments rights to use, modify, reproduce, release, perform, display, or

n s f
disclose these training materials are restricted by the terms of the applicable Oracle
license agreement and/or the applicable U.S. Government contract.

Trademark Notice
n - tra
a nofoOracle and/or its affiliates. Other names
e
Oracle and Java are registered trademarks

h a s owners.
may be trademarks of their respective
i d
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
L ope
H ugo
Table of Contents
Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86 .........................................1-1
Practices for Lesson 1....................................................................................................................................1-2
Practice 1-1: Become Familiar with the Hosts and Networks in Your Lab Environment.................................1-3
Practice 1-2: Access Your Lab Machine and Switch to the root User ............................................................1-6
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Practice 1-3: Access a Running Host with an Active Network Interface .........................................................1-8
Practice 1-4: Access a Running Host with the vncviewer Command .............................................................1-11
Appendix A: Access Your Lab Machine Remotely by Using the NX Player for Windows..............................1-16
Appendix B: Listing, Starting, and Stopping Virtual Machines with the xm Command ...................................1-20
Practices for Lesson 2: Planning and Installation ........................................................................................2-1
Practices for Lesson 2....................................................................................................................................2-2
Practice 2-1: Verify that the Virtual Host for ovsvr02.example.com Is Running .............................................2-3
Practice 2-2: Install Oracle VM Server in the Second Server, ovsvr02.example.com .............................2-4
e to
Practice 2-3: Examine the Host Where Oracle VM Manager Will Be Installed ...............................................2-18
ce ns
Practice 2-4: Install Oracle VM Manager on ovmmgr.example.com ..........................................................2-21
l i
b
Practice 2-5: Perform Post-installation Verification ........................................................................................2-28
a le
Practice 2-6: Prepare the Oracle VM Manager Host for Console Access to Virtual Machines .......................2-30
fe r
n s
n - tra
Practices for Lesson 3: Managing Servers and Networks ...........................................................................3-1

o
Practices for Lesson 3....................................................................................................................................3-2
Practice 3-1: Discover Oracle VM Servers from the Oracle VM Managern
a
s ide
......................................................3-3
a
Practice 3-2: Create the Virtual Machine Network..........................................................................................3-12
h
a r) t Gu
Practice 3-3: Create a Cluster Heartbeat Network .........................................................................................3-18

Practice 3-4: Check Bonds and Bridges on the Oracle
g o v ServersVM
e n ...............................................................3-25
Practice 3-5: Create a network with VLAN
i tu d
bsupportS........................................................................................3-28
n b s
Practices for Lesson 4: Managing
@ bc e thi Storage ....................................................................................................4-1

u
Practice 4-1: Verify g o
Practices for Lesson 4....................................................................................................................................4-2
the NFS Storage u son Your Lab Machine ..........................................................................4-3
z
Practice 4-2:
h the Generic NFS File Server from the Oracle VM Manager........................................4-5
(Register
o e
p 4-3: Verify the Presence of iSCSI Targets and LUNs on Your Lab Machine....................................4-14
Practice
L
ugo Practice 4-5: Explore the Available Operations on Physical Disks .................................................................4-29
Practice 4-4: Register the iSCSI Generic Storage Array ................................................................................4-17

H Practice 4-6: Install the Sun ZFS Storage Appliance Plug-In .........................................................................4-38
Practices for Lesson 5: Server Pools and Repositories ...............................................................................5-1
Practices for Lesson 5....................................................................................................................................5-2
Practice 5-1: Refresh the Rediscovered NFS Repository ..............................................................................5-3
Practice 5-2: Create a Clustered Server Pool ................................................................................................5-10
Practice 5-3: Create an iSCSI Repository ......................................................................................................5-18
Practice 5-4: Import Resources into the Repositories ....................................................................................5-24
Practice 5-5: Perform Disk and Cloning Operations for Resources in the Repositories .................................5-28
Practice 5-6: Create a Repository on Local Storage ......................................................................................5-36
Practices for Lesson 6: Managing Virtual Machines.....................................................................................6-1
Practices for Lesson 6....................................................................................................................................6-2
Practice 6-1: Create Virtual NICs for Your Future Virtual Machines ...............................................................6-3
Practice 6-2: Prepare Your Web Server for Installing a Guest OS in a Virtual Machine.................................6-6
Practice 6-3: Create pvm1, a Paravirtualized Virtual Machine .......................................................................6-9
Practice 6-4: Start and Access Your New Virtual Machine.............................................................................6-18
Practice 6-5: Install Oracle Linux as the Guest OS in the Virtual Machine .....................................................6-29
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Oracle VM Administration: Oracle VM Server for x86 Table of Contents


iii
Practice 6-6: Clone the EL53_i386_xVM_jeos.tgz Template into a New Virtual Machine ..............................6-52
Practice 6-7: Create a Clone Definition and Use It for Cloning Operations ....................................................6-67
Practice 6-8: Migrate Virtual Machines...........................................................................................................6-79
Practice 6-9: Use the High Availability (HA) Feature ......................................................................................6-92
Practice 6-10: Use the Anti-Affinity Feature ...................................................................................................6-102
Practice 6-11: View VNIC Usage from the Vnic Manager ..............................................................................6-110
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
ce ns
l i
b le
s f era
tr a n
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
Lope
H ugo

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

Oracle VM Administration: Oracle VM Server for x86 Table of Contents


iv
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
t ran
Practices for
o n -Lesson 1:
n
a eOracle
Introducing VM with
a s d
a nt G r) h VM
Oracle ui Server for x86
o v
i b de 1
g tuChapter
c n b is S
@ b e th
u g o u s
z ( h
Lope
H ugo

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 1
Practices for Lesson 1

Practices Overview
In these practices, you get familiar with your lab environment by performing the following tasks:
1. Become familiar with the hosts and networks in your lab environment.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

2. Access your lab machine and switch to the root user.


3. Access a running host with an active network interface by using the ssh command.
4. Access a running host with the vncviewer command.

Appendixes
Appendix A: Access your lab machine remotely by using NX Player for Windows
Appendix B: Listing, starting, and stopping virtual machines with the xm command
e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 2
Practice 1-1: Become Familiar with the Hosts and Networks in Your
Lab Environment
Overview
For the practices of this lesson, you are assigned a lab machine on which you perform all your
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

lab exercises. Your lab machine has been set up to support your entire Oracle VM environment.
In this practice, you locate the major elements that are used for all the lab practices in this
course:
Your lab machine
The hosts available on your lab machine to build your Oracle VM environment
The networks that link your lab machine and the hosts in your environment

Assumptions
e to
The tasks in this practice assume that the hosts in your lab environment are deployed as virtualns
machines. If your lab environment is composed of physical hosts, some information may lice
change.
r a ble
Lab Environment Diagram n s fe
n - tra
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

1. Your lab machine is a server, which you access directly (in the classroom) or remotely.
2. Your environment contains three hosts running as virtual machines on your lab machine.
You build your Oracle VM environment with these three hosts:
ovsvr01.example.com is the host name of your first Oracle VM Server.
The host is already installed and running as an Oracle VM Server.
The IP address is 192.0.2.101.
ovsvr02.example.com is the host name of your second Oracle VM Server.

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 3
The virtual machine for this host does not have any guest OS installed in it. You
install Oracle VM Server in this host as a practice in the next lesson titled Planning
and Installation.
The IP address reserved for this host is 192.0.2.102.
ovmmgr.example.com is the host name for your Oracle VM Manager machine.
The virtual machine has Oracle Linux 5 Update 6 installed as the guest OS.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

You install the Oracle VM Manager software on this host as a practice in the next
lesson titled Planning and Installation.
The IP address for this host is 192.0.2.103.
You access these three hosts from your lab machine.
3. Your environment contains several networks:
Classroom network: This network allows your lab machine to communicate with the
outside. This network is not used by your Oracle VM environment. e to
Management network: This network allows your three virtual hosts to communicate
cens
l i
with your lab machine. It also allows the hosts to communicate with each other.
le
This network is configured on the 192.0.2.0 subnet:
f e rab
Your lab machine participates in this network, and is assigned
a n sIP address
192.0.2.1.
n -t r
o
a n e (first Oracle VM Server).
The first host is assigned the IP address 192.0.2.101
s
The second host is assigned the IP address
r ) ha 192.0.2.102
u id (second Oracle VM
a nt G
ovIPaddress
Server).
The third host is assignedg
b the
u d e 192.0.2.103 (host to act as Oracle VM
Manager).
n i
b is S t
c
b eThis
Virtual Machine network: h network allows the virtual machines deployed from your
tcommunicate
g o @ s
Oracle VM
h u
with(your lab
u
environment
machine.
to with each other, and also to communicate

e z
Lop This network is configured on the 192.168.1.0 subnet:
Your lab machine participates in this network, and is assigned the IP address
H ugo 192.168.1.1.
The first host is assigned the IP address 192.168.1.101 (first Oracle VM Server).
The second host is assigned the IP address 192.168.1.102 (second Oracle VM
Server).
The host acting as the Oracle VM Manager is not participating in this network.
Heartbeat network: This network allows the two Oracle VM Servers deployed as part of
your Oracle VM environment to communicate with each other, for the heartbeat
function of your Oracle VM server pool.
This network is configured on the 192.168.2.0 subnet:
Your lab machine participates in this network, and is assigned the IP address
192.168.2.1.
The first host is assigned the IP address 192.168.2.101 (first Oracle VM Server).
The second host is assigned the IP address 192.168.2.102 (second Oracle VM
Server).
The host acting as the Oracle VM Manager is not participating in this network.
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 4
VLAN traffic network: This allows the two Oracle VM Servers deployed from your
Oracle VM environment to support VLAN traffic on a single Ethernet port.
This network is configured on the 192.168.3.0 subnet:
Your lab machine participates in this network, and is assigned the IP address
192.168.3.1.
The first host is assigned 192.168.3.101 (first Oracle VM Server).
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

The second host is assigned 192.168.3.102 (second Oracle VM Server).


The host acting as the Oracle VM Manager is not participating in this network.
Your lab machine has been set up to support the networks described above. You create
and configure the networks needed for your Oracle VM environment in the practices for the
lesson titled Managing Servers and Networks.
Note: Your lab machine uses bridges to implement the networking infrastructure needed for
your Oracle VM environment. A bridge acts as a virtual switch to connect virtual machines.
e to
Bridges are discussed in the lesson titled Managing Servers and Networks.
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
Lope
H ugo

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 5
Practice 1-2: Access Your Lab Machine and Switch to the root User

Overview
In this practice, you access your lab machine and open a terminal window.
If you are accessing your lab machine locally, you are already logged in to your
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

GNOME session.
If you are accessing your lab machine remotely, you need a connection program to
access your lab machine. The NX (NoMachine) client is the preferred way to access
your lab machine remotely. Information about the NX client is provided in Appendix A.
After accessing your lab machine, you open a terminal window, and you switch to the root
user.

Tasks
e to
1. Access your lab machine:
cens
User ID: vncuser l i
Password: vnctech b le
The GNOME desktop appears on your lab machine: s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

2. Double-click the Terminal icon on your desktop to start a terminal session.

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 6
3. Switch to the root user.
a. From the terminal window, execute the su command.
b. When prompted for the password, enter oracle:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
You now(h
have root privileges.
e z
Lop
H ugo

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 7
Practice 1-3: Access a Running Host with an Active Network Interface

Overview
In this practice, you access ovsvr01.example.com (your first Oracle VM Server), which is
already installed and active. You use the ssh command to access this host.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Note: At the start of your lab practices, the three virtual hosts on your lab machine should be in
the running state, and you should be able to access ovsvr01.example.com and
ovmmgr.example.com by using the ssh command. If one of your virtual hosts is not running,
refer to Appendix B for information about how to list the status of your virtual machines and how
to start a virtual host by using the xm command.

Tasks
1. From your lab machines desktop, open a terminal window.
e to
ns
2. In the terminal window, switch to the root user.
bash-3.2$ su -
l i ce
Password: oracle b le
[root@<your lab machine> ~]#
s f era
tra n
3.
-
Use the ssh command to access ovsvr01.example.com. When prompted to continue
n
no
with the connection, enter yes to access the RSA key fingerprint.
a
a s ide
[root@<your lab machine> # ssh ovsvr01.example.com
h
a r) t Gu
The authenticity of host 'ovsvr01.example.com (192.0.2.101)'
can't be established.
g ov den
RSA key fingerprintbis
n b i S tu
s
c wantthito continue connecting (yes/no)? yes
11:20:9a:34:b5:47:0d:67:d2:bd:b5:48:42:1a:3c:91.
byou
@
Are you sure
g se added 'ovsvr02.example.com' (RSA) to the
oPermanently
u
Warning: u
z (hof known hosts.
list
e
op root@ovsvr02.example.com's password: oracle
L
H ugo Last login: Wed Dec 14 12:27:33 2011 from 192.0.2.1
Warning: making manual modifications in the management domain
might cause inconsistencies between Oracle VM Manager and the
server.
Note: Notice the warning about making manual modifications to this Oracle VM Server.
You are now logged in to ovsvr01.example.com.
4. Display the Oracle VM Servers release information:
[root@ovsvr01 ~]# cat /etc/ovs-release
Oracle VM server release 3.0.3
[root@ovsvr01 ~]#

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 8
5. Display the host information:
[root@ovsvr01 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

::1 localhost6.localdomain6 localhost6


192.0.2.101 ovsvr01.example.com ovsvr01
6. Display the name resolution information:
[root@ovsvr01 ~]# cat /etc/resolv.conf
search example.com
nameserver 192.0.2.1
Your lab machine acts as the DNS server.
e to
7. Ping ovsvr01.example.com (the current Oracle VM Server) and
cens
ovmmgr.example.com (the Oracle VM Manager): l i
b le
era
[root@ovsvr01 ~]# ping c 3 ovsvr01.example.com
[PING ovsvr01.example.com (192.0.2.101) 56(84) bytes of data.
n s f
- tra
64 bytes from ovsvr01.example.com (192.0.2.101): icmp_seq=1 ttl=64
n
time=0.021 ms
a no
time=0.022 ms
h a s ide
64 bytes from ovsvr01.example.com (192.0.2.101): icmp_seq=2 ttl=64

a r) t Gu
64 bytes from ovsvr01.example.com (192.0.2.101): icmp_seq=3 ttl=64
time=0.032 ms
g ov den
n b ib Stu
b c thping
--- ovsvr01.example.com is statistics ---
o @ se received, 0% packet loss, time 2003ms
3 packets transmitted,
g
3

h u u = 0.021/0.025/0.032/0.005 ms
rtt min/avg/max/mdev
z (
ope
[root@ovsvr01 ~]#

L
H ugo [root@ovsvr01 ~]# ping -c 3 ovmmgr.example.com
PING ovmmgr.example.com (192.0.2.103) 56(84) bytes of data.
64 bytes from ovmmgr.example.com (192.0.2.103): icmp_seq=1 ttl=64
time=2.11 ms
64 bytes from ovmmgr.example.com (192.0.2.103): icmp_seq=2 ttl=64
time=0.254 ms
64 bytes from ovmmgr.example.com (192.0.2.103): icmp_seq=3 ttl=64
time=0.278 ms

--- ovmmgr.example.com ping statistics ---


3 packets transmitted, 3 received, 0% packet loss, time 2005ms
rtt min/avg/max/mdev = 0.254/0.883/2.119/0.874 ms
[root@ovsvr01 ~]#

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 9
Note: You should be able to ping ovsvr01.example.com and
ovmmgr.example.com successfully. You cannot ping ovsvr02.example.com
successfully because the Oracle VM Server software is not installed in this virtual host
yet.
8. Exit your terminal session on ovsvr01.example.com:
From the command-line prompt, enter the exit command:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

[root@ovsvr01 ~]# exit


Connection to ovsvr01 closed.
[root@EDT3R17P1 ~]#
You are returned to the session on your lab machine.

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 10
Practice 1-4: Access a Running Host with the vncviewer Command

Overview
In this practice, you access a virtual host by using the vncviewer command.
If a virtual host is running, but does not have an active network interface, you cannot use the
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

ssh command to access this host. In this situation, use the vncviewer command.
Note: In a practice for the next lesson titled Planning and Installation, you use vncviewer to
access the host ovsvr02.example.com to install Oracle VM Server in that host.

Tasks
1. Determine the VNC port to access the host ovsvr01.example.com by using the xm
list command:
a. Open a terminal window on your lab machine.
e to
b. Switch to the root user.
cens
l i
bash-3.2$ su -
b le
Password: oracle
s f era
[root@<your lab machine> ~]#
tra n
c. n -
Issue the xm list command against the ovsvr01 domain and grep the output for the
location values. a no
[root@<your lab machine> ~]# xmhlist a e
s -lidovsvr01 | grep location
a r ) G u
ov dent
(location 0.0.0.0:5902)
(locationg4)
b b fromStthe
idiffer u output shown above. For example, the location
c n
Note: Your location may
i s
for ovsvr01 maybbe 5900.th
g @
Ifoyou getu
e
s message bash: xm: command not found, your path
u
Warning: the
(h is not set correctly. You probably did not use the dash (-) option when
e z
variable

Lop changing to the root user (see substep b). To fix this situation, issue the source
ugo
command against the profile of the root user:
H [root@EDT3R17P1 vncuser]# source /etc/profile
You should then be able to use the xm command.
d. Issue the vncviewer command:
[root@<your lab machine> ~]# vncviewer&
[1] 18958
[root@<your lab machine> ~]#
VNC Viewer Free Edition 4.1.2 for X - built May 12 2006 17:42:13
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
The vncviewer connection window appears:

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 11
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e. Enter the IP address of your lab machine, which acts as the VNC server, and the
connection port to ovsvr01.example.com, as listed in the output of the xm list
command. In this example, port 5902 is used. Your port may differ.

e to
cens
l i
b le
s f era
tra n
n -
noaddress together with the last
Note: You can also use localhost instead of the IP
a
a s ide
digit of the location portfor example, localhost:2.
h
Click OK or press the Enter key.
a r) t Gu
g ov deappears:
The console for ovsvr01.example.com
n
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

Note
If the console screen is blank, press Enter.
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 12
You must press and hold Alt + F2 to access the login prompt. Because you are
accessing your Oracle VM Server using VNC, you cannot directly press the
Alt + F2 key sequence. Use the steps below to access the login prompt.
The cursor must be positioned in the VNC window for keystrokes to be transmitted
to the VNC client.
f. Press the F8 key to display the VNC Menu:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b
g. Select Alt from the cVNC Menu:
t h is
u g o@ use
z (h
op e
L
H ugo

The VNC Menu window closes automatically.

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 13
h. Press F2 to complete the Alt + F2 sequence needed to display the login prompt.
The login prompt appears:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
Note: You can ignore the messages
o v from clocksources
e n about time drifts.
b gVNC tMenu.
The Alt key is still active in the
i u d
b
cn ththeisVNC
i. Press the F8 key to display S Menu.
b
@ sthis
j. Click Alt to deactivate e selection on the VNC Menu:
u g o u
z ( h
Lope
H ugo

The VNC Menu window closes automatically.


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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 14
k. Log in as root. The password is oracle.
You have successfully accessed your virtual Oracle VM Server by using the
vncviewer command.
l. Exit the console.
Enter the exit command to return to the login prompt.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Click the Close (x) button to exit the VNC Viewer.

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 15
Appendix A: Access Your Lab Machine Remotely by Using the NX
Player for Windows

Overview
This appendix describes the procedure to access your lab machine remotely by using the NX
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Player for Windows. This procedure assumes that you have downloaded and installed the NX
program from this location: http://www.nomachine.com/download-
package.php?Prod_Id=65.
Note: If you are accessing your lab environment remotely, you have received instructions on
how to access your lab machine. The steps below summarize the connection process with the
NX Player for Windows XP. The NX Player for Windows 7 has a different look, but the setup is
similar.

Tasks
e to
1. Select NX Player for Windows from the Windows Start menu.
cens
l i
Start > Programs > NX Client for Windows > NX Connection Wizard
b le
The session window appears:
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
ope
L Enter the user ID (vncuser), password (vnctech), and a connection name for your lab
H ugo machine.
2. Click the Configure button to set the connection parameters for the session.
3. When prompted to create or rename this session, click Create:

4. The configuration window appears, and the settings on the General tab are shown below:

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 16
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b
Enter the IP address of is in the Host field.
cyour labthmachine
@ sfor
Keep Unix andoGNOME
g e the desktop type.
You may(h u u
adjust the session settings according to the speed of your network connection.
e z
p Save to retain your session parameters.
LoClick
H ugo

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 17
5. On the Advanced tab, ensure that the Disable encryption of all traffic check box is
deselected. It is deselected by default, but if you have used NX previously, verify this
setting:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
ope
6. Click OK to return to the session window:
L
H ugo

Click Login to connect to your lab machine.


7. When asked to continue connecting, click Yes:

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 18
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

The connection proceeds:

e to
cens
l i
b le
s f era
tr an
n -
a no
8. s ide
The GNOME desktop for your lab machine is displayed:
h a
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

You can now proceed with your lab practices.

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 19
Appendix B: Listing, Starting, and Stopping Virtual Machines with the
xm Command

Overview
You use the information in this appendix if you have to manipulate your virtual machines with
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

the xm command.
Warning: Generally, there is no need to start or stop virtual machines with the xm command.
You use the information in this appendix only if one of your virtual machines is not running when
you access your lab environment.
Your lab environment supports three hosts as virtual machines. The information for these virtual
machines is summarized in the following table:
Host Virtual Machine Name Host Name for Guest running in Virtual Machine
1 ovsvr01 ovsvr01.example.com e to
cens
2 ovsvr02 ovsvr02.example.com
l i
b le
era
3 ovmmgr ovmmgr.example.com

n s f
n - tra
Assumptions
a noof your lab machine, from a
terminal session, logged in as root. h a s ide
All xm commands are executed from the command-line prompt

a r) t Gu
Tasks
g ov den
b ibby using
1. List all running virtual machines S u xm list command:
tthe
n
bc e thi s
# xm list
g o @ s ID Mem VCPUs
Name
h u u State Time(s)
z (
Domain-0 0 1024 2 r----- 11483.6
p e
o Lo host01 1 2240 1 -b---- 1193.1

H ug host02 9 2240 1 -b----


Note: The possible states for a domain are listed in the following table:
873.4

Domain State Explanation


r Running
b Blocked Possibly waiting on I/O or in a sleep state
p Paused If the administrator paused the domain
s In the process of shutting down (temporary state)
c Crashed
d Dying Shutting down or crashing (temporary state)

Note: Your output for the xm list command will not exactly match the output shown in
the example above. This is normal. The ID (Domain ID) may be different, as well as the
State or Time(s) information.
Normally, there should be four virtual machines running:
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 20
ovsvr01, your first Oracle VM Server
ovsvr02, your second Oracle VM Server
ovmmgr, your Oracle VM Manager
Domain-0, which represents your lab machine, running as the privileged domain
If a host is not listed, this means that this virtual machine is not running. Use the xm
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

create command described in the next step to start a virtual machine.


2. If you need to start one of your virtual machines, use the xm create command.
Warning: Do not start virtual machines with the xm command except if one of your virtual
machines is not running.
The xm create command requires the name of the configuration file for the virtual
machine as a parameter.
The following example starts the ovsvr02 virtual machine.
e to
a. To start the ovsvr02 virtual machine, locate the virtual machines configuration file in
cens
the /OVS/running_pool/<VM name> directory, where VM name is ovsvr02: l i
b le
era
[root@<your lab machine> ~]# cd /OVS/running_pool/ovsvr02
b. List the files in the ovsvr02 directory:
n s f
[root@<your lab machine> ovsvr02]# ls
n - tra
system.img vm.cfg
a no
[root@<your lab machine> ovsvr02]#
h a s ide
a G u using the configuration file name
r) command,
c. From this location, issue the xm create t
ov defilenname is always vm.cfg in your lab
g
for the virtual machine. The configuration
ib Stu
environment:
n b
c machine> is ~]# xm create vm.cfg
[root@<your lab b t h
g
Using config
u o@ file u se"./vm.cfg".
z (h domain ovmmgr (id=39)
Started
e
op [root@<your lab machine> ~]#
L
H ugo Other virtual machines are started in the same manner. For example, if you want to
start the ovmmgr virtual machine, change directory to /OVS/running_pool/ovmmgr,
and issue the xm create vm.cfg command from this location.
d. Use the xm list command to verify that your virtual machine started successfully:
[root@<your lab machine> ~]# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 2048 2 r----- 130647.1
ovmmgr 39 2048 1 -b---- 34.0
ovsvr01 40 2048 2 -b---- 317.6
ovsvr02 38 1024 2 -b---- 78.0
[root@<your lab machine> ~]#
3. If you need to shut down or restart a virtual machine, use the xm command with the
shutdown or reboot option.
a. The following is an example of using xm shutdown <VM name> to shut down a
virtual machine:

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 21
[root@<your lab machine> ~]# xm shutdown ovsvr01
The virtual machine will continue to appear in the output of the xm list command
until it is completely shut down.
b. The following is an example of using xm reboot <VM name> to restart a virtual
machine:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

[root@<your lab machine> ~]# xm reboot ovsvr01


The virtual machine will reappear in the output of the xm list command, with a new
Domain ID.

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 1: Introducing Oracle VM with Oracle VM Server for x86
Chapter 1 - Page 22
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
t ran
Practices for
o n -Lesson 2:
n
h a uide s a and Installation
Planning
)
r t2G
aChapter
g v
o den

ib Stu
n b
c this
b
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 1
Practices for Lesson 2

Practices Overview
In these practices, you will perform the following:
1. Verify that the virtual host for ovsvr02.example.com is running.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

2. Install Oracle VM Server in the second server, ovsvr02.example.com.


3. Examine the host where Oracle VM Manager will be installed.
4. Install Oracle VM Manager on ovmmgr.example.com.
5. Perform post-installation verification.
6. Prepare the Oracle VM Manager host for console access to virtual machines.

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 2
Practice 2-1: Verify that the Virtual Host for ovsvr02.example.com Is
Running

Overview
In this practice, you verify that the virtual host on which you install Oracle VM Server is running.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

The virtual machine for the Oracle VM server host is called ovsvr02.

Tasks
1. Log in to your lab machine.
2. Double-click the Terminal icon on your desktop to open a terminal window.
3. In the terminal window, change user to root:
bash-3.2$ su -
Password:
e to
[root@<your lab machine> ~]#
cens
l i
4. Execute the xm list command:
b le
[root@<your lab machine> # xm list
s f era
Name ID Mem VCPUs
tra State n
Time(s)
n -
Domain-0 0 2048 2
a no r----- 130724.0
ovmmgr 39 2048 1
h a s ide -b---- 143.5
ovsvr01 41 2048

2
a r) t Gu -b---- 832.7
ovsvr02 38 1024
g ov den
2 -b---- 156.1

n b ib Stu
[root@<your lab machine> #
The virtual host ovsvr02
b c tappear
must
h is in the list of running virtual machines.
o
If the virtual host
g @ sisenot running, see Appendix B in the practices for the lesson
ovsvr02
Introducingh u u Oracle VM Server for x86 for instructions on how to start this
Oracle VM with
(
virtualzmachine by using the xm command.
o p e
L
u go
H

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 3
Practice 2-2: Install Oracle VM Server in the Second Server,
ovsvr02.example.com

Overview
In this practice, you install Oracle VM Server in the second host that has been created for this
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

purpose.

Assumptions
This practice requires a host to serve as the second Oracle VM Server. This host can be a
virtual machine that has been created for this purpose, or it can be a physical server available in
your lab environment.
This host, whether a virtual or a physical host, must have access to the installation media which
contains the Oracle VM Server software.
The examples in this practice assume that the second Oracle VM Server is installed in a virtual e to
machine called ovsvr02.
cens
l i
b le
era
Tasks
1. Access the console for ovsvr02:
n s f
a. - tr
Find the port number for the ovsvr02 virtual machine, sending the output of the xm a
no n
list command, with the -l option, to the grep command. Your output may differ
from the following example: a
s ide
h a
a r) t Gu
[root@<your lab machine>] # xm list -l ovsvr02 | grep loc

g ov den
(localtime 0)

n b ib Stu
(display localhost:10.0)
b c this
(location 0.0.0.0:5902)

u g o@ use (location 4)

z ( h
[root@<your lab machine>] #
e
op The port number is shown in the first location line. In this example, the port is 5902.
L
ugo
Your port number may differ.
H b. Start the vncviewer program by using this port number:
[root@<your lab machine>]# vncviewer&
[1] 9849
[root@<your lab machine>]#
VNC Viewer Free Edition 4.1.2 for X - built Aug 25 2009 19:06:55
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
c. In the pop-up window, enter localhost:<Port number>, using the port number
mentioned in task 1 step a:

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 4
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

You can also use the last digit of the port numberfor example, localhost:2.
The console window appears.
Note: You may see the main Oracle VM Server installation screen as shown in task 4,
step a below, or the CD Found screen as shown in task 4 step b. This is normal. If
you get the main Oracle VM Server installation screen, press the Enter key to proceed,
e to
as explained in task 4, step a.
cens
2. Proceed with the installation of the Oracle VM Server software. l i
b le
a. If the Oracle VM Server main screen appears, press Enter to trigger the installation
process: s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
Lope
H ugo

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 5
b. On the CD Found screen (shown below), press the Tab key to select Skip, and then
press Enter to bypass the media test:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu

c. On the next screen, select theg ov dmodel.
keyboard e n For example, accept the default of us
ib and then
and press Tab to selectbOK,
n S tupress the Enter key to continue:
bc e thi s
g o @ s
u u
z (h
op e
L
H ugo

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 6
d. On the next screen (shown below), accept the terms of the end-user license
agreement (EULA) by pressing Tab to select Accept, and then pressing the Enter key
to continue:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov tab dtoeYes,
e. On the next screen (shown below), n and then press the Enter key to initialize
the sda device:
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 7
f. On the next screen, accept sda as the drive for the installation. Tab to OK, and then
press the Enter key to continue:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
g. In the Warning window, tab to Yes toaallow G u to remove all partitions on
r) thet installation
g ov dsda.
the single drive used in the installation,
e nPress the Enter key to continue:
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 8
h. On the next screen, accept the default partitioning layout by pressing the Tab key to
select No, and then pressing the Enter key:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
i. On the Boot Loader Configurationa r) tabt G
screen,
u
to OK, and then press the Enter key to
install the boot loader on the g
ov ddevice:
/dev/sda e n
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 9
j. Accept eth0 as the network interface to use as the management network interface by
pressing the Tab key to select OK, and then pressing the Enter key, as shown below:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gforueth0.
k. On the next screen, perform the IP configuration
g v n
oconfiguration.
e

ib Stu
The default is Manual address d
n b
c this
b
u g o@ use
z (h
op e
L
H ugo

Accept the default manual configuration, and tab to the IP Address field.

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 10
l. Enter the IP address for this server: 192.0.2.102. Tab to the Prefix (Netmask) field
and enter 24, as shown below:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a )
rcontinue. G u
ov den
Tab to OK and press the Enter key to t
g
b Stu
iyou
n b
c thifors gateway and DNS information.
m. The next screen prompts
b
@ insthe
Use the information e following table to fill this screen:
g o
u Field u
z ( h Value

L pe
oGateway 192.0.2.1 (your lab machines IP address

ugo
on the 192.0.2.0 subnet)
H Primary DNS 192.0.2.1 (your lab machines IP address
on the 192.0.2.0 subnet)
Secondary DNS Leave blank

After entering the information from the table, the screen should look like the following
screenshot:

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 11
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
Tab to the OK field and press the Enter key to continue.
h a e VM Server.
sthe newidOracle
n. The next screen configures the host name
a r) select
for
G u
ov dnext
In your environment, if not already selected,
e t
n to manually
the manual address configuration
i g
by moving the cursor to the parentheses
b Stu and press the space bar to
select this option. b
cn youtfor isthe host name to assign to your Oracle VM Server.
b
This selection prompts h
g o@ use
Enter ovsvr02.example.com
u and tab to OK. Then press the Enter key to continue
(h below:
as shown
z
op e
L
H ugo

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 12
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
o. On the next screen, select your time zone:
Press the Tab key. The cursor will be) placedh e zone list.
as in utheidtime
To avoid lots of scrolling, entervthe arletterne:t G
The Etc/GMT selection is now at the
g o d e
top of the list.
b i b Stu
Using the down c
b n find
arrow,
h s Etc/UTC selection.
ithe
t
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 13
After finding Etc/UTC, press the Tab key to move the cursor to OK and press the
Enter key to continue.
p. On this screen, select the Oracle VM Agent password. This password should be the
same for all Oracle VM Servers in your environment:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov den
Use ovsagent as the b
n password. tu the password to confirm. Tab to OK and
ib SReenter
press the Enter key thi s
bcto continue.
g o @ s e
u u
z (h
op e
L
H ugo

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 14
q. On this screen, select the root password for this new Oracle VM Server. Use oracle
as the password. Reenter the password to confirm.
Tab to OK and press the Enter key to continue, as shown below:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g v
oinstallation
e n
r. After making some checks, the
ib Stu d is ready to begin.
n b
c this
b
u g o@ use
z (h
op e
L
H ugo

Press the Enter key to start the installation.


The / and /boot file systems are formatted.

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 15
The packages are installed and the progress for the installation is displayed on the
screen:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) loaderG u
After the packages are installed, the boot
ovyou are e n t is created.
g
When the installation is complete,
ib Stu d prompted to reboot, as shown below:
n b
c this
b
u g o@ use
z (h
op e
L
H ugo

Press the Enter key to reboot.


The console window closes automatically.

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 16
The reboot takes five minutes or more to complete.
s. From a terminal window on your lab machine, access the new Oracle VM Server by
using the ssh command. The servers root password is oracle.
[root@<your lab machine>]# ssh ovsvr02.example.com
The authenticity of host ovsvr02.example.com (192.0.2.102)'
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

can't be established.
RSA key fingerprint is
89:6a:27:c4:72:17:eb:9b:f8:7f:8a:aa:11:57:b5:9f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ' ovsvr02.example.com' (RSA) to the
list of known hosts.
root@ovsvr02.example.com's password: oracle
Warning: making manual modifications in the management domain
e to
might cause inconsistencies between Oracle VM Manager and the
cens
server.
l i
[root@ovsvr02 ~]# b le
Notice the warning about making manual modifications from the command line of the s f era
new Oracle VM Server.
tr an
n -
t.
no
Exit your session on ovsvr02.example.com:
a
[root@ovsvr02 ~] # exit
Connection to ovsvr02 closed.) h
as uide
v ar nt G
go tude
[root@<your lab machine>]#
i b
b is S
c n
b e th
g o @ s
u u
z (h
op e
L
H ugo

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 17
Practice 2-3: Examine the Host Where Oracle VM Manager Will Be
Installed

Overview
In this practice, you access the host where Oracle VM Manager will be installed. You verify that
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

the basic requirements for the installation of Oracle VM Manager have been met.
The following table summarizes the minimum requirements that must be met on the host where
you want to install Oracle VM Manager:
Item (Minimum) Value
Memory 1.5 GB, 4 GB with Oracle XE*
Swap Space 2.1 GB
Hard Disk Space 5 GB in /u01
e to
2 GB in /tmp
ce ns
l i
Required Packages libaio and bc (with Oracle XE),ble
unzip
s f era
Userid/Group oracle, group istdbar a n
-
onnofile
Security limits in oracle hard
a n 8192
/etc/security/limits.conf file
a s soft
oracle
d
enofile 8192
h
r)with Oracle i
uXE.
Note: You will be installing Oracle VM Manager
a t G
Refer to the Oracle VM Installation and
g ov dGuide
Upgrade e n for a complete list of requirements for
b
the host running Oracle VM Manager.
n ib Stu
b c you
To satisfy the above requirements, t h iscan perform the changes manually to your Oracle VM
u g o@ uyousecan run the createOracle.sh script, which implements
Manager host. Alternatively,

z (hthe createOracle.sh
some of the changes, and also notifies you if some of the requirements are not met. In your lab

o p e
environment, script has already been executed.
L createOracle.sh script is located in the Oracle VM Manager installation media, in the
oThe
g
Hu
top-level directory.

Assumptions
This practice makes the following assumptions:
The host where Oracle VM Manager will be installed is up and running
The createOracle.sh script has been run successfully
The Oracle XE database is selected as the repository for Oracle VM Manager

Tasks
1. Start a terminal window in your lab machine.
2. Change user to root.
3. In the terminal window, log in to ovmmgr.example.com (the virtual machine where Oracle
VM Manager will be installed).
# ssh ovmmgr.example.com
The authenticity of host 'ovmmgr.example.com (192.0.2.103)'
can't be established.
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 18
RSA key fingerprint is
6b:15:92:87:90:18:82:73:95:2c:5e:e8:a1:0b:9d:14.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'host03.example.com' (RSA) to the
list of known hosts.
root@ovmmgr.example.com's password: oracle
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Last login: Mon Dec 12 13:44:28 2011 from 192.0.2.1


[root@ovmmgr ~]#
4. Display the memory size on ovmmgr.example.com.
[root@ovmmgr ~]# more /proc/meminfo
MemTotal: 2042596 kB (2 GB in this example; your
value may differ)
MemFree: 1328828 kB
e to
Buffers: 61612 kB
cens
l i
... <output omitted>
b le
Hugepagesize: 2048 kB
s f era
DirectMap4k: 2097152 kB
tra n
DirectMap2M: 0 kB n -
--More(0%)
a no
a
s 2 GBidofememory,
Note: Your Oracle VM Manager host may have
r ) h only
u but the requirement

v
is at least 4 GB if you plan to install Oracleadoes not
XE (see
n t G the memory requirement,
the table at the start of this practice). If
your Oracle VM Manager hosts memory
g o de meet you will
receive a warning when installing
n b the tu
ib thisSwarning.
Oracle VM Manager software. In your lab
environment, you can safely
hi
ignore s
bcuser eID texists.
o @
5. Verify that the oracle
g s
h u u
z (
[root@ovmmgr ~]# grep oracle /etc/passwd

o p eoracle:x:54321:54323::/home/oracle:/bin/bash
o L [root@ovmmgr ~]# grep dba /etc/group
u g
H dba:x:54322:oracle
[root@ovmmgr ~]#
6. Verify that the /u01 directory exists, and list its size.
[root@ovmmgr ~]# ls -ld /u01
drwxr-xr-x 3 root root 4096 Jan 21 19:02 /u01
[root@ovmmgr ~]# df -k /u01
Filesystem 1K-blocks Used Available Use% Mounted
on
/dev/xvdd1 15464736 169552 14509608 2% /u01
[root@ovmmgr ~]#

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 19
7. Verify that the required packages are installed:
[root@ovmmgr ~]# rpm -qa | egrep "libaio|bc|unzip"
unzip-5.52-3.0.1.el5 <===
glibc-2.5-65
libcroco-0.6.1-2.1
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

libaio-0.3.106-5 <===
libsmbclient-3.0.33-3.29.el5_5.1
glibc-2.5-65
libaio-devel-0.3.106-5
glibc-devel-2.5-65
bc-1.06-21 <===
libcap-1.10-26
e to
ns
libaio-0.3.106-5
glibc-headers-2.5-65
l i ce
libaio-devel-0.3.106-5
b le
libcap-1.10-26
s f era
libcroco-0.6.1-2.1
tr an
n -
no
glibc-devel-2.5-65
glibc-common-2.5-65 a
s ide
h a
r) t Gu
[root@ovmmgr ~]#
a
8.
ov den
Terminate your session on ovmmgr.example.com:
g
[root@ovmmgr ~]# exit
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 20
Practice 2-4: Install Oracle VM Manager on ovmmgr.example.com

Overview
In this practice, you install Oracle VM Manager on the ovmmgr virtual host.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Assumptions
This practice assumes that the Oracle VM Manager software is available in the /stage
directory on the host where Oracle VM Manager is to be installed.
You install the Oracle VM Manager software and, as part of the installation, you assign an
existing UUID to the Oracle VM Manager. This is done because there is a repository already
created on an NFS share, and you rediscover this repository in a later practice. The UUID in the
metadata of this repository must match the Oracle VM Managers UUID for the rediscover
repository operation to succeed.
e to
Tasks
cens
l i
1. Access ovmmgr.example.com, the host machine where Oracle VM Manager will be
b le
installed.
s f era
[root@<your lab machine>] # ssh ovmmgr.example.com
tra n
root@ovmmgr.example.com's password: oracle n -
a no
Last login: Mon Dec 12 13:44:28 2011 from 192.0.2.1
[root@ovmmgr ~]#
h a s ide
a
2. Mount the ISO file in preparation for theinstallation
u VM Manager.
r) t ofGOracle

a. Change to the /stage directory:g ov den
[root@ovmmgr ~]#nb
ib Stu
b c this
cd /stage

u g o@ of uthesdirectory
b. List the contents e to locate the Oracle VM Manager installation ISO file:

( h
[root@ovmmgr
z
stage]# ls l

o p elost+found ovmm-3.0.3-installer-b126.iso
o L The ISO file is ovmm-3.0.3-installer-b126.iso.
u g
H c. Mount the ISO file on the /mnt directory as a read-only loop device.
[root@ovmmgr stage]# mount o loop,ro ovmm-3.0.3-installer-
b126.iso /mnt
d. Verify that it is mounted properly:
[root@ovmmgr stage]# df k
Filesystem 1K-blocks Used Available Use% Mounted
on
/dev/xvda2 8029884 2928124 4687284 39% /
/dev/xvda1 101086 22934 72933 24% /boot
tmpfs 2051384 0 2051384 0% /dev/shm
/dev/xvdc1 2063504 50160 1908524 3% /home
/dev/xvdd1 15464736 169552 14509608 2% /u01
/dev/xvde1 6190664 2639720 3236476 45% /stage
/stage/ovmm-3.0.3-installer-b126.iso
2493798 2493798 0 100% /mnt
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 21
3. Start the installation by invoking the runInstaller.sh program in /mnt:
a. Change to the /mnt directory:
[root@ovmmgr stage]# cd /mnt
b. List the contents of the /mnt directory and locate the installation program:
[root@ovmmgr mnt]# ls
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

components EULA oracle-validated.params


runInstaller.sh upgrade
createOracle.sh LICENSE ovmm-installer.bsx
runUpgrader.sh
c. Start the installation by executing the runInstaller.sh program, using the UUID
parameter 0004fb00000100002390716cb97d53cf, and respond to the prompts.
Note: If you want to copy and paste the UUID from your environment to avoid entering
e to
ns
the wrong UUID, perform the following steps:
From your lab machine (not ovmmgr), display the mounted file systems with the df
l i ce
k command:
b le
[root@<your lab machine>]# df -k
s f era
Filesystem 1K-blocks
tra
Used Available Use% Mounted on n
/dev/sda3 15001536 7721584 -
6505620 55% /
n
/dev/sda2 101105 45800
a no50084 48% /boot
tmpfs
/dev/sda1
1048664
30694288
h a s ide
0 1048664 0% /dev/shm
6244296 24449992 21% /mnt/cdrive
/dev/sda6
a r) t Gu
437874688 205443072 232431616 47%

g ov den
/var/ovs/mount/2CE45E73EF6548808F711CA703B8D959

mg
n b ib Stu
/var/ovs/mount/2CE45E73EF6548808F711CA703B8D959/sharedDisk/nfsrepos1.i

b c this 20642428 3887492 15706360 20% /nfsrepos1


Changeo
g @ tosthe
directory e mounted NFS share at /nfsrepos1, and list the files,
u u
h hidden files, in the directory:
z (
including

ope[root@EDFAR6P1 nfsrepos1]# ls -la


[root@EDFAR6P1 ~]# cd /nfsrepos1
L
H ugo total 52
drwxr-xr-x 8 root root 4096 Dec 21 21:37 .
drwxr-xr-x 31 root root 4096 Mar 8 07:04 ..
drwx------ 2 root root 4096 Dec 21 21:37 Assemblies
-rw------- 1 root root 36 Dec 21 18:32 .generic_fs_stamp
drwx------ 2 root root 4096 Dec 21 23:17 ISOs
drwx------ 2 root root 16384 Dec 20 21:24 lost+found
-rw------- 1 root root 143 Dec 21 21:37 .ovsrepo
drwx------ 2 root root 4096 Jan 13 22:49 Templates
drwx------ 2 root root 4096 Jan 13 22:49 VirtualDisks
drwx------ 2 root root 4096 Dec 21 21:37 VirtualMachines
Display the contents of the .ovsrepo file by using the cat command:
[root@EDFAR6P1 nfsrepos1]# cat .ovsrepo
OVS_REPO_UUID=0004fb000003000050889cf62227cf7f
OVS_REPO_MGR_UUID=0004fb00000100002390716cb97d53cf
OVS_REPO_VERSION=3.0
Use the grep command to extract the UUID from the file, using MGR as the string for
the grep command:

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 22
OVS_REPO_ALIAS=nfs_repos[root@EDFAR6P1 nfsrepos1]# grep MGR .ovsrepo
OVS_REPO_MGR_UUID=0004fb00000100002390716cb97d53cf
[root@EDFAR6P1 nfsrepos1]#
You can now copy and paste the UUID to use with the runInstaller.sh installation
script.
The prompts to the installation program are summarized in the following table:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Prompt Value
Installation Type Production ( option 2)
Install or Use existing database Install Oracle Database 11g XE ( option 1)
Oracle Database System password MyOracle2
Application Express (APEX) port 8080 or press enter to accept default
e to
ns
Oracle Database listener port 1521 or press enter to accept default
Oracle VM Manager database schema ovs or press enter to accept default l i ce
b le
Oracle VM Manager database schema
password
MyOracle2
s f era
tra n
Oracle WebLogic Server 11g user n - weblogic or press enter to accept default
Oracle WebLogic Server 11g user password a no
epress enter to accept default
Weblogic1
Oracle VM Manager administration user ) h
as admin
i d
a r t Gu or
admin user password
g ov den Myadmin1
Continue/Abort
n b ib Stu Continue (option 1)
c
b e th i s
g o @ s
h
Executeuthe u
runInstaller.sh script:
z (
o p e[root@ovmmgr mnt]# ./runInstaller.sh --uuid=
L 0004fb00000100002390716cb97d53cf
u go
H Important Note: There are no spaces or newline between --uuid= and the
uuid itself.
Oracle VM Manager Release 3.0.3 Installer

Oracle VM Manager Installer log file:


/tmp/ovmm-installer.selfextract_On9872/install-2012-01-27-
170434.log

Please select an installation type:


1: Demo
2: Production
3: Uninstall
4: Help

Select Number (1-4): 2 <===

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 23
Starting standard installation ...

Verifying installation prerequisites ...


Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

*** WARNING: Recommended memory for the Oracle VM Manager server


installation is 3950 MB RAM

Oracle Database Repository


==========================
Would you like to install Oracle Database 11g Express Edition
(XE) or connect to an existing Oracle database?
1: Install Oracle Database 11g XE
e to
2: Use an existing Oracle database
cens
l i
b le
Select Number (1-2): 1 <===
s f era
tr an
Enter the Oracle
n -
Database SYSTEM password: MyOracle2
Enter the Oracle no
Database SYSTEM password (confirm): MyOracle2
a
Enter the Oracle a s ide
Application Express (APEX) port [8080]: 8080
h
Enter the Oracle
a r) t Gu
Database listener port [1521]: 1521
Enter the Oracle
g ov den
VM Manager database schema [ovs]: ovs
Enter the b ib Stu
Oracle
n VM Manager database schema password: MyOracle2
Enter the b c this
Oracle VM Manager database schema password (confirm):
MyOracle2
u g o@ use
z ( h
op eOracle Weblogic Server 11g
L
ugo
==========================
H Enter the Oracle WebLogic Server 11g user [weblogic]: weblogic
Enter the Oracle WebLogic Server 11g user password: Weblogic1
Enter the Oracle WebLogic Server 11g user password (confirm):
Weblogic1

Oracle VM Manager application


=============================
Enter the username for the Oracle VM Manager administration user
[admin]: admin
Enter the admin user password: Myadmin1
Enter the admin user password (confirm): Myadmin1

Verifying configuration ...l

Start installing the configured components:

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 24
1: Continue
2: Abort

Select Number (1-2): 1 <===


Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Step 1 of 9 : Database ...


Installing Database ...
Retrieving Oracle Database 11g XE ...
Installing Oracle Database 11g XE ...
Configuring Oracle Database 11g XE ...

Step 2 of 9 : Java ...


e to
ns
Installing Java ...

l i ce
Step 3 of 9 : Database Schema ...
b le
Creating database schema 'ovs' ...
s f era
tra n
n -
no
Step 4 of 9 : WebLogic ...
a
s ide
Retrieving Oracle WebLogic Server 11g ...
h a
Installing Oracle WebLogic Server 11g ...
a r) t Gu
Step 5 of 9 : ADF ...go
v e n
d
ib Stu Development Framework
n b is
bc ADF
Retrieving Oracle Application (ADF) ...
Unzipping @ t h
seADF ...
Oracle ...
u g
Installing
o Oracle
u
z (h
e
op Step 6 of 9 : Oracle VM ...
L
H ugo Retrieving Oracle VM Manager Application ...
Extracting Oracle VM Manager Application ...
Installing Oracle VM Manager Core ...

Step 7 of 9 : Domain creation ...


Creating Oracle WebLogic Server domain ...
Starting Oracle WebLogic Server 11g ...
Configuring data source 'OVMDS' ...
Creating Oracle VM Manager user 'admin' ...

Step 8 of 9 : Deploy ...


Deploying Oracle VM Manager Core container ...
Deploying Oracle VM Manager UI Console ...
Deploying Oracle VM Manager Help ...
Enabling HTTPS ...

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 25
Granting ovm-admin role to user 'admin' ...

Step 9 of 9 : Oracle VM Manager Shell ...


Retrieving Oracle VM Manager Shell & API ...
Extracting Oracle VM Manager Shell & API ...
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Installing Oracle VM Manager Shell & API ...

Retrieving Oracle VM Manager Upgrade tool ...


Extracting Oracle VM Manager Upgrade tool ...
Installing Oracle VM Manager Upgrade tool ...
Copying Oracle VM Manager shell to '/usr/bin/ovm_shell.sh' ...
Installing ovm_admin.sh in '/u01/app/oracle/ovm-manager-3/bin'
...
e to
Installing ovm_upgrade.sh in '/u01/app/oracle/ovm-manager-3/bin'
cens
l i
...
b le
Enabling Oracle VM Manager service ...
s f era
Shutting down Oracle VM Manager instance ...
tra n
Restarting Oracle VM Manager instance ...
n -
no
Waiting 15 seconds for the application to initialize ...
a
Oracle VM Manager is running ...
h a s ide
Oracle VM Manager installed.
a r) t Gu
g ov den
Please wait whilebWebLogic u
ib Stconfigures the applications... This
can take up toc5n minutes.s
@ bSummary
e thi
u g o
Installation
u s
(h
--------------------
z
op eDatabase configuration:
L
ugo
Database host name : localhost
H Database instance name (SID):
Database listener port :
XE
1521
Application Express port : 8080
Oracle VM Manager schema : ovs

Weblogic Server configuration:


Administration username : weblogic

Oracle VM Manager configuration:


Username : admin
Core management port : 54321
UUID : 0004fb00000100002390716cb97d53cf

Passwords:
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 26
There are no default passwords for any users. The passwords to
use for Oracle VM Manager, Oracle Database 11g XE, 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:


Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

http://ovmmgr.example.com:7001/ovm/console
https://ovmmgr.example.com:7002/ovm/console
Log in with the user 'admin', and the password you set during
the installation.

Please note that you need to install tightvnc-java on this


computer to access a virtual machine's console.
e to
cens
For more information about Oracle Virtualization, please visit:
l i
http://www.oracle.com/virtualization/
b le
s f era
Oracle VM Manager installation complete.
tra n
n -
a no
h a s ide
Please remove configuration file /tmp/ovm_configrT5UCe.

r) t Gu
[root@ovmmgr mnt]#
v a
go tuden
4. Terminate your session on ovmmgr.example.com:
[root@ovmmgr mnt]# ib exit
c n b session
is S on your lab machine.
b
You are returned to the
t
terminal h
@ siseready for access.
Your Oracle VMoManager
h u g u
(
o p ez
o L
u g
H

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 27
Practice 2-5: Perform Post-installation Verification

Overview
In this practice, you look at the installation log, note the UUID assigned to the Oracle VM
Manager, and check the status of the ovmm service.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Assumptions
This practice assumes that the installation of Oracle VM Manager completed successfully.

Tasks
1. From a terminal window on your lab machine, log in to ovmmgr.example.com by using
the ssh -X command:
Note: The X (capital letter) parameter for ssh enables X11 forwarding. With this
e to
parameter, you can run the gedit command from ovmmgr.example.com.
cens
[root@<your lab machine>]# ssh X ovmmgr.example.com l i
root@ovmmgr.example.com's password: oracle b le
Last login: Sat Jan 21 18:58:04 2012 from 192.0.2.1
s f era
[root@ovmmgr ~]# tra n
n -
2. Find the installation log in the /tmp directory:
a no
a. Change directory to /tmp:
h a s ide
[root@ovmmgr ~]# cd /tmp
a r) t Gu
g
b. List the files in the /tmp directoryov den
n b ibls a Stu
[root@ovmmgr tmp]#
b c this
c. Review the log
g o @ created
file
s e as install-<date>.log by using the view or the gedit
u
command.
h u
(
z The view command is the read-only version of the vi command; gedit is a
o p eNote:
simple GUI text editor for the GNOME Desktop.
o L For example:
u g
H [root@ovmmgr tmp]# view install-2012-01-27-170434.log
Note: If the installation is not successful, the log file is not copied to the /tmp directory,
and can be found in the /tmp/ovmm-installer.selfextract_<I>/install-
<date-time>.log file.
In the installation log file, find the following elements:
Check for memory size.
Check for oracle user and group.
Check for hardnofiles and softnofiles for oracle.
Check for /u01.
Questions area (Prompts and their responses do not appear in the log file.)
Check if a service is running on ports 1521 and 8080.
Ping to localhost.
Installation of components.

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 28
Configuration of applications.
Copy of log file to /tmp.
Note that the UUID of your Oracle VM Manager is listed in the log file.
d. Execute the grep command against the log file using the UUID string to display the
UUID that was used during installation. Your log file will have a different name from the
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

name used in the following example:


[root@ovmmgr tmp]# grep UUID install-2012-01-27-170434.log
01-27 17:04 ovm.installer DEBUG Manager UUID argument set to
: '0004fb00000100002390716cb97d53cf'
UUID=0004fb00000100002390716cb97d53cf
The UUID must match the UUID you specified as a parameter to the installation
program.
e. Check the status of the ovmm service by using the service command: e to
cens
[root@ovmmgr tmp]# service ovmm status
l i
Oracle VM Manager is running...
b le
The Oracle VM Manager service, ovmm, should be in the running state.
s f era
tr
Note: You can start, stop, and request the status of the ovmm service. You cannot an
n -
no
restart it. Using the restart parameter causes the service command to display
a
usage information:
h a s ide
a r) t Gu
[root@ovmmgr ~]# service ovmm restart

g ov den
Usage: /etc/init.d/ovmm {start|stop|status}

n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 29
Practice 2-6: Prepare the Oracle VM Manager Host for Console Access
to Virtual Machines

Overview
In this practice, you prepare your Oracle VM Manager host to allow access to the console of
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

virtual machines deployed in your Oracle VM environment.


The virtual machine console feature uses the client instance of a VNC viewer, if one exists, to
connect to a virtual machine's console. For example, if you access Oracle VM Manager from
your laptop, and you launch the console for a virtual machine, the VNC viewer on your laptop is
used for connecting to the console. If a VNC viewer is not found on your client computer, a
request is sent to the Oracle VM Manager host to display the VNC viewer. Oracle VM Manager
uses the TightVNC Java viewer program to respond to requests for console connections.

Assumptions
e to
This step assumes that the TightVNC Java viewer package is available in the /stage directory
cens
l i
on the Oracle VM Manager host, ovmmgr.example.com.
b le
Tasks s f era
tra n
1. -
From a terminal window on your lab machine, log in to ovmmgr.example.com using the
n
ssh command:
a no
a s ide
[root@<your lab machine>]# ssh ovmmgr.example.com
h
root@ovmmgr.example.com's password:
a u
r) t Goracle
Last login: Sat Jan 21 o
g v
18:58:04
e n2012 from 192.0.2.1
[root@ovmmgr ~]# ib tu d
n b
c viewer s S
2. Locate the TightVNC b
@
Java
e thipackage:
g o ~]#
[root@ovmmgr
u u scd /stage
z (h
[root@ovmmgr stage]# ls
e
op lost+found ovm-console-1.0.0-2.x86_64.rpm ovmm-3.0.3-installer-
L
ugo
b124.iso tightvnc-java-1.3.9-3.noarch.rpm
H 3. Check to see if the package is already installed:
[root@ovmmgr ~]# rpm -qa | grep tight
tightvnc-java-1.3.9-3
[root@ovmmgr ~]#
If there is no output to the above command, the TightVNC Java viewer package is not
installed.
4. If the package is already installed, proceed with step 5. If the TightVNC Java viewer
package is not installed, install it now:
[root@ovmmgr stage]# rpm -ivh tightvnc-java-1.3.9-3.noarch.rpm
Preparing...
########################################### [100%]
1:tightvnc-java
########################################### [100%]
[root@ovmmgr stage]#

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 30
5. Terminate your session on ovmmgr.example.com:
[root@ovmmgr stage]# exit
You are returned to the terminal session on your lab machine.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
Lope
H ugo

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 31
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 2: Planning and Installation


Chapter 2 - Page 32
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
t ran
Practices foro n -Lesson 3:
Managing
n
a Servers and
a s d e
a nt G r) h
Networks ui
o v
i b de 3
g tuChapter
c n b is S
@ b e th
u g o u s
z (h
Lope
H ugo

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 1
Practices for Lesson 3

Practices Overview
In these practices, you will perform the following:
1. Discover Oracle VM Servers from the Oracle VM Manager.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

2. Create the Virtual Machine network.


3. Create a Cluster Heartbeat network.
4. Check bonds and bridges on the Oracle VM Servers.
5. Create a network with VLAN support.

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 2
Practice 3-1: Discover Oracle VM Servers from the Oracle VM Manager

Overview
In this practice, you discover the two Oracle VM Servers in your environment by using the
Oracle VM Manager. After discovering the Oracle VM Servers, you examine their properties
from the Oracle VM Manager.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Assumptions
This practice assumes that you have two Oracle VM Servers that are up and running, and that
these Oracle VM Servers are not known to Oracle VM Manager.

Tasks
1. Start the Oracle VM Manager:
a. Start the Firefox Web Browser from your lab machine:
e to
Double-click the Firefox Web Browser icon on your desktop
cens
l i
OR
b le
Click Applications in the menu bar. Select Internet > Firefox Web Browser.
s f era
b. Enter the URL, listed in the URL field in the table below.
tra n
n -
c. In the Welcome window, enter the administrator username and password specified
no
during installation. The username and password are provided in the following table:
a
Field h a s Value
i d e
a r) t Gu
URL
ov den
http://192.0.2.103:7001/ovm/console
Administrator username g
ib Stu
admin
n b
c Myadmin1is
b
Administrator password
t h
u g o@ use
z (h
e
Lop
u go
H

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 3
d. After entering the username and password, click the Login button:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
The Oracle VM Managers Home
g ovview appears:
d e n
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

Note: The main window for the Home and Hardware views is divided into a navigation
pane on the left and a management pane on the right. All the practices refer to these
two panes to help you locate the items needed to perform the activities.

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 4
2. Discover your two Oracle VM Servers.
Use the information in the following table for this task:
Field Value
Oracle VM Server ovsvr01.example.com IP address: 192.0.2.101
Oracle VM Server ovsvr02.example.com IP address: 192.0.2.102
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Oracle VM Agent Password ovsagent

a. Click the Hardware view navigation shortcut, located at the bottom left in the navigation
pane:

e to
cens
l i
b le
s f era
tr a n
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 5
b. In the Hardware view, click the Discover Servers icon on the toolbar:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 6
c. Enter the first IP address in the Specify an IP Address (or range) fields and click the
Add button to add this IP address to the list of IP Addresses:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov dthe e n
b i
d. Add the second IP addressb Stu last octet and clicking Add, as shown
by changing
below:
b cn this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 7
Leave Oracle VM Agent Port to its default value of 8899.
e. Enter the password listed in the table in the Oracle VM Agent Password field, and click
OK to trigger the discovery operation:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
The a
no
h a s iside
password

a r) ovsagent
G u
ov den t
g tu created for this operation.
ibthe twoSjobs
n b s
bc e thi
f. In the Jobs pane, observe
@
u g o u s
z (h
op e
L
H ugo

Wait for the jobs to complete before proceeding.


The discovery of the two Oracle VM Servers completes successfully and the job status
is updated.

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 8
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

3. Examine the available information for your newly discovered Oracle VM Servers.

a. In the Hardware view, on the Hardware tab, click the expand button to view the
content of the Unassigned Servers folder in the navigation pane:

e to
ce ns
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo
b. Select the first Oracle VM Server in the Unassigned Servers folder and examine the
information on the various tabs in the management pane:
Verify the bond port on the Bonding tab.
Note: On the Bonding tab, there is a list of bond ports and the list of Ethernet ports
for each selected bond. You may have to adjust each panes size or click the

collapse pane button to view the relevant information.


Verify the bond mode and its status.
View all the Ethernet ports on the Ethernet Ports tab.
There should be four ports available.
Check the Events tab.
If there is an event that needs acknowledgement, acknowledge it now by clicking
Acknowledge All.

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 9
c. In the navigation pane, right-click one of the Oracle VM Servers and examine the
actions that can be triggered for the server:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
h
( Edit Server from the shortcut menu.
z Select
e
op Examine the fields that can be modified.
L
H ugo
4.
Click cancel to exit the Edit Server window.
Examine the management network that was created automatically when the Oracle VM
Servers were discovered.
a. In the navigation pane, click the Resources folder on the Hardware tab.
This action displays four new tabs in the management pane:
Server Pools
Networks
VLAN Groups
Events
b. Click the Networks tab.
The management network, named 192.0.2.0, is listed under Networks.
Note: You may have to adjust the pane in order to display the management network.
Notice the network functions associated with this network:
Server management

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 10
Cluster Heartbeat
Live Migration
c. Select the management network and view the server ports shown on the Ports tab, in
the Ports pane.
d. Select one of the ports and view the information in the Ethernet Ports pane.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 11
Practice 3-2: Create the Virtual Machine Network

Overview
In this practice, you create a network for virtual machine traffic. This network has access to a
DHCP server running on your lab machine. The DHCP server assigns IP addresses for the
virtual machines deployed on this network. This network is dedicated to virtual machine traffic,
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

and therefore, you specify only the Virtual Machine function when creating the network.

Assumptions
This practice assumes that the Oracle VM Servers have port(2) available. Port(1) was
used for the server management network, created automatically when you discovered your
Oracle VM Servers.

Tasks
e to
1. From the Hardware view, navigate to the Networks tab in the management pane.
cens
If you are not currently in the Hardware view, perform the following steps: l i
b le
era
a. Click the Hardware view shortcut, located in the bottom section of the navigation pane.
b. In the Hardware view, click the Hardware tab in the navigation pane.
n s f
c. Click the Resources folder. - tr a
no n
This action displays four tabs in the management pane.
a
s ide
a
d. Click the Networks tab in the management pane.
h
2. r) t Gu
Create the new network, using port(2) for each Oracle VM Server.
a
g ov den
a. Click the Create New Network icon to launch the wizard.

n b ib Stu
b c this
u g o@ use
z ( h
Lope
H ugo

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 12
b. On the Create Network screen, select Create a network with bond/ports only.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a noVM Server participating in the
With this selection, you specify a port for each Oracle
new network. You can also specify a VLAN a
h s iwhen
segment
d e creating a new network.
a r) t Gu
This option is exercised in Practice 3-5.
Click Next to continue.
g ov den
b
c. On the next screen, specifyib a nameS u a function for your new network:
tand
Field bc
n s
@ e thi Value
Network nameu g o u s vm_net
( h
o p ez Use
Network Select the Virtual Machine check box.
L
u go
H

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 13
The selections are shown in the following screenshot:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
Click Next to continue. a no
d. On the Select Servers screen, you select h a
the s iVM
Oracle d
eServers that participate in this
new network.
)
ar nt G u
Select the two available Oracleo v
i b g VM
are nowtu deunder
Servers by clicking the double right-arrow button.

n b
The two Oracle VM Servers
s S listed Selected Servers, as shown below:

@ bc e thi
u g o u s
z (h
op e
L
H ugo

Click Next to continue.


e. On the Select Ports screen, select one port from each Oracle VM Server:
Select Port(2) for ovsvr01.example.com.
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 14
Click the single right-arrow button to move your selection to the Selected Ports list.
Select the second selection, Port(2) for ovsvr02.example.com.
Click the single right-arrow button to move this second port to the Selected Ports
list, as shown below:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
Click Next to continue. g ov den
n
f. On this last screen, you b select tu
ib anSaddressing scheme, and you specify IP addresses if
c
b e th
you select IP Address in the i s
Addressing column. IP Address is equivalent to static
IP address.o
g @ s
u u
h information in the following table to fill this screen:
Use(the
e z
Lop Field Value

H ugo Addressing Select IP Address from the drop-down list.


IP Address 192.168.1.101 for ovsvr01.example.com
192.168.1.102 for ovsvr02.example.com
Mask 255.255.255.0
Note: Because the Oracle VM Servers require access to an httpd server located on
the 192.168.1.0 subnet (for a later practice), you assign an IP address to each
Oracle VM Server port, to allow the Oracle VM Servers to be addressable on this
network.

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 15
After you have entered the values in the table, the screen looks like the following
screenshot:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
Click Finish to trigger the creation of your new
h a snetwork.
i d e
g. After the job has completed, examine r
a ) new G
your u from the Networks tab. The
network
new network should appear in the o vlist of n t
networks,
e as shown below:
i g
b Stu d
b
cn this
b
u g o@ use
z (h
op e
L
H ugo

Examine the new networks ports and associated IP addressing.


Select the new network, vm_net, on the Networks tab.
View the information for this network by clicking the Ports subtab.

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 16
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
Note: If you have difficulty viewing the subtabs for the network, click the collapse pane
s f era
button for the Jobs pane, and move the pane resize bar upward to display the network
tr an
subtabs.
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 17
Practice 3-3: Create a Cluster Heartbeat Network

Overview
In this practice, you create a separate Cluster Heartbeat network. The cluster heartbeat function
is currently part of the management network. After you create a separate network for the cluster
heartbeat, you remove the cluster heartbeat function from the management network.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Note: If you intend to create a separate network for the heartbeat network, it is advisable to
create this network before creating your Oracle VM server pools.

Assumptions
This practice assumes that there is a free network interface card to create the heartbeat
network. In your lab environment, the third port, eth2 or port(3) on each Oracle VM Server,
is used to create the new network with the heartbeat function.
e to
Tasks
cens
1. Navigate to the Networks tab in the management pane. l i
b le
era
2. Create the new network, using port (3) for each of the two Oracle VM Servers.
a. Click the Create New Network icon to launch the wizard.
n s f
- tr
b. On the first screen called Create Network, select Create a network with bond/ports a
only. no n
a
s ide
h a
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

Click Next to continue.


c. On the next screen, specify a name and a function for your new network:
Field Value
Network Name hb_net
Network Use Select the Cluster Heartbeat check box.

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 18
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 19
The selections are shown in the following screenshot:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
Click Next to continue.
a no
h
d. On the next screen, you select the Oracle VMa e participate in this new
sServersidthat
network.
a r) t Gu
Select the two available Oracleo
g v Servers
VM e nby clicking the double right-arrow button.
d
tu in the Selected Servers pane, as shown
ib now appear
b
The two Oracle VM Servers
n s S
below:
@ bc e thi
u g o u s
z (h
op e
L
H ugo

Click Next to continue.

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 20
e. On the next screen, select one port from each Oracle VM Server:
Select Port(3) for ovsvr01.example.com.
Click the single right-arrow button to move your selection to the Selected Ports list.
Select Port(3) for ovsvr02.example.com, as shown below:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
Click the single right-arrow g ovbuttondtoemove
n this second port to the Selected Ports
list.
n b ib Stu
Port (3) from both b is now be listed under Selected Ports.
cserversthshould
Click Next
u g o@
to u
continue.se
f. Onz h last screen, you select an addressing scheme.
(this
e
op Note: For the heartbeat network, you must select either DCHP or IP Address.
L
ugo
None is not a valid selection.
H Use the information in the following table to fill this screen:
Field Value
Addressing Select IP Address from the drop-down list.
IP address for ovsvr01.example.com 192.168.2.101
IP address for ovsvr02.example.com 192.168.2.102
Mask 255.255.255.0

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 21
After you have entered the values in the table, the window looks like the following
screenshot:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
Click Finish to trigger the creation of your newsnetwork. e
After the job completes, locate your new r ) ha onuithe
network
d Networks tab. The new
network should appear in the list v a ntasGshown below:
ofnetworks,
o
g tude
i b
b is S
c n
b e th
g o @ s
u u
z (h
op e
L
H ugo

Notice that two networks have Cluster Heartbeat selected under Network Use.

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 22
3. Remove the Cluster Heartbeat network function from the management network.
a. On the Networks tab, select the management network (192.0.2.0) and click the Edit
Selected Network icon to launch the edit operation:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b. On the next screen, deselect the Cluster Heartbeat check box in the Network Use b le
section:
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

Click Next to continue.


c. On the Select Servers screen, click Next to continue.
d. On the Select Ports screen, click Next to continue.
e. On the Select VLAN Segment screen, click Next to continue.
f. On the Configure IP Addresses screen, click Finish to complete the edit operation.

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 23
The Cluster Heartbeat network function is specified only for the hb_net network as
shown in this screenshot:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 24
Practice 3-4: Check Bonds and Bridges on the Oracle VM Servers

Overview
In this practice, you examine the network devices created on your Oracle VM Servers.

Assumptions
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

This practice assumes that the networks have been configured successfully, as described in the
previous practices of this lesson.

Tasks
1. Log in to ovsvr01.example.com as root.
a. Open a terminal window from your lab machine.
b. Change user to root.
e to
c. Use the ssh command to log into your Oracle VM Server:
cens
[root@<your lab machine> ~]# ssh ovsvr01.example.com l i
b le
era
root@ovsvr01.example.com's password: oracle
Last login: Tue Dec 13 10:51:49 2011 from 192.0.2.1
n s f
- tra
Warning: making manual modifications in the management domain
n
no
might cause inconsistencies between Oracle VM Manager and the
a
server.
h a s ide
[root@ovsvr01 ~]#
a G u
r) andtbridge
g o
2. Execute commands to display network v device
e n information.
a. Execute the ifconfig ai bcommand: tu d
[root@ovsvr01bc n b s S
@ t hi -a
~]# ifconfig
e
g o
0004fb00109cfe7
u u sLink encap:Ethernet HWaddr 00:16:3E:00:02:01
z (h
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0

o p e UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1


o L RX packets:4380 errors:0 dropped:0 overruns:0 frame:0
u g
H carrier:0
TX packets:4125 errors:0 dropped:0 overruns:0

collisions:0 txqueuelen:0
RX bytes:458867 (448.1 KiB) TX bytes:595898 (581.9
KiB)

bond0 Link encap:Ethernet HWaddr 00:16:3E:00:01:01


inet addr:192.0.2.101 Bcast:192.0.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500
Metric:1
RX packets:4380 errors:0 dropped:0 overruns:0 frame:0
TX packets:4125 errors:0 dropped:0 overruns:0
carrier:0
collisions:0 txqueuelen:0
RX bytes:458867 (448.1 KiB) TX bytes:595898 (581.9
KiB)
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 25
eth0 Link encap:Ethernet HWaddr 00:16:3E:00:01:01
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500
Metric:1
RX packets:4380 errors:0 dropped:0 overruns:0 frame:0
TX packets:4125 errors:0 dropped:0 overruns:0
carrier:0
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

collisions:0 txqueuelen:1000
RX bytes:458867 (448.1 KiB) TX bytes:595898 (581.9
KiB)
Interrupt:32 Base address:0x8000

eth1 Link encap:Ethernet HWaddr 00:16:3E:00:02:01


UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
e to
RX packets:1305 errors:0 dropped:0 overruns:0 frame:0
cens
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 l i
b le
era
collisions:0 txqueuelen:1000
RX bytes:60030 (58.6 KiB) TX bytes:252 (252.0 b)
n s f
Interrupt:36 Base address:0xc100
n - tra
a no
eth2 Link encap:Ethernet HWaddr
h a i d e
s 00:16:3E:00:03:01
a r) t Gu
inet addr:192.168.2.101 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST o
g v
RUNNING
e n
MULTICAST MTU:1500 Metric:1

ib errors:0 d
tu dropped:0 overruns:0 frame:0
n b
RX packets:2
c thi s S
b
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0

u g o@ u se txqueuelen:1000
collisions:0

z (h RX bytes:92 (92.0 b) TX bytes:84 (84.0 b)

ope
Interrupt:40 Base address:0x200
L
H ugo eth3 Link encap:Ethernet HWaddr 00:16:3E:00:04:01
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:44 Base address:0x4300

lo Link encap:Local Loopback


inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:344 errors:0 dropped:0 overruns:0 frame:0
TX packets:344 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:86145 (84.1 KiB) TX bytes:86145 (84.1 KiB)
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 26
b. Examine:
The eth0 and bond0 network interfaces
Notice that the eth0 network interface is a SLAVE device to bond0, which is the
master. Eth0 and bond0 have the same MAC address.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

The 0004fb00109cfe7 bridge, which is also a network device


Your bridge will have a different name.
This is the bridge that was created when you configured the virtual machine
network, vm_net.
The bridge, in this example, 0004fb00109cfe7, and eth1 have the same MAC
address. The bridge however, has the IP address assigned.
Note: In Oracle VM Manager, interface eth1 is called port(2).
e to
ns
c. Execute the brctl show command to display bridge information:
[root@ovsvr01 ~]# brctl show
l i ce
bridge name bridge id STP enabled
r a ble
interfaces
no ans
fe
0004fb00109cfe7 8000.00163e000201
t r eth1
n- bridge configured, for
The output of the brctl command shows that there isoone
n
a machine
eth1, the port specified when you created the virtual
s e network, vm_net.

)
d. Exit your session on ovsvr01.example.com
r ha by uusing
id the exit command:
[root@ovsvr01 ~]# exit va
o e n tG
i bg Stud closed.
Connection to ovsvr01.example.com
b
[root@<your lab
b cnmachine>
t h is ~]#
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 27
Practice 3-5: Create a network with VLAN support

Overview
In this practice, you create a network with VLAN support. First, you create a VLAN group, and
then use a VLAN segment from this VLAN Group to create the network.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

With the VLAN support in Oracle VM, you can direct traffic from several VLAN segments onto a
single port or bond on your Oracle VM Servers.
Creating a VLAN Group: A VLAN Group contains a single port or bond from each
Oracle VM Server participating in the VLAN Group. You then specify which VLAN
traffic can use this VLAN Group, by adding VLAN IDs to the VLAN Group. VLAN IDs
range from 2 through 4094, with VLAN ID 1 representing an untagged VLAN segment.
Creating a network supporting VLAN traffic: After creating your VLAN Group, you can
use it to create a network with VLAN support. Simply specify a VLAN segment from a
VLAN Group when creating the network. e to
cens
l i
Assumptions
b le
Your lab environment does not support VLAN tagging. However, you can create networks with
VLAN support, but you cannot use them. After creating the network with VLAN support, it will s f era
remain unused for the remaining lab practices. tra n
n -
Tasks a no
1. Create a VLAN Group with port(4) on each h a s VMid
Oracle e
Server.
a. Start the Oracle VM Manager. va
r) t Gu
b. Access the hardware view. g
o den
n b ib Sthe tuResources folder in the navigation pane:
bc e thi
c. Click the Hardware tab, s
and select

g o @ s
u u
z (h
op e
L
H ugo

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 28
d. In the management pane, click the VLAN Groups tab to display the panes and tabs
associated with VLAN Groups:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
The VLAN Groups tab displays the configured VLAN Groups. There is no
s f era
configured VLAN Group at this time.
tr an
n -
selected VLAN Group. a no
The Ports tab shows information about the ports in the VLAN Group for the

h a s ide
The VLAN Segments tab shows the VLAN segments that have been specified for

the selected VLAN Group.a r) t Gu
e. g ov den
Click the Create New VLAN Group icon, to launch the VLAN Group Wizard:
n b ib Stu
b c this
u g o@ use
z ( h
Lope
H ugo
f. On the first screen of the wizard, provide a name and a description for the VLAN
Group.
Use the information in the following table for input to this screen:
Field Value
Name vlan_g1 (with the digit 1)
Description VLAN Group 1

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 29
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
no
After entering the information, click Next to continue.
a
g.
available Oracle VM Servers: h a s ide
On the Select Servers screen, click the double right-arrow button to select the two

a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

Click Next to continue.

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 30
h. On the Select Ports screen, select Port(4) for each Oracle VM Server by clicking the
double right-arrow buttons.
After selecting the ports, the window should look like the following screenshot:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
Click Next to continue. a r) t Gu
i. On the Create Segments screen, g ovselectdthe
e nVLAN segments:
Select the VLAN n
ib option:
IDb(2-4094) S
tu This action permits you to enter one VLAN ID
at the time forb c new VLAN
the
s
thi Group.
g
Click the
@
oarrow atuthee
s top, which is the increment button in the VLAN ID field, to
u
(h VLAN ID 4.
select
e z
Lop Click Add (the single right-arrow button) to add your selection to the list of VLAN
ugo
Segments.
H Repeat for VLAN ID 137, by entering 137 in the VLAN ID field, and clicking the Add
button to add this second selection to the list of VLAN Segments.

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 31
After selecting VLAN ID 4 and 137, your window should look like the following
screenshot:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
Click Next to continue. h a s ide
a r)you assign
G uIP addresses as needed:
j. On the Configure IP Addresses screen,
ov den t
g
ib Stu
n b
c this
b
u g o@ use
z (h
op e
L
H ugo

Note: Generally, the ports selected for the VLAN Groups do not need to be
addressable. You assign the IP addresses to the VLAN Interfaces that are created
when you create a VLAN Group.
Click the VLAN Interfaces tab to display the VLAN Interfaces information:

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 32
Each Oracle VM Server will have two new VLAN Interfaces created when you click the
Finish button. On this screen, you configure IP information if you want the VLAN
Interfaces to acquire an IP address when they are created:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
ce ns
l i
ble
s f era
tra n
n -
a no
h a s ide

With these VLAN Interfaces configured, a r)you can G u two new networks. If your
create
v
omachine e t
n you do not need to assign an IP

ib Stu
address for the VLAN interface.
g
future network is used for virtual
d traffic,

n b
c this
For example: b
o@ toube
The network
u g s ecreated with VLAN Segment 4 has the storage network
z ( hThe
function.

ope
network to be created with VLAN Segment 137 has the virtual machine

o L network function only.


u g In the examples above, you assign IP addresses to the VLAN Interfaces for VLAN
H Segment 4, but no IP addresses for the VLAN Interfaces for VLAN Segment 137.
Use the information in the following table as input to this screen:
VLAN Server/Port Addressing IP address Netmask
Interface Type
VLAN ovsvr01.example.com/ None N/A N/A
Interface 137 Port(3)
VLAN ovsvr02.example.com/ None N/A N/A
Interface 137 Port(3)
VLAN ovsvr01.example.com/ IP Address 192.168.3.101 255.255.255.0
Interface 4 Port(3)
VLAN ovsvr02.example.com/ IP Address 192.168.3.102 255.255.255.0
Interface 4 Port(3)

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 33
After entering the data in the Addressing and IP Address columns, the window should
be like the following screenshot:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
Note: The server ports may be appearing inaany s order. d sure that you assign the
eMake
IP addresses to the appropriate port.ar)
h u i

v the t G
nlast column, called Mask.
g odisplay
k. Move the scrollbar to the right to
d e
b
Enter the netmask in the
n
b field.
iMask S tu
bc e thi s
g o @ s
u u
z (h
op e
L
H ugo

Click Finish to trigger the creation of the VLAN interfaces on the two Oracle VM
Servers.

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 34
Note: A VLAN Group is an Oracle VM Manager construct, which appears in the
interface, and the VLAN Group information is stored in the Oracle VM Manager
database. There is no VLAN Group in the Oracle VM Servers. However, the creation of
a VLAN Group triggers the creation of VLAN interfaces, which are network devices
visible on the Oracle VM Servers.
l. After the job completes, examine the information on the Ports tab and the VLAN
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Segments tab:
Select the newly created VLAN Group, vlan_g1, and click the VLAN Segments
tab:

e to
cens
l i
b le
s f era
tra n
n -
no the IP address information in
Select VLAN Segment 4 in the left pane, to display
a
the right pane:
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
p e z (h
L o
u go
H
Shortly, you will create a new network using VLAN Segment 4.
2. Verify your results.
a. From your lab machine, log in to ovsvr01.example.com as root by using ssh:
[root@<your lab machine> ~]# ssh ovsvr01.example.com
root@ovsvr01.example.com's password:
Last login: Fri Dec 16 11:58:44 2011 from 192.0.2.1
Warning: making manual modifications in the management domain
might cause inconsistencies between Oracle VM Manager and the
server.
[root@ovsvr01 ~]#

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 35
b. Execute the ifconfig a | more command to display the network devices
available on the ovsvr01.example.com server:
[root@ovsvr01 ~]# ifconfig -a
Near the end of the output for the ifconfig command, examine the two new network
devices created when you configured the vlan_g1 VLAN Group from Oracle VM
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Manager:
eth3.4 Link encap:Ethernet HWaddr 00:16:3E:00:04:01
inet addr:192.168.3.101 Bcast:192.168.3.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
e to
RX bytes:0 (0.0 b) TX bytes:84 (84.0 b)
ce ns
l i
r a ble with
The eth3.4 network device has an IP address assigned to it, and is associated
VLAN segment 4.
n s fe
tra
eth3.137 Link encap:Ethernet HWaddr 00:16:3E:00:04:01
UP BROADCAST RUNNING MULTICAST nMTU:1500
o - Metric:1
RX packets:0 errors:0 dropped:0 n
a eoverruns:0 frame:0
s
a uid overruns:0 carrier:0
TX packets:0 errors:0hdropped:0
r )
a nt G
o
g b)v
collisions:0 txqueuelen:0
e bytes:0 (0.0 b)
RX bytes:0 (0.0
i b t u dTX
c
The eth3.137 network n bdeviceisdoes
S not have an IP address assigned to it, and is
b t
@VLANssegment
associated with
e h 137.
g o u
u session on ovsvr01.example.com by using the exit command:
c. Exit your
z ( h
ope
[root@ovsvr01 ~]# exit

o L Connection to ovsvr01.example.com closed.


u g [root@<your lab machine> ~]#
H
3. Create a network using VLAN segment 4, specified earlier in the vlan_g1 VLAN Group.
a. From the Oracle VM Managers UI, navigate to the Networks tab.
b. Click the Create New Network icon to launch the wizard.
c. In the Create Network window, select Create a network with VLANs only:

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 36
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
Click Next to continue. n -
d.
a no
In the Create Network window, provide a name and a Network Use for this new
network.
h a s ide
a r) t Gu
Use the values listed in the following table:

Field g ov den Value
i b t u
b is S storage_net
Network Name
c n
b e th
Network Useo@
u g u s Select the Storage check box.
h should look like the following screenshot:
The(window
z
e
Lop
u go
H

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 37
Click Next to continue.
e. In the Select VLAN Segment window, you select a VLAN segment from an existing
VLAN Group.
First, select the VLAN Group, vlan_g1, from the VLAN Group drop-down list:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
era
Next, select network.VLANSegment(4)in vlan_g1 from the VLAN Segment
drop-down list, as shown below:
n s f
- tr a
no n
a
s ide
h a
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

Click Next to continue.

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 38
f. In the Configure IP Addresses window, accept the IP address information, as entered
previously when creating the vlan_g1 VLAN Group:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
a
Click Finish to trigger the creation of the storage_net
s idenetwork.
Your new network appears now in therlist
h u on the Networks tab:
) of networks
a t G
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo
Note: You will not be using this new network, storage_net, in the rest of the lab
practices. You created this network to learn about VLAN Groups, and how VLAN Groups
are used to create networks with VLAN support. In your lab environment, the storage traffic
(NFS and iSCSI) uses the management network.

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 39
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 3: Managing Servers and Networks


Chapter 3 - Page 40
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
t ran
Practices for
o n -Lesson 4:
n
h a uide s a Storage
Managing
)
r t4G
aChapter
g v
o den

ib Stu
n b
c this
b
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 1
Practices for Lesson 4

Practices Overview
In these practices, you manage the storage needed in your Oracle VM environment to:
a. Create a clustered server pool
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

b. Create repositories
c. Provide physical disks to your virtual machines

To configure the storage needed for your lab environment, you perform the following tasks:
1. Verify the NFS storage on your lab machine.
2. Register the generic NFS file server from the Oracle VM Manager.
3. Verify the presence of iSCSI targets and LUNs on your lab machine.
e to
4. Register the iSCSI generic storage array.
cens
5. Explore available operations on physical disks. l i
6. Install the Sun ZFS Storage Appliance plug-in. b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 2
Practice 4-1: Verify the NFS Storage on Your Lab Machine

Overview
In this practice, you verify that the NFS share is available to your two Oracle VM Servers.

Tasks
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

1. Log in to your lab machine and display the exported shares using the exportfs command:
a. Start a terminal window from your lab machine.
b. Change user to root:
[vncuser@<your lab machine> - ~]$ su -
Password:
[root@<your lab machine> ~]#
e to
ns
c. Execute the exportfs command:
[root@<your Lab Machine> ~]# exportfs
l i ce
/nfsrepos1 192.168.1.0/255.255.255.0 b le
/nfsrepos1 192.0.2.0/255.255.255.0
s f era
tra n
-
The NFS share can be accessed from the 192.168.1.0 and the 192.0.2.0
n
subnets.
a no
d. Display the /etc/exports file:
h a s ide
[root@<your Lab Machine> ~]#r)cat /etc/exports
a G u
/nfsrepos1 ov den t
g
ib Stu
192.168.1.0/255.255.255.0(rw,sync,no_root_squash,no_subtree_chec
n b
c this
k) 192.0.2.0/255.255.255.0(rw,sync,no_root_squash,no_subtree_che
ck) b
u g
[root@<youro@labusmachine>
e ~]#
( h
z no_root_squash parameter allows root on the Oracle VM Servers to access
opethis network share on your lab machine.
The

o L
u g 2. Use the df k command to ensure that the NFS file system is mounted:
H [root@<Your Lab Machine> ~]# df k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 15001536 4172024 10055180 30% /
/dev/sda2 101105 45804 50080 48% /boot
tmpfs 1048664 0 1048664 0% /dev/shm
/dev/sda1 30694288 16205384 14488904 53% /mnt/cdrive
/dev/sda6 437874688 349842432 88032256 80%
/var/ovs/mount/8E88CE5160624FD88967B54953CBC078
/var/ovs/mount/8E88CE5160624FD88967B54953CBC078/sharedDisk/nfsre
pos1.img 20642428 3887492 15706360 20% /nfsrepos1
The mounted NFS share is in bold format in the output of the df k command.

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 3
Note: The NFS share that will become a repository is 20% full. The share already
contains a repository and will be rediscovered by using the Oracle VM Manager. For
the rediscover operation to succeed, the current Oracle VM Manager was installed
using the same UUID that was assigned to the Oracle VM Manager instance that
created and populated the NFS repository.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 4
Practice 4-2: Register the Generic NFS File Server from the Oracle VM
Manager

Overview
In this practice, you register the NFS file server in order to use the share exported from your lab
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

machine.

Assumptions
This practice assumes that the verification steps from Practice 4-1 were successful.

Tasks
1. Access the Storage directory tree:
a. Access the Oracle VM Manager UI.
e to
b. From the Hardware view, click the Storage tab in the navigation pane:
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 5
2. Select File Servers and right-click to launch the Register File Server Wizard:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
The wizard is launched:
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 6
3. Enter the values in the following table in the Register File Server window:
Field Value
Name nfs_server
Storage Plug-in Select Oracle Generic Network File System
from the drop-down list.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Access Host 192.0.2.1


Description NFS server on lab machine
After entering the information, your window should look like the following screenshot:

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo Click Next to continue.

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 7
4. In the Add Admin Servers window, click the double right-arrow button to select the two
available Oracle VM Servers to move them to the Selected Servers list, as shown below:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
Click Next to continue. a r) t Gu
Oracle VM Manager discovers the g ov server
NFS d e n its shares.
and
n b ib Stu
b c this
u g o@ use
z (h
e
Lop
u go
H

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 8
5. The next screen shows the discovered NFS shares.
Select the check box for nfs:/nfsrepos1 to indicate that this share already has a
repository on it, and that this repository should be automatically discovered when
registering the file server:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g v
obox e n

Note: If you do not select the icheck d
b Stu the share with the existing repository on it,
next to
you can rediscover the c b
n hon
repository is that share at a later time.
You also select an@
b
Oracle VM e t
Server to carry out the operation. Select
u g o
ovsvr01.example.com, u sfrom the drop-down list.
Click z ( h
o p e Finish to complete the operation.
L
u go
H

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 9
6. When the operation completes, a new file server appears on the File Servers tab in the
management pane.
Select the nfs_server file server to display its file systems in the File Systems section in
the management pane, as shown below:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g v
owas e n
i
You can also see the repository
b Stu
that d
discovered as part of the file server registration
process: b
cn this
b
@ viewsebutton in the navigation pane.
Click the Home
g o u folder in the navigation pane:
uthe Server Pools
h
Click
(
o p ez
L
u go
H

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 10
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s pane:
Click the Repositories tab in the management i d e
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

The discovered repository shows up in the list of repositories:

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 11
You perform more operations on this repository in a practice for the lesson titled
Server Pools and Repositories.

7. Refresh the NFS share.


The registration process of the NFS file server contains several steps:
Discover the file server and its shares.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Refresh the file server.


Refresh the file systems.
You can, however, perform a manual refresh of the NFS share.
a. Click the Hardware view shortcut in the navigation pane.
b. In the navigation pane, click the Storage tab.
c. In the navigation pane, click the expand button next to the File Servers folder.
e to
ns
d. Click the expand button next to nfs_server.
e. Right-click the nfs:/nfsrepos1 NFS share and select Refresh File System, as
l i ce
shown below:
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 12
f. In the Refresh window, select an Oracle VM Server for the refresh operation.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
Click OK to trigger the operation.
s f era
The job completes, as shown in the Jobs pane:
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

The NFS share is now ready for use.

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 13
Practice 4-3: Verify the Presence of iSCSI Targets and LUNs on Your
Lab Machine

Overview
In this practice, you verify the presence of iSCSI targets and LUNs on your lab machine. The
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

LUNs are used to create repositories and physical disks.

Tasks
1. If not already logged in, log in to your lab machine, open a terminal window, and change
user to root:
[vncuser@<your lab machine>- ~]$ su -
Password:
[root@<your lab machine> ~]#
e to
2. Issue the tgt-admin show command to display the iSCSI targets and associated LUNs:
c e ns
[root@<your lab machine> ~]# tgt-admin --show
l e li
Target 1: iqn.2011-12.com.example.mypc:tgt1
f e rab
System information:
a n s
Driver: iscsi n -t r
n o
State: ready
s a e
I_T nexus information:
h a i d
LUN information:
a r) t Gu
LUN: 0
g ov den
ib Stu
Type:bcontroller
n
b
SCSI is
c ID:thdeadbeaf1:0
u g o@SCSIu e beaf10
sSN:
z (h Size: 0 MB
op e Online: Yes
L
ugo
Removable media: No
H Backing store: No backing store
LUN: 1
Type: disk
SCSI ID: deadbeaf1:1
SCSI SN: beaf11
Size: 12583 MB
Online: Yes
Removable media: No
Backing store: /OVS/sharedDisk/iscsiPoolfs1.img
LUN: 2
Type: disk
SCSI ID: deadbeaf1:2
SCSI SN: beaf12
Size: 60130 MB
Online: Yes
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 14
Removable media: No
Backing store: /OVS/sharedDisk/iscsiRepos1.img
LUN: 3
Type: disk
SCSI ID: deadbeaf1:3
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

SCSI SN: beaf13


Size: 10737 MB
Online: Yes
Removable media: No
Backing store: /OVS/sharedDisk/physDisk1.img
LUN: 4
Type: disk
e to
ns
SCSI ID: deadbeaf1:4
SCSI SN: beaf14
l i ce
Size: 10737 MB
b le
Online: Yes
s f era
Removable media: No
tr an
n -
no
Backing store: /OVS/sharedDisk/physDisk3.img
Account information: a
s ide
ACL information: h a
a r) t Gu
ov den
ALL
g
ib Stu
Target 2: iqn.2011-12.com.example.mypc:tgt2
n b
c this
System information:
b
u g o@ use
Driver: iscsi
State: ready
z (h
ope
I_T nexus information:
L LUN information:

H ugo LUN: 0
Type: controller
SCSI ID: deadbeaf2:0
SCSI SN: beaf20
Size: 0 MB
Online: Yes
Removable media: No
Backing store: No backing store
LUN: 1
Type: disk
SCSI ID: deadbeaf2:1
SCSI SN: beaf21
Size: 10737 MB
Online: Yes
Removable media: No

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 15
Backing store: /OVS/sharedDisk/physDisk2.img
LUN: 2
Type: disk
SCSI ID: deadbeaf2:2
SCSI SN: beaf22
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Size: 10737 MB
Online: Yes
Removable media: No
Backing store: /OVS/sharedDisk/physDisk4.img
Account information:
ACL information:
ALL
e to
ns
[root@<your lab machine> ~]#

l i ce
Note: There is no information in the I_T nexus information section in the output of b le
the tgt-admin --show command because there are no initiator target connections
s f era
established yet.
tra n
n -
a
The available targets and LUNs are summarized in the no table:
following
Target h
LUN - )Sizeas uide
v ar nt G
go tude
1 0 - Size 0 MB (controller)
i b
b is S
1 - Size 12583 MB
c n
b 60130e MB
@
2 - Size th
o s
ug3 - Size 10737
u MB
z ( h
ope
4 - Size 10737 MB
L
ugo
2 0 - Size 0 MB (Controller)
H 1 - Size 10737 MB
2 - Size 10737 MB

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 16
Practice 4-4: Register the iSCSI Generic Storage Array

Overview
In this practice, you register your lab machine as an iSCSI storage array. This is considered a
generic storage array because it does not use a Storage Connect vendor plug-in. It uses the
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

standard generic SCSI plug-in, which is already available in each installed Oracle VM Server.

Tasks
1. Prepare to register the iSCSI storage array.
a. Access the Oracle VM Manager UI.
b. Access the Storage tab from the Hardware view:

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
ugo
Note: If Unmanaged iSCSI Storage Array and Unmanaged FibreChannel Storage
H Array do not appear, as they do in the screenshot above, click the expand button next
to Storage Arrays.
c. Click the expand button next to Unmanaged iSCSI Storage Array and Unmanaged
FibreChannel Storage Array. Click all expand buttons to display the entire tree
structure for these default storage arrays:

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 17
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
-
LUNs that may appear under these unmanaged storage arrays are seen by the Oracle
n
no
VM Servers, but no other information is available to the Oracle VM Manager. In your
a
storage arrays. h a s ide
lab environment, there should be no LUNs appearing in either of the two unmanaged

a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 18
2. Launch the registration of your iSCSI storage array by right-clicking Storage Arrays and
selecting Register Storage Array:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
3. (h
In the Register Storage Array window, enter the information about your storage array.
z
LopeThis information is summarized in the following table:

H ugo Field Value


Name iscsi_server
Description iSCSI server on lab machine
Storage Type Select iSCSI Storage Server from the drop-
down list.
Storage Plug-in Select Oracle Generic SCSI Plugin from the
drop-down list.
Access Host 192.0.2.1
Access Port 3260

a. Enter the name and a description for the storage array.

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 19
b. Select iSCSI Storage Server from the Storage Type drop-down list, as shown below:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
o n -
a nPlug-in
c. Select Oracle Generic SCSI Plugin from the Storage
a s d e drop-down list:
r ) h u i
a
v ent G
g o
b i b Stud
b cn this
u g o@ use
z (h
op e
L
H ugo

The Access Information section becomes active.


d. In the Access Information section, enter 192.0.2.1 as the Access Host, and 3260 as
the Access Port (the default port used by the iSCSI protocol).

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 20
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
Leave the Use Chap check box deselected. n -
e. Click Next to move to the next window:a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

4. In the Add Admin Servers window, you select the Oracle VM Servers that can connect to
this iSCSI storage server.
a. Click the double right-arrow button to move both Oracle VM Servers to the Selected
Servers pane.
b. Click Finish to trigger the registration operation, as shown below:

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 21
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
tab in the management pane: a no
The job completes and the new iSCSI storage server now appears on the Storage Arrays

h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 22
5. In the navigation pane, click the expand button under iscsi_server to show the available
subfolders, as shown below:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
No LUNs have appeared yet. a no
6. Refresh the new iSCSI storage array. h a s ide
a r) selectG u
a. Right-click the new iscsi_server,
ov den
and t Refresh Storage Array:
g
ib Stu
n b
c this
b
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 23
b. Click OK in the Confirmation window:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
a
Note: During the Refresh operation, the storage
s arrayidiselocked, as shown by the lock
icon next to the storage array. ) h
r tG u
v aOracle
7. Edit the default access group to allow
g o denVM Servers to access the physical disks
the

n b ib Stu
(LUNs) in the iSCSI storage array.

b
a. In the navigation pane, select s
c thiiscsi_server and click the Access Groups tab in the
management@
u g o pane:use
z (h
op e
L
H ugo

b. When the Access Groups information appears, adjust the panes to view the three
panes: Access Group, Storage Initiators, and Physical Disks.
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 24
Note: If necessary, use the collapse pane button for the Jobs pane to show the Access
Groups panes.
c. On Access Groups, select Default access group @ iscsi_server, and click the Edit
Access Group icon:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
d. -
In the Edit Access Group window, click the Storage Initiators tab:
n
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 25
e. Click the double right-arrow button to move the two initiators from the Available
Storage Initiators pane to the Selected Storage Initiators pane:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
g @ se
oinitiator,
h u
Note: Each uone for each Oracle VM Server, acts as an iSCSI client to access
z (
resources from the iSCSI server on your lab machine.
p e
o Click OK to trigger the edit operation for the access group.
L
H ugo The two initiators should now appear in the Storage Initiators pane on the Access
Groups tab:

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 26
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr
Note: If the initiators do not appear in the Storage Initiators pane, click the Physical an
n -
no
Disks tab and then the Access Groups tab to force a refresh.
f. a
Click the Physical Disks tab to display the physical disks now seen by the Oracle VM
s ide
Servers:
h a
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

Note: If the physical disks do not appear on the Physical Disks tab, the operation may
not have completed. Wait until the lock is no longer active on iscsi_server and
display the list of physical disks again. This could take several minutes.

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 27
8. Determine the usage for the available physical disks.
The physical disks made available by the new iSCSI server on your lab machine are used
for several upcoming lab exercises.
The disk usage is summarized in the following table:
Physical Disk or LUN Usage
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

IET (1) Server Pool File System


IET (2) Repository
IET (3) Virtual Disk
IET (4) Disk cloning
IET (5) Resource for future virtual machine (pvm1)
IET (6) Delete Disk operation, disk cloning
e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 28
Practice 4-5: Explore the Available Operations on Physical Disks

Overview
In this practice, you explore what can be done with the new physical disks exposed by the iSCSI
server on your lab machine. Operations are limited because you do not have server pools or
repositories configured yet.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Tasks
1. Rename physical disks.
a. Access the list of physical disks available from your iSCSI server:
From the Hardware view, click the Storage tab in the navigation pane.
Select iscsi_server in the Storage Arrays folder.
In the management pane, click the Physical Disks tab.
e to
b. Select the first physical disk, IET(1), and click the Edit Physical Disk icon:
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
e
oc.p In the Edit Physical Disk pop-up window, change the name of the LUN (physical disk)
L
ugo
from IET(1) to serverPoolFs, and add a comment in the Description field.
H Optionally, add more information in the Extra Information field.
Do not share this physical disk by selecting the Shareable check box, because this disk
will be used as a server pool file system. Share only the physical disks that are used by
virtual machines, if the virtual machines guest OS supports it.

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 29
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
Click OK to complete the edit operation.
h a s ide
d. Repeat the edit operation with IET(2),r)renaming iturepositoryLun and adding a
comment in the Description field: va t G
g o den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

Click OK to complete the operation.


2. Examine the other operations allowed on the physical disks.

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 30
The allowed operations on a physical disk are shown as icons on the toolbar of the Physical
Disks tab:
Delete
Refresh
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Edit
Clone

Edit Physical Disk: To change the name, description, and shareable flag for the
physical disk
e to
Delete Physical Disk: To remove the disk from the list of available physical disks
cens
l i
Note: For a generic storage array, you usually delete a physical disk from Oracle
b le
era
VM Manager before removing the disk by using the utilities on the iSCSI server.
The delete function from Oracle VM Manager does not actually destroy the disk
n s f
tr
because you do not have management capabilities when working with a generic
- a
storage array.
no n
a
s ide
If you delete a physical disk from a storage array managed with a Storage Connect
h a
vendor plug-in, the disk is deleted from the Oracle VM Manager and from the
a r) t Gu
storage array, depending on the functionality of the plug-in. The functionality of

g ov den
each vendor plug-in is described in the vendor documentation.

n b ib Stu
Clone Physical Disk: To copy the physical disk to another physical disk that is of the
b c this
same size or bigger

u g o@ use
Refresh Physical Disk: If you make a modification on the LUN from the iSCSI

z (h
server, use this function to force Oracle VM Manager to register the change for each

ope
Oracle VM Server with access to this LUN in the storage array.
3.
o L Delete a physical disk from your generic storage array.
u g a. Select IET(6) and click the Delete Physical Disk icon:
H

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 31
b. Click OK in the Delete Confirmation pop-up window:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
era
The physical disk no longer appears in the list of physical disks for the generic storage
array:
n s f
- tr a
no n
a
s ide
h a
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 32
4. Refresh the generic storage array.
a. Right-click iscsi_server in the navigation pane and select Refresh Storage Array
from the shortcut menu:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
b. Click OK in the Confirmation window: r)
a G u
ov den t
g
ib Stu
n b
c this
b
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 33
The storage array is locked during the refresh operation:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
c. Check the results of the refresh action. n -
a no
Wait until the iscsi_server storage array is no longer locked.
h a s ide
To force a refresh of the physical disk list, click another tab, and then click the Physical
Disks tab again.
a r) t Gu
g ov den
The physical disk reappears, as shown below:

n b ib Stu
b c this
u g o@ use
z ( h
Lope
H ugo

The physical disk is now named IET(1).


Note
The physical disk reappeared because the previous delete operation did not destroy
the physical disk on the array. It just removed it from the Oracle VM list of accessible
physical disks on the generic iSCSI storage array. The refresh operation on the generic
iSCSI storage array restored access to the physical disk.
This situation would not occur when dealing with a storage array managed by a vendor
plug-in, because a vendor plug-in provides management access to the storage array.
When using a vendor-plug-in, the delete operation results in the destruction of the
physical disk.
5. Clone a physical disk.
Note: All physical disks are empty and though cloning is already allowed at this point, a
cloning operation would simply copy an empty physical disk to another physical disk.
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 34
a. Launch the cloning operation by selecting IET(1) (formerly known as IET(6)) and
clicking the Clone Physical Disk icon:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

b. The Clone Physical Disk window appears:


e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo You can clone a physical disk to another physical disk, or to a repository.

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 35
c. In the Clone Physical Disk window, enter a name for the clone. In this example, the
clone name is clone of IET(1), as shown below:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
d. -
Leave Physical Disk as the Clone Target Type.
n
e. no
To clone a physical disk in a generic storage array to Physical Disk, you must select
a
h a s ide
another physical disk as the target for the cloning operation. There is a search function

a r) t Gu
that allows you to select a physical disk within the same storage array, or a physical

ov den
disk from another storage array.
g
ib Stu
Click the Search button and find IET(4), and select it:
n b
c this
b
u g o@ use
z (h
Lope
H ugo

Click OK to exit the Search Clone Target window and return to the Clone Physical Disk
window.
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 36
f. Click the button of the drop-down list for specifying the Clone Type:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
Notice that Thin Clone is not available for generic storage arrays.
s f era
tr
Click the Cancel button to cancel the operation, because the cloning takes too long in an
n -
your lab environment.
a no
h a s ide
Note: Thin cloning is not supported for physical disks in generic iSCSI storage arrays. In a
practice for the lesson titled Server Pools and Repositories, you clone virtual disk by using
a r) t Gu
thin cloning and the operation is near instantaneous.
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 37
Practice 4-6: Install the Sun ZFS Storage Appliance Plug-In

Overview
In this practice, you install the vendor plug-in for the Sun ZFS Storage Appliance. You perform
this operation to demonstrate the differences when registering a generic storage array versus a
storage array managed with a vendor plug-in. Because there is no Sun ZFS Storage Appliance
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

in the lab environment, you cancel the registration process after examining the changes
introduced by installing the Sun ZFS Storage Appliance plug-in in your Oracle VM environment.

Tasks
1. FTP the plug-in from the Oracle VM Manager.
a. Open a terminal window on your lab machine.
b. Change user to root.
e to
ns
c. Use the ssh command to access the first Oracle VM Server,
ovsvr01.example.com:
l i ce
[root@<your lab machine> ~]# ssh ovsvr01.example.com
b le
root@ovsvr01.example.com's password: oracle
s f era
Last login: Wed Jan 11 17:55:42 2012 from 192.0.2.1
tra n
n -
no
Warning: making manual modifications in the management domain
a
s ide
might cause inconsistencies between Oracle VM Manager and the
server. h a u
d. Start the sftp command to accessa r) Oracle
t G
ov den
your VM Manager, where the Sun ZFS
g
Storage Appliance plug-in islocated:
ib Stu
[root@ovsvr01 ~]# n b
c thissftp ovmmgr.example.com
Connecting tob ovmmgr.example.com...
u g o@ usof
The authenticity
e host 'ovmmgr.example.com (192.0.2.103)'
z (h be established.
can't
e
op RSA key fingerprint is
L
ugo
6b:15:92:87:90:18:82:73:95:2c:5e:e8:a1:0b:9d:14.
H Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ovmmgr.example.com,192.0.2.103'
(RSA) to the list of known hosts.
root@ovmmgr.example.com's password: oracle
sftp>
e. Change directory to /stage and transfer the plug-in package:
sftp> cd /stage
sftp> ls
lost+found osc-oracle-s7k-0.1.2-41.el5.noarch.rpm
ovm-console-1.0.0-2.x86_64.rpm ovmm-3.0.3-installer-b126.iso
tightvnc-java-1.3.9-3.noarch.rpm
sftp> get osc-oracle-s7k-0.1.2-41.el5.noarch.rpm
Fetching /stage/osc-oracle-s7k-0.1.2-41.el5.noarch.rpm to osc-
oracle-s7k-0.1.2-41.el5.noarch.rpm

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 38
/stage/osc-oracle-s7k-0.1.2-41.el5.noarch.rpm 100% 132KB
132.1KB/s 00:00
sftp>
f. Exit the sftp program:
sftp> quit
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

[root@ovsvr01 ~]#
2. Install the Sun ZFS Storage Appliance plug-in on ovsvr01.example.com.
a. Check whether a previous plug-in is already installed:
[root@ovsvr01 ~]# rpm -qa | grep -i s7k
[root@ovsvr01 ~]#
The rpm command does not return any data. There is no Sun ZFS Storage Appliance
plug-in already installed. If you are upgrading the plug-in, remove the previous package
e to
before installing the newer package.
cens
b. Install the package by using the rpm command: l i
b le
era
[root@ovsvr01 ~]# rpm -ivh osc-oracle-s7k-0.1.2-
41.el5.noarch.rpm
n s f
- tra
warning: osc-oracle-s7k-0.1.2-41.el5.noarch.rpm: Header V3 DSA
n
signature: NOKEY, key ID 1e5e0159
a no
Preparing...
h a s ide
########################################### [100%]
a r) t Gu
ov den
1:osc-oracle-s7k
g
########################################### [100%]
ib Stu
[root@ovsvr01 ~]#
n b
cthe second isOracle VM Server, ovsvr02.example.com:
b t h
o@ use
3. Repeat this process on

h u
a. Exit from govsvr01.example.com by using the exit command.
(
o p ez ovsvr02.example.com by using the ssh command.
b. Access

o L c. FTP the plug-in from ovmmgr.example.com by using the sftp command.


H ug d. Install the plug-in on ovsvr02.example.com.
e. Exit from ovsvr02.example.com by using the exit command.
4. From the Oracle VM Manager, rediscover the Oracle VM Servers. This operation refreshes
the list of plug-ins available on the Oracle VM Servers.
a. If Oracle VM Manager is not running, restart the UI from your lab machine using the
http://192.0.2.103:7001/ovm/console URL in your browser.
b. Access the Hardware view.

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 39
c. On the Hardware tab, click the expand button of the Unassigned Servers folder to
display the available Oracle VM Servers:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no Server:
h a s ide
d. Right-click ovsvr01.example.com and select Rediscover

a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 40
The job launches immediately. The Oracle VM Server is locked during this operation:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Locked
server

e to
Job still in
ce ns
i
progress
l
b le
s f era
tr an
n -
no
e. Repeat the Rediscover operation for ovsvr02.example.com.
a
5. s ide
Attempt to register a new storage array and note the changes introduced by the presence
h a
a r) t Gu
of the new Sun ZFS Storage Appliance plug-in.

g ov den
a. From the Hardware view, click the Storage tab.

n b ib Stu
b. Select the Storage Arrays folder, right-click it and select Register Storage Array:

b c this
u g o@ use
z (h
Lope
H ugo

The Register Storage Array window appears:

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 41
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
c. n -
Select iSCSI Storage Server from the Storage Type drop-down list:
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 42
d. Select Sun ZFS Storage Appliance SCSI from the Storage Plug-In drop-down list.
Notice what happens when the Sun ZFS Storage Appliance plug-in is selected:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
o n -
a nactive:
The Administration Information section is
a s now
d e In thisarray.
section, you specify
the information to configure the control
r ) h path to
u ithe storage
The Access Information section v a is
n
also G
t In this section, you specify the
active:
information to configure o
gthe data e
d to the storage array.
path
b i b t u
makes senseb ctontheData
The Plugin Private
t h s Sarray.
ifield
storage
is active: In this field, you enter information that
In the case of the Sun ZFS Storage
g o @ s e
Appliance,
u youu supply the target group and target name that were configured on
(hthe storage appliance, for use by your Oracle VM environment.
z anywhere in the Plugin Private Data field to display the associated hint:
e.peClick
L o
u go
H

In this example, the target group is called OVM-iSCSI, and the target is called OVM-
iSCSI-Target. The target and the target group must be configured on the Sun ZFS
Storage Appliance before you attempt to register the Sun ZFS Storage Appliance as a
storage array from the Oracle VM Manager.
f. Exit the registration wizard by clicking the Cancel button.

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 43
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 4: Managing Storage


Chapter 4 - Page 44
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
t ran
Practices for o n -Lesson 5:
Server
n
aPools
a s d e and
a nt G r) h ui
Repositories
o v
i b de 5
g tuChapter
c n b is S
@ b e th
u g o u s
z ( h
Lope
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 1
Practices for Lesson 5

Practices Overview
In these practices, you create an Oracle VM server pool and repositories by using the Oracle
VM Manager.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

The following points summarize the rules for creating repositories:


NFS repositories can be created or rediscovered even if no server pool has yet been
created.
Creating repositories on an iSCSI or Fibre Channel physical disk (LUN) requires an
existing clustered server pool.
Repositories can also be created on local storage. Unused internal disks in the Oracle
VM Server are available as local storage.
You can create a repository on local storage for clustered or nonclustered server pools.
e to
The practices follow this sequence:
cens
l i
1. Refresh the rediscovered NFS repository.
b le
2. Create a clustered server pool.
s f era
3. Create an iSCSI repository.
tr an
4. Import resources into the repositories.
n -
a no
5. Perform disk and cloning operations for resources in the repositories.
6. Create a repository on local storage.
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
Lope
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 2
Practice 5-1: Refresh the Rediscovered NFS Repository

Overview
In this practice, you refresh the NFS repository that you rediscovered in an earlier practice.

Assumptions
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

This practice assumes that the NFS share has an existing repository on it. Recall that the NFS
share was configured as part of the registration process for the NFS server on your lab
machine, and that, as part of the registration process, you rediscovered the existing repository
on the NFS share.
The existing repository contains metadata that includes the UUID of the Oracle VM Manager
that was used to create it. This is why you used a specific UUID parameter when you installed
the Oracle VM Manager in the practices for the lesson titled Planning and Installation. The
UUID in the repository metadata on the NFS share must match the UUID of your current Oracle
e to
VM Manager, or you cannot reclaim this repository.
cens
l i
Tasks
b le
1. Access the Repositories tab.
s f era
a. Click the Home view:
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 3
b. Select the Server Pools folder in the navigation pane, and click the Repositories tab in
the management pane.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h i d e as shown below:
c. Oracle VM Manager has already rediscoveredsthe repository,
a
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo
Note: If your NFS repository does not show up in the list of existing repositories, it is
because you did not select the NFS share in step 5 for Practice 4-2. You can
rediscover the NFS repository now by performing the following steps:
i. In the Home view, click the Server Pools folder in the navigation pane.
ii. In the right pane (management pane), click the Repositories tab.

iii. Click the Discover Existing Repository icon on the Repositories toolbar.
iv. In the Discover Repository window, click the Search icon.
v. In the Search window, select nfs_server for File Server: The NFS share
should appear. Select this share and click OK.
vi. Back in the Discover Repository window, click OK to trigger the rediscover
operation.
The repository should now appear on the Repositories tab.

2. Present the repository to the Oracle VM Servers.


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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 4
In order to perform any operation on a repository, you must have presented it to at least
one Oracle VM Server with access to the repository. In this step, you present the NFS
repository to both your Oracle VM Servers.
a. On the Repository tab, select the nfs_repos repository and click the
Present-Unpresent Selected Repository icon.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
b.
n -
Click the double right-arrow button to move your two Oracle VM Servers to the
Present to Server(s) pane:
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 5
c. Click OK to trigger the present-unpresent operation:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a G u
rin) the Server
v
The Oracle VM Servers are now listed
o e n t section for the NFS repository:
i g
b Stu d
b
cn this
b
u g o@ use
z (h
op e
L
H ugo

Note: At this point, the Oracle VM Manager owns the repository, but does not know its
contents.
3. Refresh the contents of the NFS repository.
a. On the Repositories tab, select the nfs_repos repository and click the Refresh
Selected Repository Contents icon:

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 6
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
The Refresh Repository nfs_repos job completes successfully as seen in the Jobsns
pane: l i ce
r a ble
n s fe
n - tra
a no
h a s ide
a r) t Gu
g ov den
n b ib Sandtudisplay the subtabs for the Repository.
b. Select the nfs_repos repository
b c button
Note: Click the collapse
t h isfor the Jobs pane to view the repositorys subtabs.
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 7
c. Click the ISOs subtab:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr
There is already an ISO file in the NFS repository. In the next step, you rename the an
ISO file. n -
4. a no
Recall that you did not create the NFS repository, but you rediscovered the repository by
using the Oracle VM Manager.
h a s ide
a r) t Gu
The name for the ISO file shows up as a series of hexadecimal digits, forming a unique
g ov den
identifier (UUID). The original, friendly name that was stored initially in the database of a

n b ib Stu
previous Oracle VM Manager installation, was lost when you did a fresh installation of
Oracle VM Manager.
b c this
u g o@ use
a. Select the ISO file and click the Edit icon:

z (h
Lope
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 8
b. Replace the ISO name with Enterprise-R5-U6-Server-x86_64-dvd.iso, as
shown below:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
Click OK to trigger the Edit operation. tr an
n -
no
The ISO file now shows up with its restored friendly name on the ISOs subtab.
a
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
e
op You use this ISO file in a practice for the lesson titled Managing Virtual Machines, to
L
H ugo install Oracle Linux 5 Update 6 in a virtual machine.

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 9
Practice 5-2: Create a Clustered Server Pool

Overview
In this practice, you create a clustered server pool and add the two Oracle VM Servers to this
pool.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Creating the server pool as a clustered server pool offers the following benefits:
High availability for virtual machines running on the servers in the clustered server pool
Ability to create repositories and physical disks for virtual machines on storage shared
by members of the server pool
All server pools, whether they are clustered or nonclustered, also offer the following benefits:
Anti-Affinity feature
Live Migration
Dynamic Resource Scheduler (DRS) and Dynamic Power Management (DPM) e to
The Live Migration, Anti-Affinity, and High Availability features are exercised in the practices for
cens
l i
the lesson titled Managing Virtual Machines.
b le
Assumptions s f era
tra n
-
This practice assumes that there is a physical disk, which is at least 12 GB in size, to act as a
n
server pool file system.
a no
h a s ide
The iSCSI storage array that you configured in a practice for the lesson titled

a r) t Gu
Managing Storage, presented a LUN of 12.58 GB. You renamed this LUN
serverPoolFs to declare its intended usage.
g ov den
You also need an available IP address for the clustered server pool. This IP address must be on
the management network.
n b ib Stu
b c this
Tasks
u g o@ use
(hserver pool.
1. Create the
z
a.peFrom the Home view, select the Server Pools folder in the navigation pane.
o
L b. In the management pane, click the Server Pools tab:
u g o
H

Currently, there are no server pools in your environment.

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 10
c. In the navigation pane, right-click Server Pools and select Create Server Pool from the
shortcut menu:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g
d. In the Create Server Pool window,
ov provided e n
information for the new server pool. This
i b
b is S
information is summarized t u
in the following table:
Field b c n
@ e th Value
g
Server PooluName
o u s Pool1
( h
o p ez IP Address for the Pool
Virtual 192.0.2.155
L
ugo
Keymap English, United States
H Active Cluster Select this check box.
Storage for Server Pool Select the Physical Disk option.
Storage Location Using the search function, find
serverPoolFs.
After entering values in the top part of the window, your screen should look like the
following screenshot:

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 11
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a
e. Click the Search button to find the physical disk ethe server pool file system.
s to useidfor
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 12
f. In the Select Physical Disk window, select iscsi_server from the drop-down list, as
shown below:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
ovOK todcontinue:
g. Select serverPoolFs, and click
g e n
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

You are returned to the main window.

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 13
h. Add an optional description for your server pool, and click Next.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a
The Oracle VM Manager is dispatchingr)an Oracle
G u Server to create the server pool:
VM
ov den t
g
ib Stu
n b
c this
b
u g o@ use
z (h
op e
L
ugo
After the server pool is created, the Add Servers window appears.
H

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 14
i. In the Add Servers window, click the double right-arrow button to move the two
available Oracle VM Servers to the list of selected servers, as shown below:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov of dtheenserver pool.
Click Finish to complete the creation
b ib on the
The new server pool appears
S u Pools tab.
tServer
n
bca new s
hi pool triggered three jobs, as seen in the Jobs pane
Notice that creating
@ e tserver
below:
u g o u s
z (h
op e
L
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 15
All three jobs should complete successfully.
Note: In your lab environment, the server pool creation jobs take several minutes to
complete.
j. In the navigation pane, click the expand button for the Server Pools folder, and then
the expand button for Pool1:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
g o@
k. Select Pool1
u u se pane, and view the information on the Info tab in the
in the navigation

z (h
management pane:

Lope
H ugo

Notice the following items:


Server Count: 2 (ovsvr01.example.com and ovsvr02.example.com)
Clustered: Yes
Master Server: ovsvr01.example.com
Virtual IP: 192.0.2.155
Pool File System Storage Device: serverPoolFs
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 16
Pool File System Ownership: 0004fb00000100002390716cb97d53cf
The Oracle VM Manager owns the server pool file system, like it owns the
repositories.
l. Also examine the information on the Servers tab and other available tabs in the
management pane.
Server Pool Notes
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

After the server pool is created, you cannot change the virtual IP address selected for
the server pool.
You can, however, make the following changes to your server pool:
Change the server pool name
Change the server pool description
Change the master server
Change the keymap, which determines the key mapping when connecting to a e to
virtual machines console
cens
l i
Specify whether or not to enable the Secure VM Migrate feature
b le
To change the master server, perform the following steps:
s f era
Note: These steps are provided to you to complete the information about server pools. Do
tr an
not change the master server at this time.
n -
no
Select the server pool in the navigation pane and click the Edit icon on the toolbar.
a
a s ide
In the Edit the Server Pool window, select a new master server from the Master
h
Server drop-down list.
a r) t Gu
g ov den
Click OK to complete the edit operation.

n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 17
Practice 5-3: Create an iSCSI Repository

Overview
In a previous practice, you renamed the 60 GB iSCSI physical disk repositoryLun. In this
practice, you create a repository by using this iSCSI physical disk (LUN).
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Tasks
1. Launch the Create New Repository Wizard:
a. Access the Home View, click the Server Pools folder in the navigation pane, and click
the Repositories tab in the management pane.
b. Click the Create New Repository icon, located on the toolbar on the Repositories tab.

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
2. Create the newo
g @ se
repository:
h u u
(
Use the information in the following table to create your new repository:

o p ez Field Value
L
ugo Repository Name
iscsi_repos
H Repository Location Select the Physical Disk option.
Server Pool Select Pool1 from the drop-down list.
Physical Disk Using the search function, find
repositoryLun.

a. In the Repository information window, provide the repository name and the repository
location.
b. Select Pool1 (the only possible selection) for Server Pool.

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 18
c. Click the Search button to locate the physical disk to use for the repository:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
d. In the Select Physical Disk pop-up window, select
h a i d e
s iscsi_server from the Storage
Array drop-down list:
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 19
e. Select repositoryLun from the list of physical disks available from iscsi_server:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
Notice that the physical disk nameda r) t Gu does not appear in the list,
serverPoolFS
because it is now in use as ag
ov pooldefilensystem.
server
Click OK to continue. bib
n S tu
ac
f. Optionally, enter b s
thifor the new repository, and click Next:
description
g o @ s e
u u
z (h
op e
L
H ugo

The Oracle VM Manager dispatches an Oracle VM Server to create the new repository:
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 20
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

This action may take several minutes in your lab environment.


Warning
If the Repository Information window reappears, wait until the Present to
Servers window appears before proceeding.
If the Present to Servers window does not appear within a few minutes, log in to
the ovsvr01.example.com and the ovsvr02.example.com servers, and
find out if the repository is still being created.
e to
Example for ovsvr01.example.com:
cens
l i
[root@EDT3R17P1 ~]# ssh ovsvr01.example.com
b le
root@ovsvr01's password:
s f era
Last login: Thu Feb 9 16:00:05 2012 from 192.0.2.1
tr an
n -
Warning: making manual modifications in the management domain
a no
might cause inconsistencies between Oracle VM Manager and the
server.
h a s ide
a r) t Gu
[root@ovsvr01 ~]# ps -eaf | grep mkfs

root
g ov den
17952 17928 0 16:28 ?
00:00:00 /sbin/mkfs.ocfs2

n b ib Stu
-b 4096 -L OVS86b1723b7768d -U 0004fb000005000068e86b1723b7768d
c this
-T vmstore /dev/mapper/SIET_VIRTUAL-DISK_beaf12
b
root
u g o@ use
18154 18117 0 16:29 pts/0 00:00:00 grep mkfs

z (h
[root@ovsvr01 ~]# ps -eaf | grep mkfs

ope
root 17952 17928 0 16:28 ? 00:00:00 /sbin/mkfs.ocfs2
L -b 4096 -L OVS86b1723b7768d -U 0004fb000005000068e86b1723b7768d

ugo
-T vmstore /dev/mapper/SIET_VIRTUAL-DISK_beaf12
H root 18228 18117 11 16:29 pts/0 00:00:00 grep mkfs
[root@ovsvr01 ~]# ps -eaf | grep mkfs
root 17952 17928 0 16:28 ? 00:00:00 /sbin/mkfs.ocfs2
-b 4096 -L OVS86b1723b7768d -U 0004fb000005000068e86b1723b7768d
-T vmstore /dev/mapper/SIET_VIRTUAL-DISK_beaf12
root 18256 18117 0 16:29 pts/0 00:00:00 grep mkfs
[root@ovsvr01 ~]# ps -eaf | grep mkfs
root 17952 17928 0 16:28 ? 00:00:00 /sbin/mkfs.ocfs2
-b 4096 -L OVS86b1723b7768d -U 0004fb000005000068e86b1723b7768d
-T vmstore /dev/mapper/SIET_VIRTUAL-DISK_beaf12
root 18286 18117 31 16:30 pts/0 00:00:01 grep mkfs
[root@ovsvr01 ~]# ps -eaf | grep mkfs
root 18311 18117 31 16:30 pts/0 00:00:01 grep mkfs

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 21
The mkfs.ocfs2 command has completed when the command no longer
appears in the output of the ps command. At this point, the repository has been
created. Wait a minute or so for the job clean up steps to complete.
Click the cancel button in the Repository Information window.
In the Jobs pane, check whether the job to create the repository is still running.
Wait until the job completes before proceeding.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

You must now manually present the new repository to both Oracle VM Servers.
g. On the Repositories tab, select the new repository, iscsi_repos, and click the
Present-Unpresent Selected Repository icon:

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g
h. Move the two Oracle VM Servers ovto thedPresent
e n to Server(s) pane by clicking the
b ib Stu
double right-arrow button:
n
b c this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 22
Click OK to trigger the operation.
When the two jobs complete, both Oracle VM Servers appear in the Server section on
the Repositories tab:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
Your new repository is now ready to use.

n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 23
Practice 5-4: Import Resources into the Repositories

Overview
In this practice, you import a template into the new iSCSI repository. The template contains the
files for a virtual machine that was built by using the Oracle Linux JeOS (Just Enough OS), with
Oracle Linux Release 5 Update 3.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

A template built with JeOS contains the minimum set of packages for a functional operating
system. The JeOS template is then customized by adding the packages and services needed to
run a particular application.
Note: Virtual machines built by using JeOS are used with Oracle Virtual Assembly Builder to
accelerate the deployment of virtual, multi-tier environment. More information about Oracle
Virtual Assembly Builder is available at
http://www.oracle.com/us/products/middleware/application-server/virtual-assembly-builder-
067878.html.
e to
cens
Assumptions
l i
You can use the FTP, HTTP, or HTTPS protocol to import ISO files, templates, assemblies and b le
virtual disk images into any repository. In your lab environment, you use the HTTP protocol for
s f era
the import operation.
tra n
n -
The tasks in this practice assume that there is a web server accessible from your Oracle VM
no
Servers. In your lab environment, your lab machine acts as the web server.
a
h a s ide
Tasks
ar) directory
G u
1. Copy the template into the web servervdefault
o e n t on your lab machine.
a. Open a terminal window ion g
byour lab t u d
machine.
n b s S
bc e thi
b. Change user to root:
@
g o
[vncuser@<your
u u s machine> - ~]$ su -
lab
(h
Password:
z
o p e[root@<your lab machine> ~]#
o L c. Check whether the httpd service is running:
u g
H [root@EDT3R17P1 seed_pool]# service httpd status
httpd (pid 4885 4883 4882 4880 4878 4877 4876 4875 4874) is
running...
[root@EDT3R17P1 seed_pool]#
If the service is not running, start it:
[root@EDT3R17P1 seed_pool]# service httpd start
d. Change directory to /OVS/seed_pool and execute the ls command:
[root@<your lab machine> ~]# cd /OVS/seed_pool
[root@<your lab machine> seed_pool]# ls
clean.sh
deploy.sh
EL53_i386_xVM_jeos.tgz
OVM_dom0_dns_dhcp_config_files_4_3Node_RAC_GNS.tgz
OVS-3.0.3-trunk-123.iso

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 24
updateVM.tgz
Note: Your output will differ.
e. Copy the EL53_i386_xVM_jeos.tgz template to the /var/www/html directory,
the default directory for httpd:
[root@<your lab machine> seed_pool]# cp EL53_i386_xVM_jeos.tgz
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

/var/www/html
[root@<your lab machine> seed_pool]#

2. Using the Oracle VM Manager, import the JeOS template into the iSCSI repository.
a. From the Home view, access the Repositories tab.
b. Click the Templates tab.
c. On the Templates tab, click the Import Template icon, as shown below:
e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
Lope
H ugo
d. In the Import Template window, enter the information summarized in the following
table:
Field Value
Repository iscsi_repos (from the drop-down list)
Server ovsvr01.example.com (from the drop-down list)
Template URLs http://192.0.2.1/EL53_i386_xVM_jeos.tgz

Your filled screen should look like the following screenshot:

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 25
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
Click OK to trigger the import operation.
s f era
tra
The import operation goes through a downloading stage, followed by an unpacking n
n -
stage:
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
( h
The operation
z
takes approximately 15 minutes.

ope
After the import operation completes, the new template appears on the Templates tab:
L
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 26
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
o Managing Virtual Machines.
This template is used in the practices for the lesson n
titled
a
s ide
h a
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 27
Practice 5-5: Perform Disk and Cloning Operations for Resources in
the Repositories

Overview
In this practice, you create two virtual disks in your iSCSI repository, and clone one of these
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

disks using thin cloning.


The two virtual disks are used in the practices for the lesson titled Managing Virtual Machines
to create a virtual machine.

Tasks
1. Create two virtual disks.
a. From the Home view, select the Server Pools folder in the navigation pane.
b. In the management pane, click the Repositories tab and select the iSCSI repository,
e to
named iscsi_repos.
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

Note: If you cannot see the subtabs for the repository, click the collapse button for the
Jobs pane. This shows the subtabs for the repository. Use the pane resize bar to move
these subtabs upward.
c. Click the Virtual Disks subtab for the iSCSI repository.

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 28
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

There is already a virtual disk in the iSCSI repository. This is the virtual disk for the
JeOS template, which you imported previously.
d. Click the Create Virtual Disk icon, as shown below:
e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b
e. In the Create Virtual t h is enter the information for creating the virtual disk.
cDisk window,
g o@is summarized
This information
u u se in the following table:

z (h Field Value
p e
oName
L pvm1_disk1

H ugo Size in GB 10
Description For the pvm1 virtual machine
Shareable Leave the check box deselected.
Allocation Type Select Non-sparse Allocation from the
drop-down menu.
Note: In these steps, you choose Non-sparse Allocation, which means that when the
disk is created, all space is allocated. With a sparse allocation, space is not allocated
until a write is issued for that area of the disk.

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 29
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
Click OK after you have made all your selections.
a no
Note: Click the Restore button to restore the Jobs pane in order to display the status of
your job.
h a s ide
a r) t Gu
The job should take a few seconds. If the jobs status is still In Progress after 30

g ov den
seconds, click the Jobs view to display the status of your job.
b ib Stu
You can find out how long a job took to complete by examining the information in the
n
c this
main Jobs pane, from the Jobs view. This information is displayed in the job Duration
b
column.
u g o@ use
f.
z h
Create a second virtual disk by using the information in the following table:
(
ope
Field Value
L Name
ugo
pvm1_disk2
H Size in GB 8
Description For the pvm1 virtual machine
Shareable Leave the check box deselected.
Allocation Type Select Non-sparse Allocation from the
drop-down list.

Your window should look like the following screenshot:

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 30
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
Click OK to trigger the operation.
n -
The job completes successfully:
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

2. Clone the pvm1_disk1 virtual disk.


a. On the Repositories tab, select iscsi_repos from the list of repositories.
b. On the Virtual Disks subtab for iscsi_repos, select pvm1_disk1 and click the Clone
Virtual Disk icon:

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 31
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
no for the cloning operation. Use
c. In the Clone Virtual Disk window, provide the information
a
the information in the following table:
h a s ide
Field
a r) t Gu Value
Clone Target Type
g ovSelectd e n
Repository from the drop-down list.
i b t u
b is SSelect iscsi_repos.
Clone Target
c n
b e th Select Thin Clone from the drop-down list.
Clone Type
g o @ s
u u
z (hfeature
Note: Thin cloning in OCFS2-based repositories uses the reflink feature of OCFS2.

o p eThis is also referred to as fast copy.


L Your window should look like the following screenshot:
u go
H

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 32
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
Click OK to trigger the cloning operation.
n -
no
The cloning operation should take less than 20 seconds.
a
a s ide
After it completes, the clone appears as a new virtual disk on the Virtual Disks subtab,
h
as shown below:
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

3. Rename the new clone.


Giving virtual and physical disks a meaningful name is recommended. Several
operations have a search capability for disks in repositories or storage arrays, and only
the names are provided. Using meaningful names for your disks decreases the chance
of selecting the wrong disk.
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 33
a. On the Virtual Disks subtab, select the new clone named pvm1_disk1(2), and click
the Edit icon:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
b. In the Edit Virtual Disk window, enter a new name for your clone: s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

Click OK to complete the edit operation.


The newly renamed clone appears on the Virtual Disks tab:

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 34
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Note: When you clone a physical or virtual disk, the cloned disk is independent of the
source disk. You can use these cloned disks to create new virtual machines.

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 35
Practice 5-6: Create a Repository on Local Storage

Overview
In this practice, you create a new repository on the second disk for Oracle VM Server
ovsvr01.example.com.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

The second disk on ovsvr01.example.com is treated as local storage.


You can create a repository on local storage, but resources you add to this repository cannot be
shared with the other Oracle VM Servers in the server pool. Therefore, the benefits of
repositories on local storage are limited, except for the case of a server pool with a single
Oracle VM Server. In this case, you can create the server pool as nonclustered. A nonclustered
pool does not require a server pool file system. After creating a nonclustered server pool, you
add the Oracle VM Server to the server pool and use a free disk on the server to create a
repository. The disk you select should not have any partitions defined on it.
e to
Assumptions
cens
This practice assumes that there is a second disk available for ovsvr01.example.com. l i
b le
Tasks
s f era
1. tr
Verify the presence of the second disk on ovsvr01.example.com. an
n -
no
a. From the Hardware view, click the Hardware tab in the navigation pane.
a
h a s ide
b. Click the expand button for the Resources folder.

a r) t Gu
c. Click the expand button for Pool1.

g ov den
d. Select ovsvr01.example.com:

n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 36
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c tabthinisthe management pane:
u g o@ use
e. Click the Physical Disks

z (h
op e
L
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 37
The local storage is identified by Local Storage Volume Group under the Volume
Group heading.
f. Select the local disk and examine the information in the Selected Physical Disk pane:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
The Selected Physical Disk pane
g ovdisplaysd e n
additional information about this local disk.
In your lab environment, i b
bproduction
this disk
S
is t
a u
virtual disk, because your Oracle VM Server is a
virtual machine. In c
b n
your
h i s environment, this information would reflect the type
t
@the disk.seFor example, the string MAY2073RCSUN72G might appear for
u
an internal
odisk
and vendor for
g uOracle Sun Fire server.
in an
( h
z a repository on the second disk for ovsvr01.example.com.
ope
2. Create

o L a. Access the Home View.

H ug b. Select the Server Pools folder in the navigation pane to display the Server Pools tabs
in the management pane.
c. Click the Repositories tab.
d. Click the Create New Repository icon to launch the wizard:

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 38
e. In the Repository Information window, enter the information to create the repository on
the local disk for ovsvr01.example.com.
This information is summarized in the following table:
Field Value
Repository Name local_repos_ovsvr01
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Repository Location Select the Physical Disk option.


Server Pool Select Pool1, the only selectable choice from
the drop-down list.
Physical Disk Use the Search function to find the second
disk for ovsvr01.example.com.
Description Local repository for ovsvr01.example.com
e to
cens
Enter the name and repository location. l i
Select the server pool. b le
Click the Search icon to find the local disk for ovsvr01.example.com: s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 39
f. In the Select Physical Disk pop-up window, select Generic Local Storage Array
@ ovsvr01.example.com from the drop-down list:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu

g. From the Generic Local Storage g ov dArray e n @ ovsvr01.example.com storage
b ibavailable,
array, select the only disk
n S tasu shown below:
bc e thi s
g o @ s
u u
z (h
op e
L
H ugo

Click OK to return to the main Repository Information window.


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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 40
h. In the Repository Information window, enter the description:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
i. Click Next to create the repository. a no
The repository is created: h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 41
j. In the Present to Servers window, move ovsvr01.example.com to the Present to
Server(s) pane by selecting ovsvr01.example.com and clicking the
single right-arrow button:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g oonv the dRepositories
Click Finish to complete the operation.
e n
i b Stu
The new repository is displayed
b tab.

b cn this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 42
3. Create a virtual disk in the new repository.
a. Select your new local repository on the Repositories tab.
b. Click the Virtual Disks subtab and click the Create Virtual Disk icon:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
Note: If you cannot access the o v forenyour new repository, click the collapse pane
g subtabs
button for the Jobs pane.ib t u d
b is S and a size, 6 GB, for the virtual disk.
cnas vd1_ovsvr01,
b
c. Provide a name, such
t h
Also selecto an@ setype:
allocation
u g u
z (h
op e
L
H ugo

Click OK to complete the operation.

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 43
The new virtual disk appears on the Virtual Disks subtab:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
a s machine,
Note: This virtual disk can be used to create a virtual
h i d e which can run only on
ovsvr01.example.com. This virtual machine cannotu
r) machines be migrated or restarted on
v a n t G
ovsvr02.example.com because the
g o virtual
d e virtual disk is not accessible from
ovsvr02.example.com.
b i b Stu
b cn this
u g o@ use
z (h
e
Lop
u go
H

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

Practices for Lesson 5: Server Pools and Repositories


Chapter 5 - Page 44
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
t ran
Practices for
o n -Lesson 6:
n
h a uide s a Virtual
Managing Machines
)
r t6G
aChapter
g v
o den

ib Stu
n b
c this
b
u g o@ use
z ( h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 1
Practices for Lesson 6
Practices Overview
In these practices, you create and manage virtual machines.
First, you prepare your environment for creating virtual machines.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Next, you create the pvm1 virtual machine and install Oracle Linux as a guest OS. Recall that
you created two virtual disks called pvm1_disk1 and pvm1_disk2 in an earlier practice. You
use these two disks to create pvm1.
The second technique for creating virtual machines is to use a template. Recall that you
imported the EL53_i386_xVM_jeos.tgz template in a practice for the lesson titled Server
Pools and Repositories. You use this template to create several new virtual machines, either
directly or using a cloning definition.
Finally, you explore several features of Oracle VM: Maintenance Mode for Oracle VM Servers,
e to
Live Migration, High Availability (HA), and Anti-Affinity.
cens
l i
In this practice, you will:
b le
1. Create virtual NICs for your future virtual machines
s f era
2. Prepare your web server for installing a guest OS in a virtual machine
tr an
n -
no
3. Create pvm1, a paravirtualized virtual machine
4. Start and access your new virtual machine a
s ide
h a
5. Install Oracle Linux as the guest OS in the virtual machine
a r) t Gu
g ov den
6. Clone the EL53_i386_xVM_jeos.tgz template into a new virtual machine

n b ib Stu
7. Create a clone definition and use it for cloning operations
c this
8. Migrate virtual machines
b
u g o@ use
9. Use the High Availability (HA) feature

z ( h
10. Use the Anti-Affinity feature

ope
11. View VNIC usage from the Vnic Manager
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 2
Practice 6-1: Create Virtual NICs for Your Future Virtual Machines
Overview
In this practice, you generate 20 virtual network interfaces (VNICs) for use with your future
virtual machines.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

You use the Vnic Manager to create VNICs, which are then assigned to virtual machines. From
the Vnic Manager, you provide VNICs by creating a range of MAC addresses.
The VNICs must be created before creating your virtual machines.

Tasks
1. Access the Virtual NIC Manager, called Vnic Manager.
Note: The Vnic Manager tool can be accessed from any view.
a. From any view, click the Tools menu in the main menu bar, and select Vnic Manager:
e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 3
b. In the Virtual Network Interface Card Manager window, click the button labeled Next to
specify an initial MAC address:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

By default, the initial MAC address is composed of the Oracle-assigned 00:21:f6,


followed by zeros: 00:21:f6:00:00:00.
e to
ns
c. In the Number of MACs to generate field, use the increment button to reach 20 or just
enter 20:
l i ce
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n S tuthe MAC addresses.
bibto generate
Click the Generate c
b e thi
button s
g o @ s
u u
z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 4
20 new MAC addresses appear in the lower section of the screen:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
Lope
H ugo Click the Close button to exit the Vnic Manager.
Note: If you have more than one Oracle VM environment, make sure that the VNICs
for all environments do not overlap. By specifying a different initial MAC address for
each environment from the Vnic Manager, you can create unique MAC address ranges
for your entire enterprise.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 5
Practice 6-2: Prepare Your Web Server for Installing a Guest OS in a
Virtual Machine
Overview
In this practice, you ensure that the web server is ready for access to install a guest OS in your
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

virtual machine using an ISO file.

Assumptions
This practice assumes that your lab virtual machine is running the httpd service, and that the
required ISO file is available in the /OVS/seed_pool directory on your lab machine.

Tasks
1. From a terminal window on your lab machine, change user to root.
e to
2. Display the status of the httpd service:
cens
[root@<your lab machine> ~]# service httpd status l i
b le
era
httpd (pid 15289 6132 6131 6130 6129 6128) is running...
[root@<your lab machine> ~]#
n s f
3. - tra
Display the content of the /OVS/seed_pool directory:
n
no
[root@<your lab machine> ~]# ls -l /OVS/seed_pool
a
total 12769280
h a s ide
-rwxr--r-- 1 root root
a r) 557 tSep
G u20 2010 clean.sh
-rwxr--r-- 1 root rootgov e n Sep 21 2010 deploy.sh
tu
ib 147843094
-rw-r--r-- 1 rootbroot
d
1476

n s S Jan 3 19:03
bc e thi
EL53_i386_xVM_jeos.tgz
@
u g
-rw-r--r--o 1 s
root
u root 3796619264 Dec 19 22:56 Enterprise-R5-U6-
(h
Server-x86_64-dvd.iso
z
e
op 0.1.2-41.el5.noarch.rpm
-rw-r--r-- 1 root root 135289 Dec 22 16:00 osc-oracle-s7k-
L
H ugo -rw-r--r-- 1 root root 2313 Sep 14 2010
OVM_dom0_dns_dhcp_config_files_4_3Node_RAC_GNS.tgz
-rw-r--r-- 1 root root 206610432 Dec 14 08:59 OVS-3.0.3-trunk-
123.iso
-rw-r--r-- 1 root root 2741 Sep 14 2010 updateVM.tgz
You have new mail in /var/spool/mail/root
[root@<your lab machine> ~]#

The ISO Enterprise-R5-U6-Server-x86_64-dvd.iso file should appear in the


listing.
4. Change directory to /OVS/seed_pool:
[root@<your lab machine> ~]# cd /OVS/seed_pool
[root@<your lab machine> seed_pool]#

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 6
5. Copy the required ISO file from /OVS/seed_pool to the default document directory for the
HTTP server:
[root@<your lab machine> seed_pool]# cp Enterprise-R5-U6-Server-
x86_64-dvd.iso /var/www/html
[root@<your lab machine> seed_pool]#
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

6. Verify access to the ISO file from one of your Oracle VM Servers:
a. From a terminal window, use the ssh command to access ovsvr01.example.com:
[root@<your lab machine> html]# ssh ovsvr01.example.com
root@ovsvr01.example.com's password: oracle
''Last login: Thu Feb 2 06:59:43 2012 from 192.0.2.1
Warning: making manual modifications in the management domain
might cause inconsistencies between Oracle VM Manager and the
server. e to
[root@ovsvr01 ~]#
ce ns
l i
b. Issue the wget command with the --spider option to verify that the target lISO
r a b e file is
accessible from your Oracle VM Server.
s e
froot
Warning: Do not retrieve the ISO file because this could cause
t r a n
the (/) file system
to fill up on your Oracle VM Server.
n o n-
a e
[root@ovsvr01 ~]# wget --spider http://192.0.2.1/Enterprise-R5-
s
U6-Server-x86_64-dvd.iso
) h a u id exists.
Spider mode enabled. Check a
r
if
tG
remote file
o v e n
bg Stud
--2012-03-08 07:45:07-- http://192.0.2.1/Enterprise-R5-U6-
Server-x86_64-dvd.iso
b
n hisi
Connecting tobc
@ e t
192.0.2.1:80... connected.

g
HTTP request
u o sent, u s awaiting response... 200 OK
z (h
Length: 3796619264 (3.5G) [application/octet-stream]

LopeRemote file exists.]


ugo
[root@ovsvr01 ~]#
H c. Terminate your session on ovsvr01.example.com by using the exit command.
7. From your lab machine, mount the ISO file as an exploded file. This exploded file is used in
a later practice to install the OS in a virtual machine.
Note: An exploded ISO file means that the files and directories in the ISO file are directly
accessible.
a. Change user to root.
b. Create the iso directory in the HTTP server default directory, /var/www/html. This
directory is used in the next step to mount the ISO file:
[root@<your lab machine>~]# cd /var/www/html
[root@<your lab machine> html]# pwd
/var/www/html
[root@<your lab machine> html]# mkdir iso
[root@<your lab machine> html]# ls
Enterprise-R5-U6-Server-x86_64-dvd.iso iso

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 7
c. Mount the ISO file on the iso directory:
[root@<your lab machine> html]# mount -o loop,ro Enterprise-R5-
U6-Server-x86_64-dvd.iso /var/www/html/iso
[root@<your lab machine> html]#
Note: Mounting the ISO file as a loop device enables you to access the contents of the
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

ISO file.
d. Verify that the mount command succeeded:
[root@<your lab machine> html]# df -k
Filesystem 1K-blocks Used Available Use% Mounted
on
/dev/sda3 15001536 8865236 5361968 63% /
/dev/sda2 101105 45804 50080 48% /boot
tmpfs 1048664 0 1048664 0% /dev/shm e to
/dev/sda1 30694288 16205384 14488904 53%
cens
l i
/mnt/cdrive
b le
/dev/sda6 437874688 283432960 154441728 65%
s f era
/var/ovs/mount/8E88CE5160624FD88967B54953CBC078
tr an
-
/var/ovs/mount/8E88CE5160624FD88967B54953CBC078/sharedDisk/nfsre
n
pos1.img
a no
20642428 s ide
3887492 15706360 20%
h a
/nfsrepos1
a r) t Gu
g ov den
/var/ovs/mount/8E88CE5160624FD88967B54953CBC078/seed_pool/Enterp
rise-R5-U3-Server-i386-dvd.iso
n b ib Stu
2850578 2850578 0 100%
/mnt/iso/1 b c this
g o@ use
/var/www/html/Enterprise-R5-U6-Server-x86_64-dvd.iso
u
z (h 3707636 3707636 0 100%

Lope /var/www/html/iso

ugo
[root@<your lab machine> html]#
H The ISO file is mounted on /var/www/html/iso (see the last entry in the df k
command output above), and is available from the httpd (web) server on your lab
machine.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 8
Practice 6-3: Create pvm1, a Paravirtualized Virtual Machine

Overview
In this practice, you create your first virtual machine by using the Oracle VM Manager.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Tasks
1. Launch the Create Virtual Machine Wizard.
a. From the Oracle VM Manager, access the Home View.
b. In the navigation pane, click the expand button for the Server Pools folder.
c. Click the expand button for Pool1:

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 9
d. Right-click ovsvr01.example.com and select Create Virtual Machine from the
shortcut menu:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z
The h
(Create Virtual Machine Wizard is launched.
e
op Note: You can launch the Create Virtual Machine Wizard from the Server Pools folder
L
ugo
(with a right-click), from a particular server pool, or from an Oracle VM Server within a
H pool. You can also launch the wizard from the Actions entry in the menu bar.
Depending on where you launch the wizard and what item is selected when you launch
it, the Server Pool field is either already filled in, or it presents a drop-down list for the
server pool selection.
To create a virtual machine, the wizard walks you through six windows:
Create Virtual Machine: In this window, you specify parameters for your virtual
machine. This information includes a name, repository, domain type, memory,
and number of virtual processors.
Setup Networks: In this window, you specify virtual NICs and their associated
networks.
Create Storage: In this window, you can choose to create a single virtual disk for
use by your virtual machine. This is an optional step. You can also use virtual
disks that were previously created.
Select Disks and ISOs: In this window, you specify the virtual disks in
repositories, or physical disks in storage arrays that will be used by your virtual
machine for installing the OS and applications.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 10
Setup Disk Order: In this window, you specify the order in which the disks will be
presented to the OS or installation program in your virtual machine. This
determines the letter associated with the disks, for example, /dev/xvda and
/dev/xvdb.
Boot Options: In this window, you specify the boot device. If you specify CDROM,
booting your virtual machine triggers an installation from an ISO file (HVM virtual
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

machines only). If you specify DISK, the virtual machine attempts to boot from its
first virtual or physical disk. If you specify Network, your virtual machine attempts
to install from an exploded ISO file available over the network (PVM virtual
machines only).
2. Create the virtual machine as a PVM, or paravirtualized machine.
a. In the Create Virtual Machine window of the wizard, you specify the parameters for
your new virtual machine. Use the information in the following table to enter values in
the window:
e to
Field Value
cens
l i
Server Pool le
It is already filled in if you started the wizard

f e rab
from an Oracle VM Server.
Repository Select iscsi_repos fromathe n sdrop-down list.
n -t r
Name pvm1 o
Enable High Availability s a n e
Leave deselected.
r ) haaparavirtualized
u id machine that is
Description
o v a nusing
is
installed
pvm1
e t Gthe Oracle Linux 5 Update 6
b i bg SISO t udfile.
Server b cn this Already selected
u g o@ use OR

z (h Select ovsvr01.example.com from the


o p e drop-down list.
L
u go Operating System Select Oracle Linux 5 from the drop-down list.
H Domain Type Select Xen PVM from the drop-down list.
Maximum Memory 1024
Memory 1024
Processors 1
Priority 50
Processor Cap (%) 100

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 11
After entering all the information, your window should look like the following
screenshot:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
Click Next to advance to the next window.
a no
b. In the Setup Networks window, you select onesor more e
a d of network/VNIC. In your
pairs
lab environment, create a single pair using
r ) hvm_net,u i
the virtual machine network you
created in a practice for the lesson a n G
vtitled Managing
t Servers and Networks, and any
g o
VNIC in the list of available VNICs. d e
b i bNetworkS u
tdrop-down
Select vm_net from
b n
c thithe s list.
Select a VNIC
g o @ s eright
from the VNIC (left) pane, and click the single right-arrow button to
move
h u this VNIC u
to the pane.
(
z VNIC/network pair should appear in the right pane as
Your
p e
o 00:21:f6:xx:xx:xx/vm_net, as shown in the following screenshot:
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 12
Click Next to move to the next window.
c. Click Next on the Create Storage(Optional) screen, because you will be using already
created virtual disks for your new virtual machine:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
o n -
d. On the Select Disks and ISOs screen, you can a addnISO files (using the ISOs tab),
h
virtual disks (using the Virtual Disks tab), or a s idisks
physical d e (using the Storage tab) to
a
your virtual machine disk configuration.
r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

For this exercise, you add pvm1_disk1 and pvm1_disk2, two virtual disks that you
created in an earlier practice. You do not add any ISO file because the ISO file you are
using to install Oracle Linux 5 Update 6 into your virtual machine is offered over the
network, and therefore, is not needed in your virtual machines disk configuration. You
can choose to add the ISO file if you want to install additional packages at a later time.
Click the Virtual Disks tab.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 13
e. On the Virtual Disks tab, select pvm1_disk1 and pvm1_disk2:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
Click Next.
n -
f. no
On the Setup Disk Order screen, verify that your two virtual disks are in the correct
a
order:
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

pvm1_disk1, which is the 10 GB virtual disk, is listed first. pvm1_disk2 is listed next.
Note: If you want to change the order, select Empty from the drop-down list for one of
the two disks; this allows you to select that same disk from the drop-down list in the
other slot.
Click Next to continue.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 14
g. On the Boot Options screen, select Network in the left pane, and click the single right-
arrow button to move this selection to the right pane.
This action activates the Network Boot Path field, as shown below:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
h. Enter http://192.0.2.1/iso in the Network a noPath field:
Boot
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

Note: You can also access the exploded ISO file using the HTTPS or NFS protocol.
Click Finish to trigger the creation of your virtual machine.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 15
Your new virtual machine appears under ovsvr01.example.com in the navigation
pane:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z
pvm1 h
( is in the stopped state.
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 16
i. Select pvm1 in the navigation pane, and examine the information for pvm1 in the
management pane:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
Note: The Vnic value in your pvm1 virtual machine may not be the same as the value
shown above, and reflects what network pair was chosen when you created your
virtual machine.
h a s ide
a r) t Gu
There are three areas on the Info tab for the pvm1 virtual machine:
Configuration g ov den
Networks n b ib Stu
Storage@b
c this
g o in utheseupper portion of the management pane to display all the
Use theuscrollbar
z (h
Configuration information for pvm1.
p e
o Use the pane resize bar to display the network information.
L
H ugo Your new virtual machine is ready for use.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 17
Practice 6-4: Start and Access Your New Virtual Machine
Overview
In this practice, you start your new virtual machine, pvm1, and access its console to prepare for
OS installation. As part of this practice, you gain experience with firewall issues around console
access.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Tasks
1. In the Home view, right-click pvm1 and select Start from the shortcut menu:

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

The start operation triggers a job. Wait until the virtual machine starts successfully before
proceeding.
Note: During the virtual machine startup, the icon on the virtual machine is shown as a
small, striped, green icon. When the virtual machine is up fully, the icon changes to a larger,
solid, green right arrow. This change in icon also applies when starting Oracle VM Servers.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 18
2. Start the console for pvm1.
a. In the navigation pane, right-click pvm1 and select Launch Console from the shortcut
menu:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 19
b. Click OK to launch ovm_rasproxy-ws.jnlp using JavaWS (the Java Web Start
program):
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
The Java application is launched:
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo But the console for pvm1 does not appear!
3. Edit the iptables file on ovmmgr.example.com and add port 15901 to allow console
access.
Note: If the firewall is enabled on the Oracle VM Manager, port 15901 must be open in the
firewall. This port allows communication with the secure VNC Proxy, which is involved in
the mechanism to set up console access to virtual machines.
a. From your lab machine, log in to ovmmgr.example.com using the ssh -X command:
Note: The X (capital letter) parameter for ssh enables X11 forwarding. With this
parameter, you can run the gedit command from ovmmgr.example.com.
[root@<your lab machine> ~]# ssh X ovmmgr.example.com
root@ovmmgr.example.com's password: oracle
Last login: Fri Feb 3 10:24:43 2012 from 192.0.2.1
[root@ovmmgr ~]#

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 20
b. Check whether the firewall is active:
[root@ovmmgr sysconfig]# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

1 RH-Firewall-1-INPUT all -- 0.0.0.0/0


0.0.0.0/0

Chain FORWARD (policy ACCEPT)


num target prot opt source destination
1 RH-Firewall-1-INPUT all -- 0.0.0.0/0
0.0.0.0/0
[Output omitted]
e to
18 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0
cens
state NEW tcp dpt:54321 l i
b le
era
19 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0
state NEW tcp dpt:15901
n s f
20 ACCEPT tcp -- 0.0.0.0/0
n - tra0.0.0.0/0
state NEW tcp dpts:5900:5950
a no
21 ACCEPT tcp -- 0.0.0.0/0
s e 0.0.0.0/0
state NEW tcp dpts:7001:7002
r ) ha uid
22 ACCEPT
tcp -- 0.0.0.0/0
v a nt G 0.0.0.0/0
state NEW tcp dpt:8080
i b go tude
23 REJECT b S
all -- 0.0.0.0/0
n s
0.0.0.0/0
bc e thi
reject-with icmp-host-prohibited
@
g o s
You have new mail in /var/spool/mail/root
u u
h
The(firewall is enabled.
z
e
oc.p Change directory to /etc/sysconfig:
L
H ugo [root@ovmmgr ~]# cd /etc/sysconfig
[root@ovmmgr sysconfig]#
d. Make a backup of the iptables files:
[root@ovmmgr sysconfig]# cp iptables iptables_orig
[root@ovmmgr ~]#
e. Use your favorite editor (for example, the vi utility) to modify the iptables files. This
example uses the gedit utility.
Note: To add port 15901 to the iptables file, copy a similar line, paste the line and
change the port to 15901. The line with port 54321 is a good choice for this process.
[root@ovmmgr sysconfig]# gedit iptables

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 21
The gedit window appears on your lab machine:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
e
of.p Use the scrollbar to reach the line for port 54321, and select it:
L
ugo
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --
H dport 54321 -j ACCEPT

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 22
g. Click the Copy function on the toolbar, press Enter to create a blank line, and use the
Paste function to paste the copied line immediately after its source:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 23
h. Modify the second line by changing the port number from 54321 to 15901.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 24
i. From the File menu, select Quit:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
op e
j.
In the pop-up window, click Save to save your changes to the iptables file:
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 25
k. Restart the iptables service:
[root@ovmmgr sysconfig]# service iptables restart
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Applying iptables firewall rules: [ OK ]


Loading additional iptables modules: [ OK ]
ip_conntrack_netbios_nntrack_ftp
[root@ovmmgr sysconfig]#
4. Restart access to pvm1s console:
a. Kill the Java program that is still running by closing the Java applet window:

e to
ce ns
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 26
b. Relaunch the console for pvm1:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 27
c. Click OK to open the application with the Java Web Start program.
The first screen for installing Oracle Linux appears:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
e
op Continue with the next practice to install Oracle Linux 5 Update 6 in your virtual
L
ugo
machine.
H

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 28
Practice 6-5: Install Oracle Linux as the Guest OS in the Virtual
Machine
Overview
In this practice, you start the installation of Oracle Linux 5 Update 6 in your virtual machine. This
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

installation is slow in your lab environment; for this reason, after responding to the prompts of
the installation program, and ensuring that the installation is proceeding normally, you perform a
few operations against your running virtual machine, and then cancel the installation. In later
practices, you create virtual machines using a faster method, with templates and cloning.
The first part of the installation is driven by the Oracle VM Server where the virtual machine is
running. The network boot program prompts for information about the location of the exploded
ISO file on the network.
The second part of the installation is the installation itself, and takes place over the virtual
machine network specified in the virtual machine configuration.
e to
Note: The responses to the various prompts issued during the installation process have been
cens
chosen to fit your lab environment and to minimize configuration. The responses suitable for a l i
b le
era
production environment will differ from those used in this practice.

n s f
- tr a
no n
a
s ide
h a
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 29
Tasks
1. Respond to prompts for locating the exploded ISO file, and starting the installation.
a. On the Choose a Language screen, tab to OK and press the Enter key to accept the
default:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 30
b. On the Keyboard Type screen, tab to OK and press the Enter key to accept the default:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 31
c. On the Installation Method screen, use the down-arrow key to select HTTP, and tab to
OK.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
Press the Enter key to continue.
tr an
n -
no
d. On the Configure TCP/IP screen, tab to OK to accept the defaults:
a
Dynamic IP configuration for IPv4 support
s ide
h a
Automatic neighbor discovery for IPv6 support
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

Press the Enter key to continue.


The installation program attempts to configure eth0 in order to facilitate access to the
exploded ISO file:

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 32
Warning
If the program returns to the Configure TCP/IP window, this indicates a problem with
DHCP.
From your lab machine, restart the dhcpd service:
[root@EDT3R17P1 ~]# service dhcpd restart
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Shutting down dhcpd: [ OK ]


Starting dhcpd: [ OK ]
[root@EDT3R17P1 ~]#
In the Configure TCP/IP window, tab to OK and press the Enter key to continue.
The TCP/IP configuration proceeds:

e to
ce ns
l i
b le
e. On the HTTP Setup screen, you provide information for locating the web server
a
(192.0.2.1), and the directory where the exploded ISO is mountede r
f (iso), if it is not
n s
tra
mounted to the root directory of the web server:
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

After entering the information, tab to OK and press the Enter key to continue.
The network boot program retrieves the boot files for the installation.

The installation begins.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 33
2. Proceed with the installation of Oracle Linux 5 Update 6 in your virtual machine.
a. On the first screen for the installation, select Use text mode:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Press the Enter key to continue.


e to
This message appears on the screen:
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@window
b. In the Warning
u e /dev/xvda, tab to Yes to initialize the drive:
sabout
z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 34
Press the Enter key to continue.
c. In the second Warning window about /dev/xvdb, tab to Yes to initialize this drive as
well:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g
Press the Enter key to continue. ov den
n
d. In the Partitioning Typeb ib accept
window, S tu the default Remove linux partitions on
bccreate
selected drives and
s
hi layout and mark both drives to be initialized:
tdefault
g o @ s e
u u
z (h
op e
L
H ugo

Tab to OK and press the Enter key to continue.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 35
e. In the Warning window, confirm the removal of all Linux partitions by tabbing to Yes:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
era
Press the Enter key to continue.
f. In the Review Partition Layout window, tab to No to accept the partitioning layout
n s f
without modification:
- tr a
no n
a
s ide
h a
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
e
op Press the Enter key to continue.
L g.
H ugo In the Configure Network Interface window, accept Yes to configure eth0:

Press the Enter key to continue.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 36
h. In the Network Configuration for eth0 window, tab to OK to accept all defaults:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
Press the Enter key to continue. l i
b le
era
i. In IPv4 Configuration for eth0, tab to OK to accept all defaults:
n s f
- tr a
no n
a
s ide
h a
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
Lope
H ugo
Press the Enter key to continue.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 37
j. In IPv6 Configuration for eth0, tab to OK to accept all defaults:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
Press the Enter key to continue.
tr an
k. In the Hostname Configuration window: n -
a no
Tab to ( ) manually, and press the space bar to select.
h a s ide
Tab to the empty field, and enter pvm1.example.com.
Tab to OK. a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

Press the Enter key to continue.


l. In the Time Zone Selection window:
Press the Tab key to access the list of time zone locations.
Use the down arrow to locate Etc/UTC.
Tab to OK.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 38
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
Press the Enter key to continue.
s f era
m. In the Root Password window, enter 0racle (where the first position is the digit zero)
tr an
n -
as the password. Reenter the password and tab to OK:
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
Lope
H ugo

Press the Enter key to continue.


The installation setup continues:

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 39
n. In the Package selection window, tab to OK to bypass adding software and press the
Enter key:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no check:
h a s ide
The installation program performs a packages dependency

a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
e
oo.p In the Installation to begin window, press the Enter key to start the installation
L
ugo
process:
H

The installation program formats the root (/) file system and the /boot file systems.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 40
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

The installation program begins installing packages:

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c a longt h istime to complete. You are not expected to complete this
u g o@
Note: The installation
installation. Read u se in the following section When the Installation Completes,
takes
the information
and then(h proceed with task 3:
e z
Lop At the end of the installation process, the program prompts for a reboot:
When the Installation Completes

u go
H

At this point, stop the virtual machine from the Oracle VM Manager UI. Then edit the
virtual machine and change the boot option from Network to Disk. Restart the Virtual
Machine. The virtual machine boots from its boot disk and you can proceed with the
customization of the newly installed OS.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 41
3. At this point, the installation process is still running in your pvm1 virtual machine. In this
task, you attempt several types of modifications to your running virtual machine.
a. From the Oracle VM Manager UI, locate the pvm1 virtual machine in the navigation
pane, right-click and select the Edit action.
b. On the Configuration tab, use the increment button for Memory to increase the
memory:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
An error
z h
( caption appears: You cannot set the memory higher than the set Maximum
op ememory.
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 42
c. Decrease the memory to 512 MB by using the decrement button:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
Click OK.
g ov den
n b ib Stu
Wait until the job completes successfully.
b c this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 43
d. Reset the memory to 1024 MB and click OK:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
v n
Wait until the edit job completesosuccessfully.
g e

ib S thetu
d
n b
e. Start the edit again, and increase
s
number of Processors to 2:

@ bc e thi
u g o u s
z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 44
Click OK to trigger the change.
You get the following error message:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
You cannot change the number of virtual processors:

Click OK to dismiss the message. a r) t Gu
Click Cancel to exit the g ovfunction.
d e n
b b clickSthetuNetworks tab:
iand edit
n
c this
f. Restart the edit function,
b
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 45
The informational message at the bottom of the window indicates that you cannot
change the networking information for a running virtual machine.
g. Click the Disks tab, and the Physical Disks subtab.
h. Select the check box for IET(5), a physical disk on your iSCSI storage server:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 46
i. Click the Disk Ordering tab:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g o v
The new disk is in slot 2. Accept this n
selection
e by clicking the OK button.
d
b Sjobtucompletes successfully:
Wait until the Edit Virtual iMachine
b
cn this
b
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 47
j. Check the new disk configuration for pvm1:
In the navigation pane, find and select pvm1 under one of the Oracle VM Servers in
Pool1.
In the management pane, find the Storage pane on the Info tab. The virtual and
physical disks belonging to pvm1 are listed:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
le
f e rab
a
You can change the disk configuration for a running virtual machine.n s
k. Start the Edit Virtual Machine function again for pvm1, andn r
-tclick the Boot Order tab in
o
the Modify Virtual Machine:pvm1 window.
s a n e
Remove Network from the Boot Order h byaselecting
idit, and clicking the single
r ) u
left-arrow button.
Add Disk to the Boot Order o v e n t G it, and clicking the single right-arrow
aby selecting
bg Stud
pane
button. b i
b cn this
u g o@ use
z (h
op e
L
H ugo

Click OK to complete the edit operation.


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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 48
You get the following error message:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
a s machine.
You cannot alter the boot order for a running virtual
h i d e
l. Click the OK button to close the Message
a r) window.
G u
m. Click the Cancel button to exit the e n t
ovedit operation.
g
ib Stu d
n b
c this
b
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 49
4. Kill the installation process.
a. From the Oracle VM Manager UI, locate the pvm1 virtual machine in the navigation
pane, select it, right-click, and select the Kill action:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 50
b. In the confirmation pop-up window, click OK to confirm the Kill operation:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
The console window terminates automatically,
a r) t though
G u not immediately.
v after
Note: If the Kill operation is stillorunning
g e na couple of minutes, check the status of
the job from the Jobs view.
ib Stu d
Your virtual machine n b
c exists,
still isbut has no valid guest operating system associated
b t h
with it.
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 51
Practice 6-6: Clone the EL53_i386_xVM_jeos.tgz Template into a
New Virtual Machine
Overview
Cloning a virtual machine or template enables you to create multiple virtual machines or
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

templates based on the original. There are two methods of cloning virtual machines:
A simple clone: Sets up the clone with the same configuration information as the
original
An advanced clone: Enables you to create and use a clone definition with differing
configuration from the original
In this practice, you use the EL53_i386_xVM_jeos.tgz template, which you imported in a
practice for the lesson titled Server Pools and Repositories, to clone a new virtual machine,
using the simple clone technique.
e to
Tasks cens
l i
1. Launch the template cloning operation.
b le
a. From the Home view, click the Server Pools folder in the navigation pane.
s f era
tr
b. Click the Repositories tab in the management pane. an
n -
c. Click the Templates tab:
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

Note: If you cannot see the Configuration and Networks & Storage subtabs, click the
Collapse Pane button for the Jobs pane, and adjust the view by using the pane resize
bar.
d. Select the EL53_i386_xVM_jeos.tgz and click the Networks & Storage tab:

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 52
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
o n -
a n
The template contains a single virtual disk called system.img. There is no networking
configuration associated with the template. s
h a i d e is selected, and click the
a )
e. To launch the cloning operation, makersure that
G u
the template
ov den
Clone Virtual Machine or Template icon: t
g
ib Stu
n b
c this
b
u g o@ use
z (h
op e
L
H ugo

The Clone Virtual Machine or Template window appears.


2. Enter the information to clone the template to a virtual machine.
The information to use for the cloning operation is summarized in the following table:
Field Value
Clone Type Select the Simple Clone option.
Target Clone Type Select the Virtual Machine option.
Name jeos_vm1
Description Virtual machine created from the
EL53_i386_xVM_jeos.tgz template
Target Server Pool Select Pool1 from the drop-down list.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 53
Notes
This practice uses Simple Clone, where a virtual machine is created directly from
the template, without the opportunity to make configuration changes to the resulting
virtual machine.
The next practice uses Advanced Clone, where the cloning process creates a
virtual machine (and possibly a template) according to the configuration information
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

contained in a clone definition.


a. In the Clone Virtual Machine or Template window, enter values in all the fields by
using the information in the table above.
Your window should look like the following screenshot:

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
e
op Click OK to trigger the cloning operation.
L
H ugo The cloning job completes quickly.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 54
b. In the navigation pane, click the expand button for ovsvr01.example.com and
ovsvr02.example.com:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z
The
h
(new virtual machine, jeos_vm1, may appear under ovsvr01.example.com or
e
op ovsvr02.example.com.
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 55
c. Select the new virtual machine, jeos_vm1, and examine its configuration information
in the management pane:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a nbuto there is no network associated
with this virtual NIC. h a s ide
Notice that the cloning process added a virtual NIC,

a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 56
3. Edit the new virtual machine, jeos_vm1, to associate a network with its VNIC.
a. Right-click jeos_vm1 and select Edit from the shortcut menu:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 57
b. On the Modify Virtual Machine:jeos_vm1 screen, click the Networks tab:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) VNICsG uby selecting it and clicking the
ov den
c. Remove the VNIC from the list of configured t
single left-arrow button: g
ib Stu
n b
c this
b
u g o@ use
z (h
op e
L
H ugo

The VNIC appears at the bottom of the available VNICs in the left pane.
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 58
d. Select vm_net from the Select a Network for your VNIC drop-down list, select one
VNIC in the list of available VNICs, and click the single right-arrow button to move this
selection to the right pane, where the configured VNICs and their associated network
are listed:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c the edit
Click OK to complete t h s
ioperation.
u g o@ toutheseInfo tab view for jeos_vm1.
You are returned
z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 59
Now you can see the Ethernet Network information in the Networks & Storage section
on the Info tab for jeos_vm1:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
4. Start and access the virtual machine. h a s ide
ar) nand u Start.
Gselect
a. In the navigation pane, right-clickvjeos_vm1 t
b. When the Start job completes,
i b goright-click
t u dejeos_vm1 and select Launch Console.
n
Note: You can startcthebconsole i s S but in your lab environment, it is best to wait
earlier,
b
@machine
until the virtual t h
eis up before accessing the console.
u g o u s
( h
o p ez
o L
u g
H

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 60
c. In the pop-up window, click OK to launch the Java application.
Note: When you launch the console for your virtual machine, you see different
messages depending on which stage of the boot process is active when you access
the console:
If the virtual machine is still booting, you see booting messages, as shown below:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo
If the boot process has reached the networking stage, you are prompted to
enable DHCP or not, as shown below:

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 61
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
g
Respond
u o@ u
with Ysifeyou see this prompt. If there is no response to the prompt, the
h process continues.
z (boot
o p e
L
u go
H

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 62
If you connect at the point where the templates first-boot script executes, the
script prompts you for parameters to configure your virtual machine, as shown
below:
If asked to configure the host name manually, respond with y. Enter
jeosvm1.example.com.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo
If no input is provided, the boot process continues.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 63
Finally, if you connect to the console after the boot process has completed, you
see the login prompt.
Log in as root with the password ovsroot:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
ugo
Note: The host name of your virtual machine may not be jeosvm1 if you missed
H the prompt for setting the host name. This is OK and will not affect future practices.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 64
d. After you have logged in to the virtual machine, execute the ifconfig a command
from the command line:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
e
op Your virtual machine has acquired an IP address for the vm_net network on the
L
ugo
192.168.1.0 subnet.
H

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 65
5. Shut down the virtual machine.
From the command line, execute the shutdown h now command:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
e
p console window closes automatically (after a while), and the virtual machine is now in a
oThe
L stopped state.
H ugo You can also close the console by clicking the Close Window button (x) in the upper right
corner of the VNC console.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 66
Practice 6-7: Create a Clone Definition and Use It for Cloning
Operations
Overview
In this practice, you use the Advanced Clone technique for cloning operations. As part of the
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Advanced Clone mechanism, you create a clone definition for the EL53_i386_xVM_jeos.tgz
template.
With this clone definition, you create two virtual machines from the template by using the
configuration information specified in the clone definition.

Tasks
1. Create a clone definition for the EL53_i386_xVM_jeos.tgz template.
a. From the Home view, select the Server Pools folder in the navigation pane, and click
e to
the Templates tab in the management pane:
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z h
( the EL53_i386_xVM_jeos.tgz
op e
b.
Select template, and click the Cloning Virtual
L Machine or Template icon:

H ugo

c. In the Clone Virtual Machine or Template window:


Select the Advanced Clone option for Select Clone Type.
This action displays a new field called Clone Definition. This field has a search
feature.
Select the Virtual Machine option for Target Clone Type.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 67
Your screen should look like the following screenshot:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
d. Click the Search icon for the Clone Definition field.

a r) t Gu window appears:
The Advanced Clone for EL53_i386_xVM_jeos.tgz

g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

You use this window to create or select clone definitions for the current cloning
operation.
There are no clone definitions yet for the EL53_i386_xVM_jeos.tgz template.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 68
e. Select the Create New Clone Definition option:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
no
Click Next to launch the wizard to create the newaclone definition.
h a s andean optional description for
a nameid
the clone definition: a r) t Gu
f. On the first screen of the wizard, you specify

Name: cloneDef1 g ov den


Description: clone n b ib Stufor the jeos template
b c this
definition

u g o@ use
z (h
op e
L
H ugo

Click Next to move to the next window.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 69
g. On the Select Virtual Disk(s) screen, you select which disks in the template will be
cloned during the cloning operation. You also select a Clone Target Type for these
disks: Repository or Physical Disk.
Note: If you have a storage array managed with a vendor plug-in, an additional
selection appears in the drop-down list for Clone Target Type called Storage Array.
Select the check box next to the only virtual disk in the template, system.img.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

For the Clone Target Type, select Repository from the drop-down list.

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
g
Click Next
u o@
to u se
continue.

z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 70
h. Because you selected Repository in the previous step, you now select which
repository to use when cloning the system.img virtual disk in the template.
Accept iscsi_repos as the selection. If iscsi_repos is not the repository showing
on your screen, use the search function to select iscsi_repos:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov den
Click Next to continue.
i. In the Specify Clone n b tu Thin Clone from the drop-down list:
ibwindow,Sselect
bc e thi
Type s
g o @ s
u u
z (h
op e
L
H ugo

Click Next to continue.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 71
j. On the Select Network screen, select vm_net from the Ethernet Network
drop-down list to associate this network with the virtual NIC present in the clone
definition.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
Click Finish to create the new clonea r) t Gu
definition.
You are returned to the maing ov dClone
Advanced e n window, and your new clone definition
b ib clone
appears in the list of available S u
tdefinitions:
n
bc e thi s
g o @ s
u u
z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 72
2. Clone the EL53_i386_xVM_jeos.tgz template into virtual machine jeos_vm2 by using
the clone definition created in the previous step.
a. Select the Use Existing Clone Definition option to continue with the initial cloning
operation.
The cloneDef1 clone definition is now selected, because it is the only clone definition
available.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
c the main
Click OK to returnbto t h s window.
icloning
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 73
b. In the Clone Virtual Machine or Template window:
Change the name of the virtual machine to jeos_vm2.
Add this description: virtual machine cloned with the cloneDef1
clone definition.
Select iscsi_repos as the Target Repository (already selected).
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Select Pool1 as the Target Server Pool (only possible selection).

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
@ thescloning
Click OK tootrigger
g e operation.
u u
h job completes quickly.
The(cloning
e z
Lop The new virtual machine appears under one of the Oracle VM Servers.
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 74
c. In the navigation pane, select the new virtual machine, jeos_vm2, and examine the
configuration information in the management pane:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a nois already associated with a
s toecreate
Notice that the VNIC for the jeos_vm2 virtual machine
a
machineid
this association, as you
network. There is no need to edit the virtualh
r) process. u
did previously when using the Simple aClone
t G

You can also create a new clone g ovdefinition
d e n associate the VNIC of cloned virtual
to
machines to a differentb
n ib orStotuclone the virtual disk to a different repository.
network,
b c machine,
3. Start the jeos_vm2 virtual t h is access its console, verify its network configuration,
g o@ use
and leave it running.
u
(h the jeos_vm2 virtual machine, select it, right-click, and select Start from the
a. To start
z
o p eshortcut menu.
o L b. After it starts successfully, right-click again and select Launch Console.
u g
H c. In the pop-up window, click OK to launch ovm_rasproxy-ws.jnlp by using Java
Web Start program.
The console appears and shows the boot process for the virtual machine.
Note: As you experienced earlier with jeos_vm1, you connect to the console at any
stage of the booting process.
d. If prompted to enable DHCP configuration, enter Y.
e. If asked to configure the host name manually, respond y.
Enter jeosvm2.example.com as the host name.
f. When the login prompt appears, log in as root with password ovsroot.
Leave the virtual machine running.
Note: Leaving jeos_vm2 running is important for a later practice.
g. Close the console by clicking the Close Window button.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 75
4. Clone the same template to create an additional virtual machine, jeos_vm3.
a. Access the EL53_i386_xVM_jeos.tgz template on the Templates tab.
In the navigation pane, click the Server Pools folder.
In the management pane, click the Templates tab.
b. Select the EL53_i386_xVM_jeos.tgz template and click the Clone Virtual Machine
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

or Template icon:

e to
cens
l i
b le
s f era
tr an
c. In the main cloning window:
n -
Select the Advanced Clone option.
a no
a
Select the Virtual Machine option.
h s ide
a r) t Gu
Click the search icon to locate a clone definition for this cloning operation.
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 76
d. In the Advanced Clone window:
Select the Use Existing Clone Definition option.
Select cloneDef1 as the clone definition.
Click OK to return to the main cloning window.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
e. In the main cloning window:
Enter jeos_vm3 b h is for the new virtual machine.
cas thetname
Enter g
u o@ use
a description.
(h iscsi_repos as the Target Repository and Pool1 as the Target Server
Accept
z
e
op Pool.
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 77
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
Click OK to trigger the cloning operation.
a no
The new virtual machine, jeos_vm3, created s
a e now appears under an
through cloning,
d
Oracle VM Server selected by Oracle r )
VM h
Manager,u i
as shown below:
a
v ent G
g o
b i b Stud
b cn this
u g o@ use
z (h
op e
L
H ugo

Your virtual machines and Oracle VM Servers mix may be different from the example
shown above.
You now have four virtual machines in your Oracle VM environment. One virtual
machine is running and the other three are in the stopped state.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 78
Practice 6-8: Migrate Virtual Machines
Overview
In this practice, you perform the following tasks:
Migrate a running and a nonrunning virtual machine. Migrating a running virtual
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

machine is called Live Migration.


Put an Oracle VM Server into maintenance mode. You examine how migration is used
as a means to evacuate virtual machines from an Oracle VM Server entering
maintenance mode.

Assumptions
At this point, you should have four virtual machines in your environment. One of these virtual
machines should be in the running state.
e to
ns
Note: If your environment differs from the examples shown in this practice, make your
selections for virtual machines and servers to fit the tasks for your environment. For example, in
l i ce
task 1 below, the running virtual machine is on ovsvr01.example.com. Choose your own
b le
era
Oracle VM Server as the server where the running virtual machine is located.
n s f
- tr a
no n
a
s ide
h a
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 79
Tasks
1. Migrate a running virtual machine.
a. Right-click the running virtual machine under ovsvr01.example.com and select
Migrate:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 80
The Migrate Virtual Machine window appears:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 81
b. Click the expand button next to Why dont I see other servers to migrate to?
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
e
op For each Oracle VM Server in the target server pool, there is a reason that describes
L
ugo
why a server is not a valid target for the migration operation.
H

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 82
c. Click OK to proceed with the migration operation.
Note: In a production environment, Live Migration is a near-instantaneous process, if
the running virtual machine is not busy. In your lab environment, the process can take
up to 15 minutes.
During the migration process, the source and the target Oracle VM Servers are locked:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo Note: Wait until the Live Migration has completed before continuing with the next task.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 83
2. Migrate a nonrunning virtual machine.
Note: Migrating a nonrunning virtual machine is called cold migration.
a. Right-click a nonrunning virtual machine, for example, jeos_vm1, and select Migrate.
The Migrate Virtual Machine window appears:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo
Nonrunning virtual machines can be migrated to another Oracle VM Server in the
server pool, or to the Unassigned Virtual Machines folder.
Note: Cold migration is supported across server pools if the storage used by the virtual
machine is shared among server pools. At this time, this is supported for NFS
repositories only.
b. Select the Unassigned Virtual Machines Folder option and click OK to trigger the
migration operation.
The operation completes immediately.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 84
3. Put the Oracle VM Server with the running virtual machine into maintenance mode. In this
example, the server is ovsvr02.example.com.
a. Right-click the ovsvr02.example.com Oracle VM Server and select Edit Server:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 85
b. In the Edit Server window, select the Maintenance Mode check box and click OK, as
shown below:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
The Edit operation completes quickly.

b c this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 86
A new icon appears on the ovsvr02.example.com Oracle VM Server icon to
indicate that the server is in maintenance mode:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z
Virtualh
( machines are evacuated from the Oracle VM Server in maintenance mode.
e
op Migration jobs are executed one at a time, one for each virtual machine on the server
L
ugo
entering maintenance mode.
H

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 87
c. Click the Jobs view shortcut to view the migration jobs:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

One migration job is active:

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b cfrom those
t h isshown in the screenshot above.
u g o@ use
Your jobs may differ

z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 88
The two Oracle VM Servers, the source and the target servers for the migration
operation, are locked. With these locks in place, many operations are not allowed. For
example, if you attempt to migrate a nonrunning virtual machine, the operation starts,
but you get the following message when you click the OK button:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ovoperation.
d e n
bib are
You have to cancel the migration
n S tumigrated. In the following example, jeos_vm3 is
d. Nonrunning virtual c
b e thi
machines s also
migrated.
g @
ojobs list ufrom
s the Jobs view to see the additional migrations in your lab
Look atuthe
z (h
environment:
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 89
The migration is near instantaneous for nonrunning virtual machines.
After all the migrations complete, there are no virtual machines residing under the
Oracle VM Server in maintenance mode:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
4. e
p task: Try to migrate a virtual machine to the Oracle VM Server currently in
oOptional
L maintenance mode.
H ugo Look at the Why don't I see other servers to migrate to? section to find out why a
particular target server is not valid for the migration operation.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 90
5. Remove maintenance mode on ovsvr02.example.com.
a. Right-click the Oracle VM Server in maintenance mode and select Edit Server.
b. Deselect the Maintenance Mode check box and click OK.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov den
ib machines
There is no migration ofbvirtual
S tu when the Oracle VM Server is no longer in
maintenance mode.cn s
@ bmachines
e hi
tmanually,
u g oPower Management
You can migrate
u s or let your Dynamic Resource Scheduler (DRS)

z (
pool.
h
or Dynamic (DPM) server pool policies rebalance your server

LopeNote: There is no DRS/DPM policy in effect in your lab environment.


H ugo The Anti-affinity feature comes into play when you attempt to put an Oracle VM Server
into maintenance mode. Anti-Affinity is exercised in a later practice for this lesson.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 91
Practice 6-9: Use the High Availability (HA) Feature
Overview
High availability for virtual machines is available at the Oracle VM Server and the virtual
machine levels:
If an Oracle VM Server is shut down or fails, virtual machines running on that server
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

that have high-availability enabled will restart on another available Oracle VM Server,
or on the same server when it is restarted.
If a virtual machine fails, it is restarted automatically on the same Oracle VM Server or
possibly on another server.
Note: If you shut down a virtual machine from its guest OS, Oracle VM Manager
restarts the virtual machine automatically, if the virtual machine is enabled for high
availability. If you want to shut down a highly available virtual machine, use the Oracle
VM Manager to shut it down by using the Stop action. e to
cens
l i
In this practice, you perform the following tasks:
b le
Enable high availability on a running virtual machine.
s f era
Restart the Oracle VM Server where the highly available virtual machine is currently
tra n
running. n -
a no
You restart the Oracle VM Server from within the server to simulate a server outage.
a s ide
Observe what happens to the virtual machine when the Oracle VM Server on which it
h
is running is restarted.
a r) t Gu
g ov den
Assumptions
n b ib Stu
This practice assumes that you
b have s virtual machine on one of your Oracle VM
c thairunning
Servers.
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 92
Tasks
1. Enable high availability on the running virtual machine.
a. Right-click the virtual machine and select Edit:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 93
b. Select the Enable High Availability check box and click OK to complete the edit
operation:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 94
2. Restart the Oracle VM Server where the virtual machine is running and observe what
happens to the highly available running virtual machine.
a. Right-click the Oracle VM Server, where the running virtual machine is located,
and select Restart Server:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 95
b. Click OK in the Confirmation window:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
The following message appears:
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

Because you cannot restart an Oracle VM Server that has running virtual machines on
it, you must log in to the server and restart it from the command line.
Note: If you want to stop or restart an Oracle VM Server that has running virtual
machines on it, you can turn on maintenance mode on the server: The virtual machines
on the server are migrated to other available servers.
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 96
c. From a terminal window on your lab machine, use the ssh command to access the
Oracle VM Server with the running virtual machine, and issue the init 6 command:
[root@<your lab machine> html]# ssh ovsvr01.example.com
root@ovsvr01.example.com's password: oracle
Last login: Thu Jan 19 13:56:30 2012 from 192.0.2.1
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Warning: making manual modifications in the management domain


might cause inconsistencies between Oracle VM Manager and the
server.
[root@ovsvr01 ~]# init 6
[root@ovsvr01 ~]#

The Oracle VM Server shuts down and restarts. This action can take 10 minutes or
more to complete.
e to
During that time, the Oracle VM has a red stop icon against it, showing that it is not
cens
l i
running.
b le
The Oracle VM Server icon itself may also show up as red:
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

Note: Your screen may differ from the screenshot above, depending on the location of
your running virtual machine.
A red Oracle VM Server icon indicates that one or more events for the server must be
acknowledged.
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 97
d. Select the Oracle VM Server in the navigation pane, and click the Events tab in the
management pane:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
Click the Acknowledge All button. a no
e. Click OK in the Confirmation window: h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

After acknowledging the events, the Oracle VM Server is no longer red, but still has the
red icon against it to show that it is offline.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 98
f. Also acknowledge events for the running virtual machine:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr
In this example, the jeos_vm2 virtual machine that was running on the Oracle VM an
n -
no
Server is now restarted on the other Oracle VM Server, as shown below:
a
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

You might have different results in your lab environment.


Note: In the case of an Oracle VM Server failure, Oracle VM Manager restarts only the
virtual machines that have high availability enabled. You can migrate and start the
other virtual machines manually.
When you restarted the Oracle VM Server by using the init 6 command, the highly
available virtual machine that was running on that server is now running on the same
server or on the other server.
Oracle VM Manager performs some load balancing when it starts or restarts virtual
machines.
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 99
Where a virtual machine is started or restarted depends on several factors, including
Anti-Affinity and DRS/DPM server policies.
Anti-Affinity is used next.
3. Use the vncviewer program from your lab machine to monitor the boot progress for your
Oracle VM Server. The steps for using vncviewer are described in Practices 1-4.
4. Also monitor the events from the Events tab for the rebooting Oracle VM Server.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

When the Oracle VM Server reboots, it is rediscovered by the Oracle VM Manager, as


shown on the Events tab below:

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 100
Finally, the Oracle VM Server has a solid green arrow against it, indicating that it is running:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u
5. Wait until the g o@ Oracle
restarted u se VM Server is running again before proceeding with the next
practice.(h
p z expect 15 to 20 minutes from the time you restarted the Oracle VM Server to the
ecan
oYou
L time the server is marked as running in the UI.
u g o
H 6. Close your vncviewer session to your Oracle VM Server.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 101
Practice 6-10: Use the Anti-Affinity Feature
Overview
Anti-affinity groups specify that certain virtual machines should never run on the same Oracle
VM Server.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

An anti-affinity group applies to all the Oracle VM Servers in a server pool.


In this practice, you create an anti-affinity group for your server pool, and observe the outcome
of this action.

Tasks
1. Create an anti-affinity group.
a. In the navigation pane, select your server pool, Pool1, and click the Anti-Affinity Group
tab in the management pane:
e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo
b. Click the Create New Anti-Affinity Group icon:

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 102
c. In the Create Anti-Affinity Group window, enter a name and a description for your new
group:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
Click Next to move to the second window.
h a s ide
d. On the Select Virtual Machines screen, r)selectttwo
G uvirtual machines that are currently
on the same Oracle VM server. va n
g o are d e
In this example, pvm1 and
b i bis running,
jeos_vm3
S t u on the ovsvr01.example.com server,

b cn this
though one virtual machine and the other virtual machine is stopped:

u g o@ use
z (h
op e
L
H ugo

Click Finish to complete the operation.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 103
Three jobs were submitted to create the anti-affinity group as shown in the Jobs pane:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

The first job, to create the anti-affinity group, completed successfully


The second job, to add the first virtual machine to the new anti-affinity group,
completed successfully
The third job, to add the second virtual machine to the new anti-affinity group,
failed
Note: If the Jobs pane is not visible in your management pane, locate and click the e to
Restore Pane button.
cens
l i
e. Click the Details button for the failed job. The details for the job appear in a Message
b le
window:
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

The message OVMRU_005016E Anti-Affinity violation. VM: jeos_vm3,


is on the same server as VM: pvm1 indicates that you cannot add a virtual
machine to the anti-affinity group, if a virtual machine that is already present in the
group resides on the same Oracle VM Server as the virtual machine you are trying to
add.
Note: The virtual machine referenced in the jobs details may be different in your lab
environment.
To avoid this problem, migrate the virtual machine to another Oracle VM Server before
adding the virtual machine to the anti-affinity group.
Click OK to close the Message window.
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 104
f. Select the server pool, Pool1, in the navigation pane, and click the Anti-Affinity tab in
the management pane.
g. Select the existing anti-affinity group, and click the Edit Anti-Affinity Group icon:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
h. Click the Virtual Machines tab:
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 105
i. Add a second virtual machine to the anti-affinity group, selecting a virtual machine that
is not located on the Oracle VM Server where the virtual machine already present in
the group resides.
Note: If all the virtual machines are under the control of a single Oracle VM Server,
perform the following steps:
Cancel the edit operation for the anti-affinity group.
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Migrate a nonrunning virtual machine to the Oracle VM Server that does not have
any virtual machines.
Restart the edit operation for the anti-affinity group.
In this example, the jeos_vm2 virtual machine is added to the Selected Virtual
Machines list:

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo
Click OK to complete the edit operation.
Your new anti-affinity group now has two members in it, as shown below:

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 106
2. Migrate one of the virtual machines in the anti-affinity group. In the following example, the
jeos_vm2 virtual machine is used for the migration operation.
a. In the navigation pane, right-click jeos_vm2 and select Migrate:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r )
There are no targets listed for the migration u
operation
G in the Migrate Virtual Machine
window.
g o v ent
b i b Stud
b cn this
u g o@ use
z (h
op e
L
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 107
b. Click the expand button for Why don't I see other servers to migrate to?.
Click the expand button for each Oracle VM Server listed under Why don't I see other
servers to migrate to?:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo You cannot migrate a virtual machine to an Oracle VM Server if the operation violates
the rule for any anti-affinity group.
Click the Cancel button to exit the Migrate Virtual Machine window.
3. Put the Oracle VM Server with the running virtual machine into maintenance mode.
Recall that, for each Oracle VM Server, there is a virtual machine that is listed in the
AA_group1 anti-affinity group.
In the following example, the Oracle VM Server ovsvr02.example.com, with the running
virtual machine, is used for this operation.
a. In the navigation pane, right-click ovsvr02.example.com and select Edit Server
from the shortcut menu.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 108
b. In the Edit Server window, select the Maintenance Mode check box and click OK to
complete the edit operation:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tra n
n -
a no
h a s ide
a r) t Gu
g v
orunning e n machine is not migrated to the other

ib this would
Notice that in this example, the d
tuviolate an anti-affinity rule.
virtual
n
Oracle VM Server, because
c b i s S
Depending on theblocation tofhyour virtual machines, your results may differ. But in all
g @
o an Oracle e
s VM Server enters maintenance mode, virtual machines will not
cases, when
u u
(h if the migration violates a rule for anti-affinity groups for the server pool. Other
migrate
z
op evirtual machines can migrate if the migration does not result in a conflict with any
o L anti-affinity group for the server pool.
H ug 4. Clean up.
a. Edit ovsvr02.example.com and deselect the Maintenance Mode check box.
If you have a migrating virtual machine, resulting from your Oracle VM Server entering
maintenance mode, the server is locked. Wait until the migration has completed before
removing maintenance mode on the server.
b. Delete the AA_group1 anti-affinity group.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 109
Practice 6-11: View VNIC Usage from the Vnic Manager
Overview
In this practice, you view the VNIC usage by your virtual machines from the Vnic Manager tool.

Tasks
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

1. From any view, access the Vnic Manager from the Tools menu:

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z (h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 110
2. All virtual machines with a VNIC assignment appear in the Manage Mac Addresses
section of the Vnic Manager window:
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
Lope
H ugo Use the scrollbar to view the entire range of MAC addresses.
Click the Close button to exit the Vnic Manager.

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 111
Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

e to
cens
l i
b le
s f era
tr an
n -
a no
h a s ide
a r) t Gu
g ov den
n b ib Stu
b c this
u g o@ use
z ( h
Lope
H ugo

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

Practices for Lesson 6: Managing Virtual Machines


Chapter 6 - Page 112

You might also like