System Administration Guide: Virtualization Using the Solaris Operating System

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

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
      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
      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
      timezone=US/Central
      root_password=m4qtoWN
  4. If you are running an earlier release and do not have the nfs4_domain parameter in your 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.