Chapter 31 Configuring the lx Branded
Zone (Tasks)

This chapter describes how to configure an lx branded
zone on your x64 or x86 based system. The process is basically the same as
the procedure to configure a Solaris Zone. A few of the properties are not
needed to configure a branded zone.

Planning and Configuring an lx Branded
Zone (Task Map)

Before
you set up your system to use zones, you must first collect information and
make decisions about how to configure the zones. The following task map summarizes
how to plan and configure an lx zone.

Task

Description

For Instructions

Plan your zone strategy.

Determine which applications you want to run in zones.

Assess the availability of disk space to hold the files in
the zone.

If you are also using resource management features, determine
how to align the zone with the resource management boundaries.

Decide what to call the zone based on the naming conventions. A path
on a Zetabyte File System (ZFS) is recommended. When the source zonepath and the target zonepath both reside on ZFS and
are in the same pool, the zoneadmclone command
automatically uses ZFS to clone the zone.

How to Configure the lx Branded
Zone

You use the zonecfg command described
in the zonecfg(1M) man page to perform the following actions.

Create the zone configuration

Verify that all required information is present

Commit the non-global zone configuration

Tip –

If you know you will be using CDs or DVDs to install applications
in an lx branded zone, use addfs to add read-only access to CD or DVD media in the global zone
when you initially configure the branded zone. A CD or DVD can then be used
to install a product in the branded zone.

After you have configured the branded zone, it is a good idea to
make a copy of the zone's configuration. You can use this backup to restore
the zone in the future. As superuser or Primary Administrator, print the configuration
for the zone lx-zone to a file. This example uses a file
named lx-zone.config.

If this is the first time you have configured this zone, you will see
the following system message:

lx-zone: No such zone configured
Use 'create' to begin configuring a new zone.

Create the new lx zone configuration
by using the SUNWlx template.

zonecfg:lx-zone> create -t SUNWlx

Alternatively, you can create a blank zone and explicitly set the brand:

zonecfg:lx-zone> create -b
zonecfg:lx-zone> set brand=lx

Set the zone path, /export/home/lx-zone in
this procedure.

zonecfg:lx-zone> set zonepath=/export/home/lx-zone

Set the autoboot value.

If set to true, the zone is automatically booted when the global zone is booted.
Note that for the zones to autoboot, the zones service svc:/system/zones:default must also be enabled. The default value is false.

zonecfg:lx-zone> set autoboot=true

Set persistent boot arguments for a zone.

zonecfg:lx-zone> set bootargs="-i=altinit"

If resource pools are enabled on your system, associate
a pool with the zone.