atom feed8 messages in org.opensolaris.brandz-discuss[brandz-discuss] HowTo: Install Lenny...
FromSent OnAttachments
Rob ClarkNov 10, 2008 5:29 am.debian
Edward PilatowiczNov 16, 2008 3:52 pm 
Rob ClarkNov 17, 2008 8:45 am 
TobiasDec 1, 2008 12:07 pm 
Kevin MonceauxJan 21, 2009 8:02 am 
Ed PleseJan 21, 2009 8:39 am 
Kevin MonceauxJan 21, 2009 8:49 am 
TucoAug 3, 2010 1:12 pm 
Subject:[brandz-discuss] HowTo: Install Lenny - Debian Linux ZFS using Solaris Zones
From:Rob Clark (rob1@aol.com)
Date:Nov 10, 2008 5:29:43 am
List:org.opensolaris.brandz-discuss
Attachments:
lx_init_zone.Debian - 21k

My favorite OS is Debian (and I'd like it even better if it had ZFS). I thought
I'd try getting it running using BrandZ.

I read http://opensolaris.org/os/community/brandz/install/ and
http://opensolaris.org/os/community/brandz/todo/linux_2_6/

1. Creating an Install Image: - I used the "Net Install .iso" to install Debian Lenny on WinXP under Vmware. - I tarred up the root and afterwards installed vmware-tools, rebooted, shared
my drive and snarfed the image. - I burnt the image to a DVD, now I can boot SXCE "bare-metal" and use the DVD
to copy the image.

2. Read the manual - See the above two URLs

3. My notes. I ended up doing something like this:

----------

## Read Docs man zonecfg

cd /export/home/user/

## Copy 3.6G image saved on DVD cp /cdrom/drivem/debian_t.bz debian.tar.bz

## Start Zones Service svcadm enable svc:/system/zones:default

## Start Zonecfg interactively zonecfg

## Use template file SUNWlx26.xml create -t SUNWlx26

## Set Installation Directory set zonepath=/export/linux_root

## Setup Networking add net set address=192.168.2.9/24 set physical=nge0 end

## Finsih configuration and quit zonecfg commit end

## Backup and edit lx_init_zone to work with Debian cp /usr/lib/brand/lx/lx_init_zone /usr/lib/brand/lx/lx_init_zone.origonal vim /usr/lib/brand/lx/lx_init_zone

## Install Debian and Boot the Zone zoneadm -z linux install -d /export/home/user/debian.tar.bz zoneadm -z linux boot

## Check on setup zoneadm list -iv ID NAME....... STATUS .. PATH .................... BRAND ..
IP 0 global ....... running .. / ............................. native
..... shared 1 linux ......... running .. /export/linux_root .. lx
............ shared

# Use _one_ of the following two commands to start Linux and see the OS prompt
(may need a C/R to 'awaken' login prompt). zlogin -C linux zlogin linux

----------

4. In the above notes where it says "vim /usr/lib/brand/lx/lx_init_zone" see the
attached file for my hack.

5. The end result is that it boots, and works above as good as the CentOS
example (no X11, no dmesg, etc.).

So if anyone ever wanted to see a Debian Linux ZFS system in action, there it
is.