Professional Documents
Culture Documents
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.
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.
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
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
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
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
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.
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
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
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
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 ~]#
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
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
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
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
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:
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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.
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:
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
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
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
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
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
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
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.
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 ~]#
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
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.
mg
n b ib Stu
/var/ovs/mount/2CE45E73EF6548808F711CA703B8D959/sharedDisk/nfsrepos1.i
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
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 ...
Passwords:
Copyright 2012, Oracle and/or its affiliates. All rights reserved.
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.
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
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.
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
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
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]#
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
collisions:0 txqueuelen:0
RX bytes:458867 (448.1 KiB) TX bytes:595898 (581.9
KiB)
collisions:0 txqueuelen:1000
RX bytes:458867 (448.1 KiB) TX bytes:595898 (581.9
KiB)
Interrupt:32 Base address:0x8000
u g o@ u se txqueuelen:1000
collisions:0
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
)
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
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
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
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
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.
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:
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
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.
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 ~]#
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
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
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
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.
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
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
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
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.
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
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
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
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.
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
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
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
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
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
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
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.
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
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
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:
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
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:
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
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:
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
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
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.
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
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:
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.
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.
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
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
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
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
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
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.
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
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
[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
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
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
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
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.
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
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
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
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
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.
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
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:
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
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
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.
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
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:
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
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
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
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
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
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
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.
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
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.
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
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
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
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
/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
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
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
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
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.
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.
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.
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
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.
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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.
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> ~]#
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]
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.
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
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.
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
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
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.
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.
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.
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
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.
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.
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
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 ~]#
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
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
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
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
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
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
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
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
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
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
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
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.
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
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:
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.
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
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
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.
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.
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
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
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
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
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
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
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
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
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
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
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:
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
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.
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
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
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
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.
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
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
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:
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
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.
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.
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
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.
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
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.
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
u g o@ use
z (h
op e
L
H ugo
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
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
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
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
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
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.
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
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
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.
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
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
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
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
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.
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.
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
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
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
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
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
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.
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
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
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
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
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
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.
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.
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.
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
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
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.
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:
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
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
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:
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
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.
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.
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
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.
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