Multiboot - Solaris and Ubuntu
By aalok on Aug 30, 2007
to run both Solaris and Ubuntu. Ubuntu mostly
because I want to run VMware, which does not
support Solaris as the host operating system (yet?).
I wanted to run VMware mostly to cut down my
development time (I'll save the answer to how I do
that for another day).
I failed miserably in trying to get Ubuntu grub to
boot Solaris; which I later found out that it doesn't
work because the required changes to Solaris grub haven't
gone back to the mainstream grub code.
I also realized that the order in which the two operating
systems are installed is also important primarily because
of the deficiency in grub - Ubuntu must be installed first
and Solaris second. This results in Solaris grub being
installed in the master boot record which can then be
taught about where to find Ubuntu by adding an entry such
as this to /boot/grub/menu.lst -
title Ubuntu, kernel 2.6.20-15-generic
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=91647296-9aca-4d1f-bdfd-7894ff9f0807 ro quiet splash
Having said this, I also found by trial and error that
if you do install Solaris first and Ubuntu second with
the result Ubuntu grub lands in the MBR; you can salvage
the situation by manually slamming Solaris grub into the MBR.
In order to do this, boot off of the Solaris media and
get a shell. Then utter the following incantation -
# /sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/cNdNsN
where cNdNsN is the root slice. This restores sanity and
you can now add the lines for Ubuntu to the menu.lst
Please note that the Solaris release on the media should be
as close as possible to the installed Solaris release (if not