hey rob,

nice job on getting debian running.  the last time i tried it was with a
2.4 based syste, and for the most part it worked just fine.  the only
significant issue i ran into was that apt packaging was broken due to
the following known issue:
        6318648 flock() should be able to place a shared or exclusive lock 
regardless of the open mode

ed

On Mon, Nov 10, 2008 at 05:29:43AM -0800, Rob Clark wrote:
> 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.
> --
> This message posted from opensolaris.org


> _______________________________________________
> brandz-discuss mailing list
> brandz-discuss at opensolaris.org
>


Reply via email to