How do I create Zones on BeleniX ?

moinakg's picture

With the 0.7.1 release, BeleniX now ads support to create Zones based on ZFS snapshots and branded zones framework. BeleniX supplies a new Zone brand called SUNWbzfs. So to begin creating a Zone on BeleniX you will need to use the following commands:

zonecfg -z myzone1
myzone1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:myzone1> create -t SUNWbzfs

...

Consult Get Into The Zone article at Blatwave for an excellent guide to messing around with Zones. The Zones support in BeleniX includes a configuration file: /etc/bzfscfg.conf. This file defines the root dataset for the Zone's filesystem and a snapshot within that dataset from which to create a clone. By default this is defined to the root filesystem in the root pool and the @install snapshot created during install time. You can modify these values to your liking.