Skip to main content

TOTD #64: OpenSolaris 2008/11 using Virtual Box

Posted by arungupta on January 13, 2009 at 10:56 AM PST

Here is a blog entry that was sitting in my Drafts folder for a long
time
(just because I didn't realize :). Anyway, it shows how to install href="http://opensolaris.org/">Open Solaris href="http://opensolaris.org/os/downloads/">2008/11
on Virtual Box.
The original install was done using Virtual Box 2.0.6. I installed
Virtual Box 2.1 this morning and the image was easily recognized by the
updated Virtual Box.



Here are the basic steps.





Create a new VM ...



href="http://blogs.sun.com/arungupta/resource/images/os811-create-new-virtual-machine.png"> style="border: 0px solid ; width: 700px; height: 421px;" alt=""
src="http://blogs.sun.com/arungupta/resource/images/os811-create-new-virtual-machine.png">



As part of the previous step, create a new Virtual Disk mapping to the
downloaded Open Solaris image ...



href="http://blogs.sun.com/arungupta/resource/images/os811-create-new-virtual-disk.png"> style="border: 0px solid ; width: 698px; height: 467px;" alt=""
src="http://blogs.sun.com/arungupta/resource/images/os811-create-new-virtual-disk.png">





The generated VM settings are shown as below:



href="http://blogs.sun.com/arungupta/resource/images/os811-vm-details.png"> style="border: 0px solid ; width: 700px; height: 815px;" alt=""
src="http://blogs.sun.com/arungupta/resource/images/os811-vm-details.png">



Click on "Start" and configure for the first run as:



src="http://blogs.sun.com/arungupta/resource/images/os0811-first-run.png">





Boot the Virtual Macine from the LiveCD shows the following GRUB:



href="http://blogs.sun.com/arungupta/resource/images/os811-grub-harddisk.png"> style="border: 0px solid ; width: 638px; height: 524px;" alt=""
src="http://blogs.sun.com/arungupta/resource/images/os811-grub-harddisk.png">



Take the default for Language and Keyboard and then the following
screen is shown after the boot:



href="http://blogs.sun.com/arungupta/resource/images/os811-after-livecd-boot.png"> style="border: 0px solid ; width: 700px; height: 570px;" alt=""
src="http://blogs.sun.com/arungupta/resource/images/os811-after-livecd-boot.png">



Click on "Install OpenSolaris" ...



href="http://blogs.sun.com/arungupta/resource/images/os811-installer-settings.png"> style="border: 0px solid ; width: 700px; height: 568px;" alt=""
src="http://blogs.sun.com/arungupta/resource/images/os811-installer-settings.png">



Clicking on "Install" starts the installation ...



href="http://blogs.sun.com/arungupta/resource/images/os811-installer-xfer-contents.png"> style="border: 0px solid ; width: 700px; height: 570px;" alt=""
src="http://blogs.sun.com/arungupta/resource/images/os811-installer-xfer-contents.png">



And finally the install is completed.



href="http://blogs.sun.com/arungupta/resource/images/os811-installation-finished.png"> style="border: 0px solid ; width: 700px; height: 569px;" alt=""
src="http://blogs.sun.com/arungupta/resource/images/os811-installation-finished.png">



Click on "Reboot", select "Boot from Hard Disk" and press Enter ...



href="http://blogs.sun.com/arungupta/resource/images/os811-grub.png"> style="border: 0px solid ; width: 640px; height: 525px;" alt=""
src="http://blogs.sun.com/arungupta/resource/images/os811-grub.png">



And then select if "full boot" or "text boot" is required as shown:



href="http://blogs.sun.com/arungupta/resource/images/os811-grub-harddisk.png"> style="border: 0px solid ; width: 638px; height: 524px;" alt=""
src="http://blogs.sun.com/arungupta/resource/images/os811-grub-harddisk.png">





And the welcome screen is shown as:



href="http://blogs.sun.com/arungupta/resource/images/os811-first-screen-after-installation.png"> style="border: 0px solid ; width: 700px; height: 557px;" alt=""
src="http://blogs.sun.com/arungupta/resource/images/os811-first-screen-after-installation.png">



Now you can develop your Rails
applications using the NetBeans
IDE
and deploy them on GlassFish
and MySQL easily as
explained href="http://blogs.sun.com/arungupta/entry/jruby_on_rails_and_mysql">here.
There are multiple updates to the stack described earlier - href="http://dist.codehaus.org/jruby/1.1.6/">JRuby 1.1.6,
Rails
2.2
, href="http://dev.mysql.com/downloads/mysql/6.0.html">MySQL
Alpha 6.0.x, href="https://glassfish.dev.java.net/downloads/v3-prelude.html">GlassFish
v3 Prelude, and href="http://www.virtualbox.org/wiki/Downloads">Virtual Box
2.1.



So go ahead and develop, deploy, and debug your Rails applications as
described in href="http://blogs.sun.com/arungupta/entry/screencast_26_develop_run_debug">screencast
#26. You can even manage your Rails applications using JMX as
described in TOTD href="http://blogs.sun.com/arungupta/entry/totd_61_how_to_locally">#61,
href="http://blogs.sun.com/arungupta/entry/totd_62_how_to_remotely">#62,
and href="http://blogs.sun.com/arungupta/entry/totd_63_jmx4r_gem_how">#63.



Hwo do you follow the latest on each technology:


And, of course, this
blog
talks about all of them :)



Please leave suggestions on other TOTD (Tip Of The Day) that
you'd like to see.
A complete archive of all tips is available href="http://blogs.sun.com/arungupta/tags/totd">here.




Technorati: totd
opensolaris
virtualbox
glassfish
netbeans
jruby href="http://technorati.com/tag/rubyonrails">rubyonrails
mysql

Related Topics >>