Go to main content

Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: April 2019
 
 

How to Rename a Zone by Using the zonecfg Command

Use this procedure to rename zones that are in either the configured state or the installed state.

Note that zones with either rootzpool or zpool resources cannot be renamed in the installed state because the zonename is part of the existing zpool name. To rename these zones, see "Renaming Zones on Shared Storage" at the end of this procedure.

  1. Become a zone administrator.

    For more information, see Assigning Limited Rights to Zone Administrators.

  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.