|
Softpanorama |
May the source be with you, but remember the KISS principle ;-)
|
| Example 1 | History | Humor | Etc |
The following steps that are involved in setting up zones on your system for the first time.
Zones can be created using zone manager gui or command line tools:
|
|||||||
Example 1: simple zone using zoneadm
# mkdir -m 700 /export/z1 # -- create zone directory
# zoneadm list -cv ID NAME STATUS PATH 0 global running / # zonecfg -z z1 z1: No such zone configured Use 'create' to begin configuring a new zone. zonecfg:z1> create zonecfg:z1> set zonepath=/export/z1 zonecfg:z1> set autoboot=true zonecfg:z1> add inherit-pkg-dir zonecfg:z1:inherit-pkg-dir> set dir=/opt zonecfg:z1:inherit-pkg-dir> end zonecfg:z1> add net zonecfg:z1:net> set address=192.168.1.10 zonecfg:z1:net> set physical=hme0 zonecfg:z1:net> end zonecfg:z1> add attr zonecfg:z1:net> set name=comment zonecfg:z1:net> set type=string zonecfg:z1:net> set value="First zone" zonecfg:z1:net> end zonecfg:z1> verify zonecfg:z1> commit zonecfg:z1>exitAt this point file /etc/zones/z1.xml should be created and it is recommended to view it# zoneadm list -cv ID NAME STATUS PATH 0 global running / - z1 configured /z1Example 2: usage of the info command
It looks like you can add arbitrary number of directories in add inherit-pkg-dir (info command can be invoked either as dialog subcommand or as zonecfg -z z1 info):
zonecfg:zone1> info zonepath: /zone/z1 autoboot: true pool: inherit-pkg-dir: dir: /lib inherit-pkg-dir: dir: /platform inherit-pkg-dir: dir: /sbin inherit-pkg-dir: dir: /usr inherit-pkg-dir: dir: /opt net: address: 192.168.1.10 physical: hme1
Copyright © 1996-2008 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
Standard disclaimer: The statements, views and opinions presented on this web page are those of the author and are not endorsed by, nor do they necessarily reflect, the opinions of the author present and former employers, SDNP or any other organization the author may be associated with. We do not warrant the correctness of the information provided or its fitness for any purpose.
Last modified: March 15, 2008