Sonntag, November 30th, 2008 | Author: jean

Lunar Linux Zone in OpenSolaris

As i’m used to Lunar Linux and i don’t wanna miss it, i looked for a way to use Lunar Linux as a Zone instead of the available CentOS/Fedora thingy. This is the result

Limitations due to Zones themself

Known Bugs

  • lunar ncurses dialog got some glitches, still usable.
  • df within the Zone shows incorrect data (48T Size, 241G Used, 48T Avail on 250GB Sata host)

Howto Install

I create an image of Lunar for this. This image got all needed base-tools installed and is optimized for i686 with MMX and Floating Point 387. I recompiled it all within the Zone Afterwards to provide a very clean image. The Root Password is “lunar”. Some Adjustments was made otherwise the image wouldn’t run. You can get this image from here: osol_lunar_zone.tar.gz ( MB)

# Get the 2.6 thingy - You'll need it.
cd /etc/zones
wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml

When using zonecfg there are a few other things possible, too. If you wanna tune this, try the following document: Chapter 17 Non-Global Zone Configuration (Overview)for a quick start, just use my settings as explained:

# Creating the Zone
chani@yulivee:~# zonecfg -z ll
ll: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:ll> create -b -t SUNWlx26
zonecfg:ll> set zonepath=/export/ll
zonecfg:ll> add net
zonecfg:ll:net> set address=192.168.2.20/24
zonecfg:ll:net> set physical=nfo0
zonecfg:ll:net> end
zonecfg:ll> add attr
zonecfg:ll:attr> set name="audio"
zonecfg:ll:attr> set type=boolean
zonecfg:ll:attr> set value=true
zonecfg:ll:attr> end
zonecfg:ll> set autoboot=true
zonecfg:ll> add attr
zonecfg:ll:attr> set name=comment
zonecfg:ll:attr> set type=string
zonecfg:ll:attr> set value="This is my Lunar Linux install"
zonecfg:ll:attr> end
zonecfg:ll> set scheduling-class=FSS
zonecfg:ll> set limitpriv="default,sys_time"
zonecfg:ll> verify
zonecfg:ll> commit
zonecfg:ll> exit
chani@yulivee:~#
# getting the image
wget http://www.jeanbruenn.info/downloads/osol_lunar_zone.tar.gz
# installing the image
zoneadm -z ll install -d lunar_zone.tar.gz
# This should give out something like:
A ZFS file system has been created for this zone.
Installing zone 'll' at root directory '/export/ll'
from archive '/export/home/chani/image2.tar.bz2'

This process may take several minutes.

Setting up the initial lx brand environment.
System configuration modifications complete.
Setting up the initial lx brand environment.
System configuration modifications complete.

Installation of zone 'll' completed successfully.

Details saved to log file:
    "/export/ll/root/var/log/ll.install.5199.log"

Using it

zoneadm -z ll boot
zlogin -C ll

You should see a loginprompt.

What now?

  • Well. you could try using lunar optimize to tune your settings a bit, though i would recommend to NOT tune them. They’re on i686 with MMX and floating point 387, this should be fine for most Applications.
  • You could try to install some x11 stuff which you forward to your opensolaris display.
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply » Log in

Please copy the string Wlf4zo to the field below: