Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1m/zonecfg.1m.man.txt
          +++ new/usr/src/man/man1m/zonecfg.1m.man.txt
   1    1  ZONECFG(1M)                  Maintenance Commands                  ZONECFG(1M)
   2    2  
   3    3  
   4    4  
   5    5  NAME
   6    6         zonecfg - set up zone configuration
   7    7  
   8    8  SYNOPSIS
   9      -       zonecfg {-z zonename | -u uuid}
        9 +       zonecfg -z zonename
  10   10  
  11   11  
  12      -       zonecfg {-z zonename | -u uuid} subcommand
       12 +       zonecfg -z zonename subcommand
  13   13  
  14   14  
  15      -       zonecfg {-z zonename | -u uuid} -f command_file
       15 +       zonecfg -z zonename -f command_file
  16   16  
  17   17  
  18   18         zonecfg help
  19   19  
  20   20  
  21   21  DESCRIPTION
  22   22         The zonecfg utility creates and modifies the configuration of a zone.
  23   23         Zone configuration consists of a number of resources and properties.
  24   24  
  25   25  
  26   26         To simplify the user interface, zonecfg uses the concept of a scope.
  27   27         The default scope is global.
  28   28  
  29   29  
  30   30         The following synopsis of the zonecfg command is for interactive usage:
  31   31  
  32      -         {-z zonename | -u uuid}
  33      -         zonecfg {-z zonename | -u uuid} subcommand
       32 +         zonecfg -z zonename subcommand
  34   33  
  35   34  
  36   35  
  37   36  
  38   37         Parameters changed through zonecfg do not affect a running zone. The
  39   38         zone must be rebooted for the changes to take effect.
  40   39  
  41   40  
  42   41         In addition to creating and modifying a zone, the zonecfg utility can
  43   42         also be used to persistently specify the resource management settings
↓ open down ↓ 143 lines elided ↑ open up ↑
 187  186         (global)
 188  187  
 189  188             scheduling-class
 190  189  
 191  190  
 192  191         (global)
 193  192  
 194  193             fs-allowed
 195  194  
 196  195  
 197      -       (global)
 198      -
 199      -           zfs-io-priority
 200      -
 201      -
 202  196         fs
 203  197  
 204  198             dir, special, raw, type, options
 205  199  
 206  200  
 207  201         net
 208  202  
 209      -           address, allowed-address, defrouter, global-nic, mac-addr,
 210      -           physical, property, vlan-id
      203 +           address, physical, defrouter
 211  204  
 212  205  
 213  206         device
 214  207  
 215  208             match
 216  209  
 217  210  
 218  211         rctl
 219  212  
 220  213             name, value
↓ open down ↓ 146 lines elided ↑ open up ↑
 367  360             or 0X prefix is optional. Both uppercase and lowercase hexadecimal
 368  361             digits are acceptable.
 369  362  
 370  363  
 371  364         fs: dir, special, raw, type, options
 372  365  
 373  366             Values needed to determine how, where, and so forth to mount file
 374  367             systems. See mount(1M), mount(2), fsck(1M), and vfstab(4).
 375  368  
 376  369  
 377      -       inherit-pkg-dir: dir
      370 +       net: address, physical, defrouter
 378  371  
 379      -           The directory path.
 380      -
 381      -
 382      -       net: address, allowed-address, defrouter, global-nic, mac-addr,
 383      -       physical, property, vlan-id
 384      -
 385  372             The network address and physical interface name of the network
 386  373             interface. The network address is one of:
 387  374  
 388  375                 o      a valid IPv4 address, optionally followed by "/" and a
 389  376                        prefix length;
 390  377  
 391  378                 o      a valid IPv6 address, which must be followed by "/" and
 392  379                        a prefix length;
 393  380  
 394  381                 o      a host name which resolves to an IPv4 address.
