Friday, November 9, 2012

Virtual Box with SMF control

SMF

The Service Management Facility (SMF), first introduced in Solaris Nevada, as project Greeline, and then later in the commercial Sun Solaris, is the modern way to manage system and application services in a self healing, fault tolerant way. It replaces the old init mechanism.

Some historical background information (including all the PSARCs) on SMF is still available at opensolaris.org.

Another good read is the Joyent wiki.

VirtualBox


Alexandre Dumont published some scripts for Virtual Box, to integrate with SMF. That was in 2009. Not too long ago, I was trying to find his blog and it was down.

I just stumbled upon:
https://forums.virtualbox.org/viewtopic.php?f=11&t=33249

And there is a sourceforge project for it, here:
http://sourceforge.net/projects/vboxsvc/

Installation


From the README, using the pkgadd in a global zone:

    # gzcat COSvboxsvc-0.16.pkg.gz > /tmp/x
    # pkgadd -d /tmp/x -G

You probably want the -G flag. It doesn't block you from manually installing
the same package in a certain local zone where you'd use VirtualBox, but
it blocks automatic package propagation to those local zones which are
not expected to use and run VirtualBox. For us these zones are rare,
zero or one per machine (there is no definite/hardcoded limit though). YMMV.

To update the package you can simply remove the old version and install
anew, i.e.:
    # gzcat COSvboxsvc-0.16.pkg.gz > /tmp/x
    # pkgrm COSvboxsvc
    # pkgadd -d /tmp/x -G

A cleaner way is to use an admin file to overwrite an existing package,
i.e. one from LiveUpgrade:
    # gzcat COSvboxsvc-0.16.pkg.gz > /tmp/x
    # pkgadd -d /tmp/x -G -a /etc/lu/zones_pkgadd_admin

Also note that this package "depends" on SUNWvbox, so that should be
installed beforehand.

Thursday, November 8, 2012

Tribblix

 

 

OpenSolaris


When Solaris was open sourced, several distributions came to life from the OpenSolaris source code. Most of them however relied on closed bits provided by Sun. Then Oracle came and put Han Solo in a carbonite... err, wrong story. But you get the point.

With the emergence of Illumos (opensolaris with 100% open bits), we are starting to see again a surge in number of distributions based on it, and this is great news.

Now, there are several focusing on storage, and of course that is a natural application for an operating system based on Solaris technologies, such as ZFS.

But I want a desktop. I'm currently using OpenIndiana, and it works fine for my needs, better than any other OS on the planet, due to the fact I need to manage largish projects on my desktop. One in particular has over 3/4 million lines of code. Zones (clones) and snapshots are a must to tackle that. And dtrace to debug. But if you've ever used Solaris 10 or above you already know that.

Tribblix


Today, we are looking briefly at Tribblix.

The homepage is at http://www.tribblix.org/

What's in the name? Peter Tribble answers: "
Well, while it may seem rather vain, if I were to choose a name from scratch I would probably have come up with some obscure solar-powered pun. But at one of the OpenSolaris summits we took part in a Go Game, and one of the questions was:
Which of the following is not an OpenSolaris-derived distribution:
  • Schillix
  • Tribblix
  • Belenix
  • OpenSolaris 2009.06
I'm not sure that whoever set the question knew how close that was to the name of someone on the project, but that was how the name became planted in my consciousness."

Pretty funny... At that time, there was no Tribblix, but it sparked something, and Peter has now released Tribblix.

Speaking of Sparc


When asked on the illumos discussion list about availability of a Sparc version (Tribblix is x86), Peter indicated the following:
"
Do you have a SPARC ISO for your SVR4 distro, Peter?

Not yet. That shouldn't be too difficult. (It's much easier to develop
and test on x86, as I can repeatedly spin something up in VirtualBox
until I get it right. The differences in building the ISOs for sparc are
relatively small.)

As I recall, though, Martin said he had stripped out the IPS packaging
from his DVD, which I would need in order to convert all the packages."

Peter is referring to Martin Bochnig's own distribution that runs on Sparc systems. I will cover that one in the next blog post.

ISO Please


It is to be found here: http://www.tribblix.org/tribblix-0m1.iso

From OpenIndiana, it is a simple matter of issuing:

$ cdrw -i tribblix-0m1.iso

From any other OS, use your favorite method to burn an ISO. This is a CD image, btw, something rare nowadays.

Install


The installation process is relatively quick, but it is for people who are well versed in the Solaris OS. After choosing your country and language, you'll have to play with format and fdisk before starting the install process.

Instead of going through the steps here I will point you to Peter's install guide.

One thing I'll point out, when you are about to run the install script, make sure you type the following:

/.cdrom/live_install.sh c1t0d0s0 x11 retro-desktop develop xfce
That way, you install x11 etc. Else, you are 100% command line.





Desktop


When you boot Tribblix, you end up with a text login prompt. This is also the approach Raspbian are taking for the Raspberry Pi. I like that.

You login as jack initially (just as you would login as pi on a Raspbian distro). Then you can either startx, which will give you a spartan desktop called TWM. For some that might be enough.

TWM: Spartan and fast
You can also run wmaker.inst to modify your startx to use WindowMaker. I ran this with 512MB of ram, and it runs, a little tight.

WindowMaker

 XFCE


Peter did set it up so you could also start XFCE effortlessly. Instead of typing the typical startx,you would:

$ startxfce4
XFCE4: light yet full featured

What is interesting is that with 512MB of RAM, I still have 108MB free on the above screenshot.

There is potential thus to port this over to the Raspberry Pi. The Pi uses an ARM11 (ARM V6) processor, but OpenSolaris had been ported to ARM in the past: http://hub.opensolaris.org/bin/view/Project+osarm/installation. Another real plus to a port to the Raspberry Pi is that the hardware is pretty much set in stone, so no need for a bazillion sound and video drivers, for example.

Anyway, this concludes our brief review of Tribblix. It is very much a work in progress, but it shows that some interesting stuff can happen still with regards to Solaris and derived distributions.

Saturday, November 3, 2012

That is so wrong...

At some point, somehow, somebody thought this would be a good idea...