Monday Sep 16, 2013

Oracle OpenWorld 2013 hands on labs: HOL9981, HOL9982 and HOL10003

oow2013

Oracle OpenWorld 2013 will  start in a few days. As every year, among the 2000+ sessions presented there will be many Hands on labs.

These labs are a unique opportunity to better understand several Oracle products (applications, database, middleware, OS, virtualization, ...). The idea of these labs is to enable 40 to 50 customers and partners to meet in a room and install/configure/use Oracle products on laptops during 1 or 2 hours, following detailed documentation and being helped by several Oracle experts.

Once again, thanks to Doan Nguyen (Principal product marketing director for Oracle VM), Olivier Canonge, Christophe Pauliat and I will run labs about Oracle VM for X86 virtualization.

This year, we were able to propose 3 labs. See details below.

HOL10003: Deploy and Manage a Private Cloud with Oracle VM and Oracle Enterprise Manager 12c

Date: Monday September 23, 3:15pm - 4:15pm
Location: Mariott Marquis Hotel, Room Nob Hill CD
Detailed documentation (PDF)

HOL9981: Best Practices for Migrating to Oracle VM and Oracle Linux from VMware and Red Hat

Date: Monday September 23, 1:45pm - 2:45pm
Location: Mariott Marquis Hotel, Room Nob Hill CD
Detailed documentation (PDF)

HOL9982: Oracle Real Application Clusters 12c: Deploying Four Nodes in Minutes with Oracle VM Templates

Date: Tuesday September 24, 5:15pm - 6:15pm
Location: Mariott Marquis Hotel, Room Nob Hill CD
Detailed documentation (PDF)

If you attend Oracle OpenWorld and are interested by Infrastructure Cloud or Virtualization, add those labs to your calendar using the Schedule Builder tool.

If you cannot be present, you can still run those labs at office or home using your own X86 machine by following the detailed documents.

Wednesday Sep 11, 2013

Script: Know which dom(0) hold a dom(u)

More than one time we would like to know on which physical server our guest resides without open a new connection to our Oracle VM Manager.

So I created a little script that interact with Oracle VM Manager 3 CLI and supply us this information automatically.

Requirements:

- expect installed

- Oracle VM Manager network reachable

Executing the script:

########################################################
 While executing on Oracle VM Guest:
 Use whohost.sh <Oracle VM Manager password> <Oracle VM Manager host>
 Example:
           whohost.sh Welcome1 ovm-mgr.oracle.local
########################################################
#####################################################################################
 If executed from a client and want to specify <guest id> or <guest name>:
 Use whohost.sh <Oracle VM Manager password> <Oracle VM Manager host> <guest vmid(uuid)>
 Example <guest id>:
           whohost.sh Welcome1 ovm-mgr.oracle.local id=0004fb00000600006e13bfb3507a2f29
 Use whohost.sh <Oracle VM Manager password> <Oracle VM Manager host> <guest name>

 Example <guest name>:            whohost.sh Welcome1 ovm-mgr.oracle.local name=vmdb01 #####################################################################################

This little bash script could be executed on a client ( laptop ) or directly on a guest; when executed on a linux guest

we can evaluate to leave out the guest vmid or guest name ( the script automatically picks up the uuid of the guest ).

Execution examples:

From a laptop ( simple client ):

[scoter@area51: ~]# ./whohost.sh Welcome1 srvovmm.oracle.local name=srvtestdb01.oracle.local
 Name = srvtestdb01.oracle.local
 Id = 0004fb0000060000d84a68991ef40c69
 Operating System = Microsoft Windows Server 2008
 Server = 00:14:5e:bc:a7:e8:00:14:5e:bc:a7:e8:00:0e:0c:b1  [srvovm04.oracle.local]

From an Oracle VM guest ( linux ):

 [root@srvlnx01 ~]# ./whohost.sh Welcome1 srvovmm.oracle.local
  Name = srvlnx01.oracle.local
  Id = 0004fb0000060000a8e1af6d58064b4f
  Operating System = Oracle Linux 5
  Server = 00:14:5e:bc:a7:e8:00:14:5e:bc:a7:e8:00:0e:0c:b1  [srvovm02.oracle.local]

Here you can find the little script.

I would like to thank you my colleague Jerome Anten for the collaboration on building up this little but handy script.

Corrections, comments and enhancements are welcome.

Simon Coter

Tuesday Sep 10, 2013

Configure Oracle VM Manager Guest Serial Console

Starting from Oracle VM release 3.2.1 a new button apparead on the guest dashboard.

This button, named "Launch Serial Console":


allows us to open the serial-console of our guest.

First time that I tried to use it I saw that I was not able to take advantage of it and I always received the following error:


 "The java telnet viewer is not installed on the manager server. Please contact your administrator to install the java telnet viewer on the manager".

Into the Oracle VM Manager log ( AdminServer.log ) we can see an error like this one:

####<Sep 10, 2013 4:42:44 PM CEST> <Info> <com.oracle.ovm.ras.servlet.DefaultTtyViewerJnlpServlet> <co701ovc.intranet.fw> <AdminServer> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <ebeb2dca554134bb:7f4e4f09:13f9f81e2e8:-8000-00000000004d100e> <1378824164483> <BEA-000000> <File /usr/lib/jta/classes/jta26.jar not found on the system or cannot be read >

 In this four steps you'll see how to correctly configure java-telnet-viewer on your Oracle VM Manager server:

1) download jta rpm ( java telnet ) from:

2) Enable serial-console on your linux guest.

NB: In this example will be reported changes done on an Oracle Linux 6 PVM guest machine. 

Further details on how-to enable guest serial console are available on MOS official document:

This document is related to Oracle VM 2.x version; regarding Oracle VM 3.x you have to modify 3 files on the guest:

# /boot/grub/grub.conf

# /etc/securetty

# /etc/inittab 

On Oracle VM 3.x manually modify "vm.cfg" file is not supported.

a. Edit grub.conf and append "console=hvc0" on the kernel line that will boot.

example:

kernel /vmlinuz-2.6.32-358.el6.x86_64 ro root=/dev/mapper/vg_vmdb01-lv_root rd_NO_LUKS rd_LVM_LV=vg_vmdb01/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg_vmdb01/lv_swap  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM LANG=en_US.UTF-8 console=hvc0

b. Edit "/etc/inittab" file and add following line:

co:2345:respawn:/sbin/agetty hvc0 9600 vt100-nav

c. Edit "/etc/securetty" file and add an entry for hvc0 device:

console

...

.....

.......

hvc0

3) Reboot your guest by Oracle VM Manager.

4) Connect to Oracle VM Manager console and use the OracleVM Manager guest serial console:

Official documentation Oracle VM Server Serial Console for x86 is avaiable at following link:

http://docs.oracle.com/cd/E35328_01/E35330/html/vmiug-manager-install.html#idp1400448

Thanks to Avi and Honglin for their valuable support.

Comments and corrections are welcome.

Simon Coter 

About

Simon Coter is a Technical Expert Core Technology consultant for Oracle. He works on projects covering more Oracle products such as Oracle Database, eBusiness Suite, Oracle VM, Oracle Linux, Oracle ExaData and much more.

Search

Categories
Archives
« September 2013 »
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
12
13
14
15
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today