|
Softpanorama |
May the source be with you, but remember the KISS principle ;-)
Softpanorama Search
|
| 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-2009 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). Site uses AdSense so you need to be aware of Google privacy policy. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
Disclaimer:
Last modified: August 11, 2009