How to Move a Zone That Is Not on Shared Storage

Perform this procedure to move a zone to a new location on the same system by changing the zonepath. The zone must first be halted. The normal zonepath criteria are described in Zone Global Properties in Oracle Solaris Zones Configuration Resources.

Note:

Observe the following restrictions on moving zones that are not on shared storage:
  • You cannot move a zone that is present in other BEs. You can either delete those BEs first, or create a new zone at the new path by cloning the zone.

  • For zone configurations that use a rootzpool resource, the zonepath property is fixed and immutable, based on the default zonepath template value. Manually setting the zonepath to a value other than the derived default value is prohibited in this zone configuration.

To move a zone that is on shared storage, instead go to Moving Existing Zones To or From Shared Storage Zone Configurations.

  1. Become a zone administrator.
  2. Halt the zone to move.
    global$ zoneadm -z zonename halt
  3. Move the zone to a new zonepath.
    global$ zoneadm -z zonename move /new-zonepath/zonename
  4. Verify the path.
    global$ zoneadm list -cv
    ID  NAME     STATUS       PATH                           BRAND      IP
     0  global   running      /                              solaris    shared
     -  zonename  installed    /new-zonepath/zonename           solaris    excl