↓ open down ↓ 8 lines elided ↑ open up ↑
 403  390  
 404  391             A zone can be configured to be either exclusive-IP or shared-IP.
 405  392             For a shared-IP zone, you must set both the physical and address
 406  393             properties; setting the default router is optional. The interface
 407  394             specified in the physical property must be plumbed in the global
 408  395             zone prior to booting the non-global zone. However, if the
 409  396             interface is not used by the global zone, it should be configured
 410  397             down in the global zone, and the default router for the interface
 411  398             should be specified here.
 412  399  
 413      -           The global-nic is used for exclusive stack zones which will use a
 414      -           VNIC on-demand.  When the zone boots, a VNIC named using the
 415      -           physical property will be created on the global NIC.  If provided,
 416      -           the mac-addr and vlan-id will be set on this VNIC.
 417      -
 418      -           The property setting is a resource which can be used to set
 419      -           arbitrary name/value pairs on the network.  These name/value pairs
 420      -           are made available to the zone's brand, which can use them as
 421      -           needed to set up the network interface.
 422      -
 423  400             For an exclusive-IP zone, the physical property must be set and the
 424  401             address and default router properties cannot be set.
 425  402  
 426  403  
 427  404         device: match
 428  405  
 429  406             Device name to match.
 430  407  
 431  408  
 432  409         rctl: name, value
↓ open down ↓ 137 lines elided ↑ open up ↑
 570  547             those filesystems can be mounted.
 571  548  
 572  549             This property does not apply to filesystems mounted into the zone
 573  550             via "add fs" or "add dataset".
 574  551  
 575  552             WARNING: allowing filesystem mounts other than the default may
 576  553             allow the zone administrator to compromise the system with a
 577  554             malicious filesystem image, and is not supported.
 578  555  
 579  556  
 580      -       global: zfs-io-priority
 581  557  
 582      -           Specifies a priority for this zone's ZFS I/O. The priority is used
 583      -           by the ZFS I/O scheduler as in input to determine how to schedule
 584      -           I/O across zones. By default all zones have a priority of 1. The
 585      -           value can be increased for zones whose I/O is more critical. This
 586      -           property is the preferred way to set the zone.zfs-io-priority rctl.
 587      -
 588      -
 589      -
 590  558         The following table summarizes resources, property-names, and types:
 591  559  
 592  560           resource          property-name   type
 593  561           (global)          zonename        simple
 594  562           (global)          zonepath        simple
 595  563           (global)          autoboot        simple
 596  564           (global)          bootargs        simple
 597  565           (global)          pool            simple
 598  566           (global)          limitpriv       simple
 599  567           (global)          brand           simple
 600  568           (global)          ip-type         simple
 601  569           (global)          hostid          simple
 602  570           (global)          cpu-shares      simple
 603  571           (global)          max-lwps        simple
 604  572           (global)          max-msg-ids     simple
 605  573           (global)          max-sem-ids     simple
 606  574           (global)          max-shm-ids     simple
 607  575           (global)          max-shm-memory  simple
 608  576           (global)          scheduling-class simple
 609      -         (global)          zfs-io-priority simple
 610  577           fs                dir             simple
 611  578                              special         simple
 612  579                              raw             simple
 613  580                              type            simple
 614  581                              options         list of simple
 615  582           net               address         simple
 616      -                            allowed-address simple
 617      -                            defrouter       simple
 618      -                            global-nic      simple
 619      -                            mac-addr        simple
 620  583                              physical        simple
 621      -                            property        list of complex
 622      -                             name            simple
 623      -                             value           simple
 624      -                            vlan-id         simple
 625  584           device            match           simple
 626  585           rctl              name            simple
 627  586                              value           list of complex
 628  587           attr              name            simple
 629  588                              type            simple
 630  589                              value           simple
 631  590           dataset           name            simple
 632  591           dedicated-cpu     ncpus           simple or range
 633  592                              importance      simple
 634  593  
↓ open down ↓ 115 lines elided ↑ open up ↑
 750  709  
 751  710         -z zonename
 752  711  
 753  712             Specify the name of a zone. Zone names are case sensitive. Zone
 754  713             names must begin with an alphanumeric character and can contain
 755  714             alphanumeric characters, the underscore (_) the hyphen (-), and the
 756  715             dot (.). The name global and all names beginning with SUNW are
 757  716             reserved and cannot be used.
 758  717  
 759  718  
 760      -       -u uuid
 761      -
 762      -           Specify the uuid of a zone instead of the Zone name.
 763      -
 764      -
 765  719  SUBCOMMANDS
 766  720         You can use the add and select subcommands to select a specific
 767  721         resource, at which point the scope changes to that resource. The end
 768  722         and cancel subcommands are used to complete the resource specification,
 769  723         at which time the scope is reverted back to global. Certain
 770  724         subcommands, such as add, remove and set, have different semantics in
 771  725         each scope.
 772  726  
 773  727  
 774  728         zonecfg supports a semicolon-separated list of subcommands. For
