By Stephen Repetski on Aug 14, 2009
While running Sun Ray on OpenSolaris might not be supported as of today, it most certainly does work! My latest project was getting a Sun Ray server set up as an Amazon Machine Image (AMI) in the Amazon Elastic Compute Cloud (EC2). Doing this is fairly simple, as there is already an OpenSolaris 2009.06 AMI (two, actually – one 32bit, the other 64bit – depending on the size of the instance you want) in the list that you can choose from.
After launching the new instance, all you really need to do is to download Sun Ray Software 5 EA1 and then follow this configuration guide. If you’re attempting to enable NSCM, RHA and the other components that need Motif libraries, follow the OpenSolaris 2009.06 appendix. Otherwise, just read and follow the page.
Notes for EC2 Instances
\*For EC2 instances, there is no need to play with NWAM – it is disabled by default, which makes everything just that much nicer.
\*When running utadm, I used the private IP that was assigned to the instance, instead of it’s public address. You should also use the private IP between Sun Ray servers if setting up a FOG.
ex. “utadm –A 10.209.79.0” if your IP is in this range. //Edit 2009-08-15, 0030 - changed "-a" to "-A"
One requirement that I was playing with was how to allow a Sun Ray to use multiple Sun Ray servers without needing to configure VPN, although this is not a hard step (as demonstrated here). The easiest way I came up with was to instead of put a single server in the “Servers” menu of the Sun Ray firmware, put in a DNS entry that had multiple entries for Sun Ray servers. I created a subdomain “sunray.mooo.com”, which points to the two Sun Ray servers that I set up so that both are available to be used by the Sun Rays.
Downsides of Multiple A Record method:
Now there is a downside to this method of foregoing VPN and simply using multiple A records in DNS. With this, you’re not guaranteed to be connected to the same Sun Ray server again if your Ray disconnects for any reason. In addition, you might need to reset your Sun Ray multiple times if a server goes down; nothing prevents the Sun Ray from skipping the offline server.
If the Sun Rays were VPN’ed into your Amazon “network”, the full Fail Over Group (FOG) experience would be there, and it would automatically fail you over to a different server if the one you were on were become unavailable.
If you just want a simple set-up and to be able to use a Sun Ray anywhere in the world with a 1-line configuration in the Ray’s firmware, you now know what to do. Happy Sun Ray using!
Edit 2009-08-14 1223 EST - If your machine is running headless, you may need to append '0=inactive' to /etc/X11/gdm/custom.conf to silence GDM errors that may show up in your logs.