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.
For more information, see Assigning Limited Rights to Zone Administrators.
global$ zonecfg -z my-zone
zonecfg:my-zone> set zonename=newzone
zonecfg:newzone> commit
zonecfg:newzone> exit
Committed changes made through zonecfg take effect the next time the zone is booted.