Rolf Kersten's Weblog

Multi-Booting Sun Java Workstations

Freitag Aug 27, 2004


As I have written in my last blog, you can do a lot of interesting things with a Sun Java Workstation. One of these things certainly is installing and running a lot of different operating systems: Solaris (soon to be 64bit), Linux in 32bit and 64bit flavours, and Windows. Setting up a multi-boot system for all these operating systems needs careful planning regarding bootloader configuration and order of OS installation.

I wanted to have these operating systems side by side:



After going through lot of installing and re-installing, the following outline worked for me:

  • Start with empty disk

  • Install Windows XP 64-bit on a primary partition (the installer allows you to create one) - Important: Format the partition with FAT32 filesystem, not NTFS!!!

  • Insert Sun Java Desktop System CD, use expert partitioner and create:

    • a second primary partition (for later Solaris installation), with no filesystem

    • a third primary partition (spared for later use), with no filesystem

    • an extented partition covering the rest of the disk, inside that one these logical partitions:

      • one /boot partition for Java Desktop System and the GRUB bootloader

      • one swap partition

      • a root partition with ext3 filesystem (not reiser, RHEL cannot read it)

    • Then install Sun Java Desktop System. It recognizes the Windows FAT32 partition and installs GRUB into the MBR. If the Windows filesystem would have been NTFS, it would be damaged now - FAT32 is OK

    • Now you have dual boot

    • Insert Solaris Express boot CD. It will offer the first empty primary partition as installation target

    • After installation, GRUB is gone and replaced with the Solaris boot manager which only knows primary partitions (and so the Sun Java Desktop System partition is hidden)

    • So re-run Sun Java Desktop System install CD, select update. Update updates no packages, but reinstalls GRUB

    • Boot Sun Java Desktop System, edit „/boot/grub/menu.lst“ to include Solaris again. The easiest way to do that is to copy the Windows part which is already there and change the device path accordingly („root (hd0,2)“, for example. See GRUB documentation)

    • Redhat installation follows the same schema. Boot with RedHat CD, create and install in a (newly created) extended partition and DO NOT let RedHat install its own GRUB

    • After Redhat installation, Sun Java Desktop System GRUB again starts, with Redhat hidden. So boot Sun Java Desktop System, modify menu.lst again. This time it's trickier, you have to find out the kernel name (Sun Java Desktop System just uses /boot/linuz, Redhat uses /boot/linuz-<kernel version>)

    • This can be repeated until the disk is full

    • Backup all partitions with System Rescue CD (unfortunately not yet available for Solaris partitions)



[2] Kommentare
Like this post? del.icio.us | furl | slashdot | technorati | digg

How to install Sun Java Desktop System with OpenGL support on Sun Opteron workstations

Mittwoch Aug 25, 2004

Constantin wrote a blog on what you can do with our shiny new Opteron workstations, the Sun Java Workstation W1100z and W2100z. High on that list was running serious 3D applications for MCAD like PTC's ProEngineer Wildfire 2.0 on Linux.

The W1100z and W2100z currently come with out-of-the-box support for RedHat Advanced Server 3, but I wanted to have a neat integrated office desktop to run my 3D applications and decided to use the Sun Java Desktop System instead.

The machine for this excercise was a Sun Java Worstation W1100z with NVIDIA FX3000 graphics card. I did not manage to do a graphical installation with Java Desktop System for this combination (only got garbage screen), but the text interface worked fine. After one hour, three CDs were installed, the system booted sucessfully, albeit in text mode only.

Next task: Setting up the FX3000 graphics card. There are no drivers for the FX3000 included in Java Desktop System, but NVIDIA has Linux drivers on their Linux driver webpage. The Sun Java Desktop System is based on SuSE Linux, so it is very important to follow the detail step-by-step instructions decribed on the Nvidia Installer HOWTO for SuSE Linux users (which is also linked on the NVIDIA Linux driver page). First, use „yast2“ to add the „binutils“ and „kernel-source“ packages to the Java Desktop System default installation. After that, follow the instructions given in the HOWTO for SuSE Linux 8.2.

Almost done. Now consult the Readme file which is available on the NVIDIA Linux driver website and check all symbolic links. My Java Desktop System installation had „/usr/lib/libGL.so“ pointing to some MESA (an OpenGL clone) but not the original NVIDIA OpenGL driver, for example. After correcting that, OpenGL application worked with no problems. The defaults worked for me, but for those of you who want to dig further, the Readme lists literally hundreds of options for the XF86Config file to fine tune the driver.

Like this post? del.icio.us | furl | slashdot | technorati | digg