↓ open down ↓ 43 lines elided ↑ open up ↑
 818  772  
 819  773             Commit the current configuration from memory to stable storage. The
 820  774             configuration must be committed to be used by zoneadm. Until the
 821  775             in-memory configuration is committed, you can remove changes with
 822  776             the revert subcommand. The commit operation is attempted
 823  777             automatically upon completion of a zonecfg session. Since a
 824  778             configuration must be correct to be committed, this operation
 825  779             automatically does a verify.
 826  780  
 827  781  
 828      -       create [-F] [ -a path |-b | -t template] [-X]
      782 +       create [-F] [ -a path |-b | -t template]
 829  783  
 830  784             Create an in-memory configuration for the specified zone. Use
 831  785             create to begin to configure a new zone. See commit for saving this
 832  786             to stable storage.
 833  787  
 834  788             If you are overwriting an existing configuration, specify the -F
 835  789             option to force the action. Specify the -t template option to
 836  790             create a configuration identical to template, where template is the
 837  791             name of a configured zone.
 838  792  
↓ open down ↓ 1 lines elided ↑ open up ↑
 840  794             a new host. The path parameter is the zonepath location of a
 841  795             detached zone that has been moved on to this new host. Once the
 842  796             detached zone is configured, it should be installed using the
 843  797             "zoneadm attach" command (see zoneadm(1M)). All validation of the
 844  798             new zone happens during the attach process, not during zone
 845  799             configuration.
 846  800  
 847  801             Use the -b option to create a blank configuration. Without
 848  802             arguments, create applies the Sun default settings.
 849  803  
 850      -           Use the -X option to facilitate creating a zone whose XML
 851      -           definition already exists on the host. The zone will be atomically
 852      -           added to the zone index file.
 853  804  
 854      -
 855  805         delete [-F]
 856  806  
 857  807             Delete the specified configuration from memory and stable storage.
 858  808             This action is instantaneous, no commit is necessary. A deleted
 859  809             configuration cannot be reverted.
 860  810  
 861  811             Specify the -F option to force the action.
 862  812  
 863  813  
 864  814         end
↓ open down ↓ 23 lines elided ↑ open up ↑
 888  838  
 889  839             Display information about the current configuration. If resource-
 890  840             type is specified, displays only information about resources of the
 891  841             relevant type. If any property-name value pairs are specified,
 892  842             displays only information about resources meeting the given
 893  843             criteria. In the resource scope, any arguments are ignored, and
 894  844             info displays information about the resource which is currently
 895  845             being added or modified.
 896  846  
 897  847  
 898      -       remove [-F] resource-type [property-name=property-value]* (global
 899      -       scope)
 900      -       remove property-name property-value (resource scope)
      848 +       remove resource-type{property-name=property -value}(global scope)
 901  849  
 902  850             In the global scope, removes the specified resource. The [] syntax
 903      -           means 0 or more property name-value pairs. If you want to only
 904      -           remove a single instance of the resource, you must specify enough
 905      -           property name-value pairs for the resource to be uniquely
 906      -           identified. If no property name-value pairs are specified, all
 907      -           instances will be removed. If there is more than one pair
      851 +           means 0 or more of whatever is inside the square braces. If you
      852 +           want only to remove a single instance of the resource, you must
      853 +           specify enough property name-value pairs for the resource to be
      854 +           uniquely identified. If no property name-value pairs are specified,
      855 +           all instances will be removed. If there is more than one pair is
 908  856             specified, a confirmation is required, unless you use the -F
 909      -           option. Likewise, the -F option can be used to remove a resource
 910      -           that does not exist (that is, no error will occur). In the resource
 911      -           scope, remove the specified name-value pair.
      857 +           option.
 912  858  
 913  859  
 914  860         select resource-type {property-name=property-value}
 915  861  
 916  862             Select the resource of the given type which matches the given
 917  863             property-name property-value pair criteria, for modification. This
 918  864             subcommand is applicable only in the global scope. The scope is
 919  865             changed to that resource type. The {} syntax means 1 or more of
 920  866             whatever is inside the curly braces. You must specify enough
 921  867             property -name property-value pairs for the resource to be uniquely
↓ open down ↓ 426 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX