Sun Ray on OpenSolaris Work-around

If you try to run Sun Ray Server Software on an OpenSolaris distro or Solaris 10 U3 and you have netservices limited enabled, you will run into trouble getting your Sun Rays to come up.  You may luck out at getting a couple up after a reboot, but most will sit there with an OSD code of 26 (Waiting on Xserver) .  If you do a utrestart -c, none of them will come up.

We've narrowed it down to dtlogin being started with the -udpPort 0 argument when in limited mode (I just can't call it SBD without giggling).  And while our crack crew of programmers who actually understand code review what's causing this failure  here's a workaround that allows you to enjoy bleeding edge Solaris on the worlds best thin client.  Note that this does not affect CAM sessions as those invoke their own Xserver outside of SMF.

Option 1: Run netservices in open mode. 

Pros: Easy. 

Cons: Enables things you might not want enabled, such as telnet (especially after this week) and there is perhaps a related issue when moving from netservices limited to open dtlogin goes into maintenance mode, so there remains a little work to do.

How:

#netservices open
#svcadm disable cde-login
#pkill -9 dtlogin (because at this point dtlogin is wedged)
#svcadm enable cde-login
#/opt/SUNWut/sbin/utrestart -c

All your Sun Rays will come up now.  No further actions are needed unless you go back into limited mode.

Option 2: Change the way dtlogin starts in limited mode

Pros: More secure

Cons: A little more work

How:

#svcadm disable cde-login
#pkill -9 dtlogin (because at this point dtlogin is wedged)
#svccfg
svc:> select application/graphical-login/cde-login
svc:/application/graphical-login/cde-login> setprop dtlogin/args = ""
svc:/application/graphical-login/cde-login> exit
#svcadm enable cde-login
#/opt/SUNWut/sbin/utrestart -c

All your Sun Rays will come up now.  No further actions are needed unless you run netservices limited which will put the -udpPort 0 argument back.

Update: Jeremy found the bug.  It will be fixed in Build 60 of SNV.  I'm awaiting word on if the troubles folks have seen on  S10 U3 w/ netservices limited is the same bug or not.

Comments:

Of course you can simplify the svccfg step, by doing it as
#svccfg -s application/graphical-login/cde-login  setprop dtlogin/args = '""'
which reduces the 'more work' to typing (or copying) a longer line..

Posted by Joerg Barfurth on February 20, 2007 at 11:31 PM PST #

Thanks Joerg. I'm a SMF n00b so I just followed the guide. I was looking for a short cut (without really looking hard).

Thanks!

Posted by ThinGuy on February 20, 2007 at 11:34 PM PST #

Hi, I'm playing with Solaris 10 11/07 in a VMWare appliance with a SunRay 1G connected to it.

I'm receiving the same 26D and the log shows this:

utxexec ERROR: Cannot open display :2
utxinit ERROR: X session startup timeout, diplay 2

Maybe I have to upgrade Xorg? how to do this?.

Leonardo

Posted by Leonardo M. Ramé on October 23, 2008 at 10:39 PM PDT #

Post a Comment:
Comments are closed for this entry.
About

Think Thin is a collection of bloggers that work with Oracle's Virtual Desktop portfolio of products.

Search

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