Disable NGZ autoboot
Posted: Fri Jun 14, 2013 2:07 pm
In order to prevent NGZs (template as an example) from booting up automatically, the following steps can disable it:
If we want to remove it from global zone, comment out entries in /etc/zones/index:
Code: Select all
orazone01:%zonecfg -z template
zonecfg:template> info
zonename: template
zonepath: /zonepool/zones/template
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
hostid:
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/sfw
net:
address: 10.0.32.255
zonecfg:template> set autoboot=false
zonecfg:template> info
zonename: template
zonepath: /zonepool/zones/template
brand: native
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
hostid:
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/sfw
net:
address: 10.0.32.255
zonecfg:template> verify
zonecfg:template> commit
zonecfg:template> exit
Code: Select all
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)zones-index 1.2 04/04/01 SMI"
#
# DO NOT EDIT: this file is automatically generated by zoneadm(1M)
# and zonecfg(1M). Any manual changes will be lost.
#
global:installed:/
oradev05:installed:/zonepool/zones/oradev05:647955c1-187c-c7fd-d129-cbb54c3a44dd
oraint03:installed:/zonepool/zones/oraint03:113d07e0-6a81-e10a-de28-8b7d05705721
#template:installed:/zonepool/zones/template:94436835-8959-c878-cbd4-bf67b1bd1152
oratest02:installed:/zonepool/zones/oratest02:7f19b668-7184-62ae-ee36-b2764f217d04
orautil01:installed:/zonepool/zones/orautil01:76131fe1-e241-44f2-ce65-f923f10259bf