Posts:
69
From:
Registered:
1/12/06
|
|
|
|
Private Native Solaris Zone on BrandZ (Step by Step)
Posted:
Jan 29, 2006 6:33 AM
|
|
[b]NOTE:[/b] You must have BrandZ B31 and newer for this guide!
[b]0. Basic concept[/b] This is process of creation of Native Solaris Zone based on BrandZ zone extension. Goal of this effort is to get clone of Native Solaris Zone config for experiments with OpenSolaris based systems like [b]SchilliX[/b], [b]BeleniX[/b] and [b]nexenta[/b] with native system performance.
"privsnz" Brand = Private Native Solaris Zone on BrandZ can be also used for development of OpenSolaris kernel based systems, because BrandZ framework will hide "privsnz" branded zone from Global zone package operations.
"privsnz" will be clone default Native Solaris Zone with it's own scripts for Install, Boot and Halt.
This scripts are for now empty, but can be easily customised to directly install OpenSolaris based systems like [b]SchilliX[/b], [b]BeleniX[/b] and [b]nexenta[/b] Live CD images.
[b]Creation of "privsnz" Step by Step:[/b]
[b]1. Clonning Solaris Native Zone[/b] mkdir /usr/lib/brand/privsnz cp -r /usr/lib/brand/native/* /usr/lib/brand/privsnz/
[b]2. Customize files to represent "privsnz" [/b]
Edit /usr/lib/brand/privsnz/SUNWblank.xml Change <zone name="blank" zonepath="" autoboot="false"> to <zone name="blank" zonepath="" autoboot="false" brand="privsnz">
Copy blank to default cp /usr/lib/brand/privsnz/SUNWblank.xml /usr/lib/brand/privsnz/SUNWdefault.xml
edit /usr/lib/brand/privsnz/platform.xml Change <platform name="native">
to <platform name="privsnz">
[b]3. Add custom scripts to config[/b] edit /usr/lib/brand/privsnz/config.xml
Change <brand name="native"> <install>/usr/lib/lu/lucreatezone -z %z</install>
to <brand name="privsnz"> <install>/usr/lib/brand/privsnz/priv_install %z %R %*</install> <boot>/usr/lib/brand/privsnz/priv_boot %z %R</boot> <halt>/usr/lib/brand/privsnz/priv_halt %z %R</halt>
[b]4. Create empty scripts templates[/b] cat <<EOF > /usr/lib/brand/privsnz/priv_install #!/bin/bash # %z zonename %R zone root %* rest of params
exit 0 EOF
chmod 0755 /usr/lib/brand/privsnz/priv_install
cat <<EOF > /usr/lib/brand/privsnz/priv_boot #!/bin/sh # %z zonename %R zone root
exit 0 EOF
chmod 0755 /usr/lib/brand/privsnz/priv_boot
cat <<EOF > /usr/lib/brand/privsnz/priv_halt #!/bin/sh # %z zonename %R zone root
exit 0 EOF
chmod 0755 /usr/lib/brand/privsnz/priv_halt
[b]5. "privsnz" is ready[/b] You have now "privsnz" - BrandZ Private Native Solaris Zone for ready experiments.
Nice day Rudolf
|
|
|
Posts:
2
From:
Registered:
1/30/06
|
|
|
|
Re: Private Native Solaris Zone on BrandZ (Step by Step)
Posted:
Jan 30, 2006 4:29 PM
in response to: emuls
|
|
Excrements? That's a bit harsh...
|
|
|
|
Posts:
69
From:
Registered:
1/12/06
|
|
|
|
Re: Private Native Solaris Zone on BrandZ (Step by Step)
Posted:
Jan 30, 2006 9:56 PM
in response to: tshaw
|
|
Ou Thanks, Shinny typo!
I really preffer experimenting with zones :x
I also love automatic English SpellCheckers ;-)
Rudolf
|
|
|
|
|