Thursday Feb 26, 2009

Sun Ray 4.1 on OpenSolaris 2008.11

This is installation and troubleshoot procedures to install Sun Ray 4.1 on Opensolaris 2008.11 on my latop. Excellent write up on this is available on the following blog entries:

My intent is to use this at home as well as demo VDI at customer presentations. As such, I did not want to load the Sun Ray server in a Virtual Box session which would unnecessarily slow the the applications.

The networking setup is the crucial as I did not disable the NWAM properly and made system config as utadm expects. Troubleshooting the mistakes I made here took many hours. DO THE FOLLOWING.

  • Disable NWAM per Sun Sun Ray Wiki
  • Make sure /etc/hostname.interfacename has name and not the IP address. Otherwise, the DHCP config will not be successful.
  • /etc/nodename and /etc/hosts need to match /etc/hostname.interface. Otherwise, the DHCP config will not be successful.
  • Use utadm -A method and don't take default.
      Accept as is? ([Y]/N): n
      Do you want to offer IP addresses for this subnet? (Y/[N]): y
    
  • If you are staring at 26D on the Sun Ray device, then apply this work around.
    netservices open
    /opt/SUNWut/sbin/utrestart -c
    

Useful debugging commands:

utquery -d xx.xx.xx.xx
dhtadm -P
pntadm -L
pntadm -P

Comments:

i still have a problem when the server boots, the DTU stays at 26D, and the only workaround i found is just to do:
utrestart -c
and it works!

it seems that no Xnewt is started at boot!?

the 2008.11 is b101, with repository release/, not dev/

Any idea to have it working at boot?

thanks

Posted by gerard on April 02, 2009 at 02:59 AM EDT #

Same problem. A workaround is the following:

Modify the /etc/rc3.d/S99utwadmin script to contain a line calling utrestart -c after the webadmin is started - something like the following works fine (even though it is a hack)

#!/bin/sh
#
# ident "$Id$ SMI"
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
###########################################
# chkconfig header info for RH
#
# chkconfig: 5 99 35
# description: Sun Ray Web Administration
#
###########################################
# insserv header info for JDS/SuSE
### BEGIN INIT INFO
# Provides: utwadmin
# Required-Start: utsvc utds
# X-UnitedLinux-Should-Start:
# Required-Stop:
# X-UnitedLinux-Should-Stop:
# Default-Start: 5
# Default-Stop: 1 2 3 4
# Short-Description:
# Description: Sun Ray Web Administration
### END INIT INFO

# This script should not be invoked manually. The script is
# meant to start/stop the webserver automatically during system
# startup and shutdown. To start the webserver manually use the
# /opt/SUNWut/lib/utwebadmin script.

PRODUCT_INSTALL_DIR="/opt/SUNWut"
CONFIG_FILE="${PRODUCT_INSTALL_DIR}/webadmin/conf/webadmin.conf"
WEBADMIN_CMD="${PRODUCT_INSTALL_DIR}/lib/utwebadmin"
RAYCOLD_CMD="${PRODUCT_INSTALL_DIR}/sbin/utrestart -c"

case "$1" in
'start')
# check if webserver is enabled to start at boot time
# should have auto.start=yes entry in config file
if [ -f ${CONFIG_FILE} ]; then
GO=`grep '^auto.start=' ${CONFIG_FILE} | cut -f2 -d'='`
if [ "${GO}" = "true" -o "${GO}" = "TRUE" -o "${GO}" = "True" ]; then
${WEBADMIN_CMD} start
fi
fi
${RAYCOLD_CMD}
exit 0
;;

'stop')
if [ "`${WEBADMIN_CMD} status -p`" = "running=yes" ]; then
${WEBADMIN_CMD} stop
fi
exit 0
;;

*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0

Posted by bruehlicke on April 06, 2009 at 10:50 PM EDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Calendar

Feeds

Search

Links

Navigation

Referrers