System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones

ProcedureHow to Use an /etc/sysidcfg File to Perform the Initial Zone Configuration

Solaris 10 8/07: The keyword nfs4_domain was added. Example files show this keyword. Step 4 below shows an additional step if you are running an earlier release.

You must be the global administrator in the global zone to perform this procedure.

  1. Become superuser, or assume the Primary Administrator role.

    To create the role and assign the role to a user, see Using the Solaris Management Tools With RBAC (Task Map) in System Administration Guide: Basic Administration.

  2. From the global zone, change directories to the non-global zone's /etc directory:


    global# cd /export/home/my-zone/root/etc
    
  3. Create the sysidcfg file and place it in this directory.

    The file will look similar to the following:

    • For a shared-IP zone:


      system_locale=C
      terminal=dtterm
      network_interface=primary {
      	        hostname=my-zone
      }
      security_policy=NONE
      name_service=NIS {
      	        domain_name=special.example.com
      	        name_server=bird(192.168.112.3)
      }
      nfs4_domain=domain.com
      timezone=US/Central
      root_password=m4qtoWN
    • For an exclusive-IP zone with a static IP configuration:


      system_locale=C
      terminal=dtterm
      network_interface=primary {
               hostname=my-zone
               default_route=10.10.10.1
               ip_address=10.10.10.13
               netmask=255.255.255.0
      }
      nfs4_domain=domain.com
      timezone=US/Central
      root_password=m4qtoWN
    • For an exclusive-IP zone with DHCP and IPv6 option:


      system_locale=C
      terminal=dtterm
      network_interface=primary {
      	        dhcp protocol_ipv6=yes
      }
      security_policy=NONE
      name_service=DNS {
               domain_name=example.net
               name_server=192.168.224.11,192.168.224.33
      }
      nfs4_domain=domain.com
      timezone=US/Central
      root_password=m4qtoWN
  4. If you are running a release earlier than Solaris 10 8/07, you will not have the keyword nfs4_domain in your sysidcfg file. By default, a separate module will request the NFSv4 domain parameter used by the nfsmapid command. To complete a hands-off initial zone configuration, edit the file default/nfs, uncomment the NFSMAPID_DOMAIN parameter, and set the domain to the desired NFSv4 domain:


    global# vi default/nfs
    		.
    		.
    		.
    		NFSMAPID_DOMAIN=domain
    

    Create the file .NFS4inst_state.domain in this directory to indicate that the NFSv4 domain has been set:


    global# touch .NFS4inst_state.domain
    

    For more information on the NFSv4 domain parameter, see the nfsmapid(1M) man page.

  5. Boot the zone.

See Also

See the sysidcfg(4) man page for more information.