zone creation solaris 10

por | 18 marzo, 2016

https://blogs.oracle.com/mandalika/entry/solaris_10_zone_creation_for

chmod 700 /desm
chmod 700 /desm/zoneoe

zlogin zoneoe shutdown -i 0
zoneadm -z zoneoe halt
zoneadm -z zoneoe uninstall
zoneadm list -cv

zonecfg -z zoneoe
-------------------------------
create -b
set zonepath=/desm/zoneoe
set autoboot=true
set ip-type=shared
add net
set address=192.168.1.205
set physical=e1000g0
set defrouter=192.168.1.1
end
remove inherit-pkg-dir dir=/usr
remove inherit-pkg-dir dir=/sbin
remove inherit-pkg-dir dir=/lib
remove inherit-pkg-dir dir=/platform

-------------------------------

zoneadm -z zoneoe install

zoneadm -z zoneoe boot

zlogin -C -e [ zoneoe

 

Whole Root Zone(Updated 05/07/2008)

In a Sparse Root Zone, the directories /usr, /sbin, /lib and /platform will be mounted as loopback file systems. That is, although all those directories appear as normal directories under the sparse root zone, they will be mounted as read-only file systems. Any change to those directories in the global zone can be seen from the sparse root zone.

However if you need the ability to write into any of those directories listed above, you may need to configure a Whole Root Zone. For example, softwares like ClearCase need write permissions to /usr directory. In that case configuring a Whole Root Zone is the way to go. The steps for creating and configuring a new ‘Whole Root’ local zone are as follows:

 % zonecfg -z appserv
 appserv: No such zone configured
 Use 'create' to begin configuring a new zone.
 zonecfg:appserv> create
 zonecfg:appserv> set zonepath=/zones/appserver
 zonecfg:appserv> set autoboot=true
 zonecfg:appserv> add net
 zonecfg:appserv:net> set physical=eri0
 zonecfg:appserv:net> set address=192.168.175.126
 zonecfg:appserv:net> end
 zonecfg:appserv> add inherit-pkg-dir
 zonecfg:appserv:inherit-pkg-dir> set dir=/opt/csw
 zonecfg:appserv:inherit-pkg-dir> end
 zonecfg:appserv> remove inherit-pkg-dir dir=/usr
 zonecfg:appserv> remove inherit-pkg-dir dir=/sbin
 zonecfg:appserv> remove inherit-pkg-dir dir=/lib
 zonecfg:appserv> remove inherit-pkg-dir dir=/platform
 zonecfg:appserv> info
 zonepath: /zones/appserver
 autoboot: true
 pool:
 inherit-pkg-dir:
         dir: /opt/csw
 net:
         address: 192.168.175.126
         physical: eri0
 zonecfg:appserv> verify
 zonecfg:appserv> commit
 zonecfg:appserv> exit