Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: May 2015
 
 

How to Remove a Non-Global Zone

  1. Shut down the zone my-zone using one of the following methods. The zoneadm shutdown method is preferred.
    • Using zoneadm:
      global# zoneadm -z my-zone shutdown
      my-zone
    • Using zlogin:
      global# zlogin my-zone shutdown
      my-zone
  2. Remove the root file system for my-zone.
    global# zoneadm -z my-zone uninstall -F

    The –F option to force the action generally isn't required.

  3. Delete the configuration for my-zone.
    global# zonecfg -z my-zone delete -F

    The –F option to force the action generally isn't required.

  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      /                              solaris    shared