Install OpenSolaris side by side with Nevada
Monday May 12, 2008
I have being running Nevada(think it as Solaris Express Community Edition if you are not a Sun employee) on my laptop since I joined Sun, upgrades from one build to another. Lately, I use Live Upgrade and that works great.
With the Image Packaging System available in OpenSolaris, I had being looking forward to migrate, but considered the fact that OpenSolaris does not support upgrade of existing Solaris, the desire to upgrade simply cannot be satisfied because I don't want to risk interruption of my daily work. The laptop is where I do all my work.
With the latest OpenSolaris 2008.05 live CD distributed at JavaOne, seeing the cool visual effect of compiz(Yes, I am that shallow to love eye candies), and after JavaOne it is usually OK to take a little break, so I took the plunge.
As I have being using live upgrade, I would like to free one of the slice used for the old BE and install OpenSolaris in that slice. I knew OpenSolaris at this point can only install to a Solaris partition or use the whole disk, so what should I do? This discussion gave me good hints, and thanks to Detlef Drewanz, his detail instructions make the migration a much easier experience.
Note the process requires a secondary HDD. I do have a spare IDE HDD, and a must-have SATA/IDE to USB 2.0 Adapter by Vantec.
So here is a quick note on what I did, not exactly, but roughly recalled:
- Connect the HDD with the USB adapter.
- Boot from OpenSolaris live CD, and install to the USB HDD.
- Reboot into the existing Nevada.
- ludelete <old BE>
- zpool create osol <free slice>, in my case, /dev/dsk/c0d0s3.
- zpool import rpool. This will make the OpenSolaris installation available in Nevada.
- zfs send -R rpool/ROOT/opensolaris@install | zfs receive -d osol
- mount -F zfs osol/ROOT/opensolaris /mnt
- cp /etc/zfs/zpool.cache /mnt/etc/zfs/zpool.cache
- cp /kernel/misc/sysinit /mnt/kernel/misc/
- cp /kernel/misc/amd64/sysinit /mnt/kernel/misc/amd64/
- touch /mnt/reconfigure
- vim /mnt/etc/vfstab to make sure correct pool is used.
- vim /boot/grub/menu.lst to add the new entry for OpenSolaris
- bootadm update-archive -v -R /mnt
- Reboot! Remove the USB HDD while rebooting.
- Enjoy OpenSolaris by configuring visual effect and start to install stuff with pkg. :-)











Or, .... Install Virtual Box and run it under ther...