|Skip Navigation Links|
|Exit Print View|
|System Administration Guide: Oracle Solaris Zones, Oracle Solaris 10 Containers, and Resource Management Oracle Solaris 11 Express 11/10|
This section provides an overview of the procedures for halting, rebooting, uninstalling, and cloning zones.
The zoneadm halt command is used to remove both the application environment and the virtual platform for a zone. The zone is then brought back to the installed state. All processes are killed, devices are unconfigured, network interfaces are destroyed, file systems are unmounted, and the kernel data structures are destroyed.
The halt command does not run any shutdown scripts within the zone. To shut down a zone, see How to Use zlogin to Shut Down a Zone.
If the halt operation fails, see Zone Does Not Halt.
The following definitions apply:
Selects an alternative executable to be the first process. altinit must be a valid path to an executable. The default first process is described in init(1M).
Controls the boot behavior of SMF. There are two categories of options, recovery options and messages options. Message options determine the type and number of messages that displays during boot. Service options determine the services that are used to boot the system.
Recovery options include the following:
Prints standard per-service output and all svc.startd messages to log.
Boot to the subgraph defined by the given milestone. Legitimate milestones are none, single-user, multi-user, multi-user-server, and all.
Message options include the following:
Prints standard per-service output and error messages requiring administrative intervention
Prints standard per-service output and messages providing more information.
Boots only to milestone svc:/milestone/single-user:default. This milestone is equivalent to init level s.
For information on the Oracle Solaris service management facility (SMF) and init , see Chapter 11, Managing Services (Overview), in System Administration Guide: Basic Administration, svc.startd(1M) and init(1M).
If you set the autoboot resource property in a zone's configuration to true, that zone is automatically booted when the global zone is booted. The default setting is false.
Note that for zones to automatically boot, the zones service svc:/system/zones:default must also be enabled.
See Zones Packaging Overview for information on the autoboot setting during pkg image-update.
The zoneadm uninstall command is used to uninstall all of the files under the zone's root file system. Before proceeding, the command prompts you to confirm the action, unless the -F (force) option is also used. Use the uninstall command with caution, because the action is irreversible.