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

ProcedureSolaris 10 8/07: How to Rename a Zone

This procedure can be used to rename zones that are in either the configured state or the installed state.

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. Select the zone to be renamed, my-zone in this procedure.

    global# zonecfg -z my-zone
  3. Change the name of the zone, for example, to newzone.

    zonecfg:my-zone> set zonename=newzone
  4. Commit the change.

    zonecfg:newzone> commit
  5. Exit the zonecfg command.

    zonecfg:newzone> exit

    Committed changes made through zonecfg take effect the next time the zone is booted.