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
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today