Howto: OpenSolaris snv82 VirtualBox hosting OpenSolaris CE snv87

Hello,

This is a cookbook for myself.

Content:

1) Intro

2) VirtualBox install

3) Post-installation

4) Appendix

5) Conclusions

—————————————————–

1) Intro:

I want to keep up with the development of the OpenSolaris. At this time the community edition is snv_87.

As I have installed the “Solaris express Developer Edtion 1/08, and I am using it as a day-to-day workststation, I don’t want to mess up my current setup (emails, documents, devleopments …), I choose to use the VM scheme to install the “bleeding” edge version.

Online tool:

http://www.sun.com/bigadmin/hcl/hcts/device_detect.jsp

Thru browsing the net, I came to know the existence of Innotek’s VirtualBox. I believe that Sun corp. has acquired this company lately.

I tried it on Vista, with Ubuntu 7.10 as the guest. So far, so good.

Now, I have installed it on my OpenSolaris system (external disk).

The VirtualBox for OpenSolaris AMD64 version is 1.5.51. Download site is at:
http://www.virtualbox.org/wiki/Downloads

2) VirtualBox Install:

After the downloading of

VirtualBox-opensolaris-amd64-1.5.51-r28040-beta1.gz

In Nautilus, double-click the package to extract the executable.

In a terminal, as root:

# ln -s /path/ VirtualBox-1.5.51-SunOS-amd64-r28040 /usr/bin/VirtualBox

Execute:

#VirtualBox

The VirtualBox window is displayed.

Click on the “New” icon, the wizard window is shown , click on Next.

Next frame, VM name and host type: fill in the required name and choose host type as “solaris” from the pulldown menu.

Click next. The Memory frame is showed, slide the ruler to fix the amount of memory you are willing to reserve. I set it at 1GB. This amount is a minimum for using Solaris Express Studio.

Click next. The Virtual hard disk frame is shown. In the box “Boot Hard disk (primary master):

Click on new . The “Virtual Disk Image type” frame is shown. Choose “image type as Dynamically expanding image (in the net forums as manual, it is advised to choose this option, for the time being).

Click Next. The ” Virtual Disk Location and Size” frame is shown. Slide the ruler for at least 15 GB. As I have plenty of disk space under /export/home, I want to put the “image” of the virtual disk in my home directory. Click the icon “Folder” in the box labelled as “Image filename”. The file browser is shown. Click on the icon “one directory up” and continue to click it so that the /export/home/myhome directory is shown in the field “Look in”. Fill in the name of the file: mine is “solaris87″.

Click save. The “Virtual Disk Location and size is shown back, with the file path filled.

Click Next. The summary is shown.

If it is ok, the click on finish. The ” Virtual Hard Disk” frame is shown back.

Click on Next. Again, the Summary is shown.

Click finish.

You have now an guest OS icon dispkayed in the left pane of the VirtualBox window. It is labelled as “powered off”. On the right pane, you will see item icons:

General, Hard disk, cd/dvdrom , floppy, audio, network,serial ports,shared folders, remote display.

Click on the related icon in order to activate the device.

I activate Network (shown as Adpater 0 NAT), cd/DVD.rom .

As I have already configured my ethernet card (D-LINK 528T) on the current host, the default file pnc and pnc.conf will take it. (Cf. my former posting on OpenSolaris installation).

Put in the Dvd containing the iso image of Opensolaris Ce snv_87. I burned it with the host OpenSolaris Express Developer edition. To do this: Go to places -> CD/Dvd creator. Choose the option “file content of the iso image”.

Back to the VirtualBox, now, click on “Start” icon.
The snv_87, boots, choose the Solaris express item (the second one).

Euh … The installation takes quite a “long” time …

3) post-installation:

To get the src code of the opensolaris, look at:

http://www.opensolaris.org/os/downloads/on/.

At http://dlc.sun.com/osol/on/downloads/b87/

I download the following packages, install and configured as explained on opensolaris website:
on-src.tar.bz2

on-closed-bins.i386.tar.bz2 (x86)

SUNWonbld.i386.tar.bz2 (x86)
The Sun Studio Express can be obtained at:

http://developers.sun.com/sunstudio/downloads/express/

4) Appendix
PC: Lenovo 3000
Amd Athlon 64×2 4000+, 2GB ram, 160Gb Disk, cdrom/Dvd, dedicated to Windows Vista Pro.
USB extrernal disk 320 GB, dedicated to Linux and Solaris.

At http://docs.sun.com/app/docs/doc/819-5257,

Useful book: Sun Studio 12:Debugging a program with dbx

5) Conclusions:

VirtualBox: No sound

Guest OS: Quite good, except for firefox. The later is a little bit whacky, when browsing a long html page. Better use the key arrows to go up and down.

My setup for the source seems to be ok. But, when I try to compile a simple command such as “ls” (usr/src/cmd/ls), problems come up, included files not found <>. Despite the fact that this release does have SUNWhea installed (pkginfo, pkgchk). The missing required system include files are found in the source tree (find / -name xxxx).
For a simple “echo”, it is ok.

In addition to the bldenv -d ./opensolaris.sh, I have to tweak the Makefile (add -g to CFLAGS).

In dbx ./echo, I was able to debug with the source.

Probably, I miss still some required configurations.

VirtualBox for OpenSolaris 1.5.6 is out.

Leave a Reply

You must be logged in to post a comment.


Bad Behavior has blocked 22 access attempts in the last 7 days.

Close
E-mail It