Monday, September 22, 2008

Just for you DJ:

DJ requested that I put a blurb on how I was able to get redirection working in my vmware+vdi+xpVM solution.

After someone told me how to do it, it was actually quite simple.

1. First, without using vdi, use uttsc and redirect the serial port that you want to windows. For example:
/opt/SUNWuttsc/bin/uttsc -r comport:COM2=$DTDEVROOT/unit/dev/term/a -m -b -t 1800 [ipaddress]

The above command redirects {-r} to COM2 what ever device is on serial {$DTDEVROOT/unit/dev/term/a}. Couple of caveats. The serial port on all sun ray 2's is 9600 baud 8,n,1,off. So if your device attached to the sun ray is say and 19200 baud, it won't work. Test this via command line first and get it working. Once that is done, move on to step 2.
2. So all of the Sun Ray compents are great, because they are shell scripts, so they are easily modified. If we were just using uttsc to a windows term server, we would just put it into the web gui of the Sun Ray interface. No such luck with VDI.

So we have to actually modify the VDI shell script that does all of the "Magic".

  1. stop VDA: /opt/SUNWvda/sbin/vda-service stop
  2. Backup the VDA script. cp /etc/opt/SUNWkio/sessions/vda/vda /etc/opt/SUNWkio/sessions/vda/vda.bk
  3. On line 97 and 99, of the /etc/opt/SUNWkio/sessions/vda/vda script, you will see the lines that start with $theUTTSCScript. Add the "-r comport:COM2=$DTDEVROOT/unit/dev/term/a" to both of the lines, either before or just after the current {-r disk:u=...}
  4. Kill all of the VDA/Kiosk Sessions {utrestart -c}, as one's that already exist won't issue this script. Restart the VDA {vda-service stop}
  5. Insert your card, and botta Bing. Should be good to go.
I hope this help DJ.

1 comment:

Anonymous said...

Hey, thanks very much :-)