ZoneSetup

=Configure a Zone=

=Install / Clone New Zone=
 * NOTE - this configures the zone, but does not actually install it. "Installing" means actually setting up the zone operating system & configuration.


 * There are two approaches to setting up the new zone - Installing or Cloning an existing zone.

=Automating Initialization of New Zone= At this point it is like a fresh Solaris install. To skip the setup stuff, create a sysidcfg file (as you would for jumpstart) and put it in the etc dir of the zone (in this case /zones/sun2q/root/etc/ directory)

terminal=vt100 network_interface=primary {hostname= default_route= ip_address= netmask=255.255.255.0 protocol_ipv6=no} timezone=US/Eastern system_locale=C timeserver=localhost root_password=30can57mYZxCg name_service=DNS {domain_name= name_server=10.0.0.1,10.0.0.2} security_policy=none nfs4_domain=dynamic

Note: 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 (see here for details): # cd /zones/sun2q/root/etc # vi default/nfs (uncomment) NFSMAPID_DOMAIN=domain # touch .NFS4inst_state.domain

=Starting the New Zone= Time to fire this puppy up!!


 * 1) zoneadm -z sun2q boot

Next, go on the console (use ~. to exit console) and Perform the Internal Zone Configuration if necessary :


 * 1) zlogin -C  sun2q

If you are having problems, try using failsafe mode

# zlogin -S sun2q

If you didn't setup the NFSv4 domain (see above), the first time you start it up and go to the console you'll see this (go with the default):

- NFSv4 Domain Name NFS version 4 uses a domain name that is automatically derived from the system's naming services. The derived domain name is sufficient for most configurations. In a few cases, mounts that cross domain boundaries might cause files to appear to be owned by "nobody" due to the lack of a common domain name. The current NFSv4 default domain is: "wgresorts.com" NFSv4 Domain Configuration --      [X] Use the NFSv4 domain derived by the system [ ] Specify a different NFSv4 domain Esc-2_Continue   Esc-6_Help

after which the zone will reboot, and then it's good to go.

rebooting system due to change(s) in /etc/default/init [NOTICE: Zone rebooting] SunOS Release 5.10 Version Generic_125100-09 64-bit Copyright 1983-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Hostname: reportsq01 reportsq01 console login:

=Modifying Zones with ZONECFG= To modify Zones you can use zonecfg. If you use it interactively (i.e. "zonecfg -z " it's a cisco-like interactive interface (i.e. different levels). You can also just issue commands without using the interactive mode, such as : zonename: sun2q  zonepath: /opt/zones/sun2q  autoboot: true  pool:   limitpriv:   inherit-pkg-dir:          dir: /lib  inherit-pkg-dir:          dir: /platform  inherit-pkg-dir:          dir: /sbin  inherit-pkg-dir:          dir: /usr  fs:          dir: /u1          special: /u1/sun2q          raw not specified          type: lofs          options: []  net:          address: 172.24.199.17/24          physical: bge0 You can use zonecfg to change these settings, such as is described here. Often a reboot of the zone will be needed.
 * 1) zonecfg -z sun2q info