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.


Posted by Joerg Barfurth on February 21, 2007 at 07:31 AM PST #
Thanks!
Posted by ThinGuy on February 21, 2007 at 07:34 AM 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 24, 2008 at 05:39 AM PDT #