System Administration Guide: Virtualization Using the Solaris Operating System
Previous Next

Deleting a Non-Global Zone From the System

The procedure described in this section completely deletes a zone from a system.

How to Remove a Non-Global Zone

  1. Shut down the zone my-zone.
    global# zlogin my-zone shutdown
    my-zone
  2. Remove the root file system for my-zone.
    global# zoneadm -z my-zone uninstall -F
  3. Delete the configuration for my-zone.
    global# zonecfg -z my-zone delete -F
  4. List the zones on the system, to verify that my-zone is no longer listed.
    global# zoneadm list -iv

    You will see a display that is similar to the following:

    ID  NAME     STATUS       PATH                           BRAND      IP
     0  global   running      /                              native     shared
Previous Next