Saturday, July 05, 2008


Install Sun Studio Express 12 on SNV93 DomU at Xen 3.2.1 F8 Dom0



The sample bellow briefly demonstrates attaching SXDE ISO images to SNV_93 DomU as a block oriented device which could be mounted afterwards on /mnt folder at DomU to support Sun Studio 12 Express install on PV DomU via graphical interface provided by Sun Xvnc implementation. Actually,
xm block-attach command allows to avoid uploading ISO image to DomU,
lofiadm this image and etc. Ofcourse, having Solaris NFS share on the
LAN helps out immediately. Procedure makes sense for standalone developers
environment.


Create device /dev/dsk/c0d9s2 at DomU utilizing command:-
# xm block-attach file:/etc/xen/isos/snv90.iso 9 r








Then mount with options "-o ro -F hsfs" this device on /mnt directory at DomU:-








Setup Sun Xvnc at DomU as advised by OpenSolaris instructions:



svccfg -s application/x11/x11-server \
add display1
svccfg -s application/x11/x11-server:display1 \
addpg options application
svccfg -s application/x11/x11-server:display1 \
addpropvalue options/server astring: "/usr/X11/bin/Xvnc"
svccfg -s application/x11/x11-server:display1 \
addpropvalue options/server_args astring: '"SecurityTypes=None"'

# Configure dtlogin to start it

mkdir -p /etc/dt/config
cp /usr/dt/config/Xservers /etc/dt/config/Xservers
echo " :1 Local local_uid@none root /usr/X11/bin/Xserver :1" \
>> /etc/dt/config/Xservers
pkill -HUP dtlogin

useradd -m -d /export/home/user1 -s /bin/bash user1
chown -R user1:other /export/home/user1
passwd -r files user1

Connect from another terminal session with:
vncviewer IP-ADDREES-DomU:1
and verify you see the login screen and can
login to a desktop session as user1.




Open connection to DomU via vncviewer to run:-
$ su root
# /mnt/DeveloperToools/install_devtools.sh








Make sure Sun Studio has been installed:-