Using the zoneadm Command

The zoneadm list subcommand provides you information about the status of zones on the system.

global$ zoneadm list -cv
ID NAME     STATUS    PATH                  BRAND     IP
0  global   running   /                     solaris   shared
1  zoneA    running   /export/zones/zoneA   solaris   exclusive
2  zoneB    running   /system/zones/zoneB   solaris   exclusive

The output of the command indicates the following about a zone's status.

  • configured: Zone has been created, but no further action has been done. The zone will not have an ID.

  • incomplete: An error occurred during the installation process.

  • installed: Zone has been installed but not booted. The zone will not have an ID.

  • running: Zone is booted and operational. Only a running zone is assigned an ID.

    A non-global zone's ID is not permanent. It changes every time the zone is rebooted. However, the global zone's ID is always zero.

Note also the different paths for zoneA and zoneB in the preceding example. If the zonepath property is not explicitly defined, as in the case of zoneB, then the path is set automatically to /system/zones/ zonename based on the template.