OpenSolaris

Collectives Discussions Documentation Download Source Browser

Home » OpenSolaris Forums » zones » discuss

Thread: Private Native Solaris Zone on BrandZ (Step by Step)

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Jan 30, 2006 11:50 PM by: emuls Threads: [ Previous | Next ]
emuls

Posts: 69
From:

Registered: 1/12/06
Private Native Solaris Zone on BrandZ (Step by Step)
Posted: Jan 29, 2006 6:33 AM

  Click to reply to this thread Reply

[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

tshaw

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

  Click to reply to this thread Reply

Excrements? That's a bit harsh...

emuls

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

  Click to reply to this thread Reply

Ou Thanks, Shinny typo!

I really preffer experimenting with zones :x

I also love automatic English SpellCheckers ;-)

Rudolf




Terms of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
© 2010, Oracle Corporation and/or its affiliates

Oracle Logo