A configured solaris10 branded zone is installed by using the zoneadm command with the install subcommand.
For information about creating images of Oracle Solaris 10 systems, see Creating the Image for Directly Migrating Oracle Solaris 10 Systems Into Zones. To retain the sysidcfg identity from a system image that you created, without altering the image, use the –p option after the install subcommand. To remove the system identity from a system image that you created, without altering the image, use the –u option. The sys-unconfig occurs to the target zone. The –c option can be used to include a sysidcfg file that contains the information used to configure the zone after the install completes.
The example procedure shows how to use the –a option with the created archive image of a physical installed Oracle Solaris 10 system.
You must be the global administrator or a user with the appropriate authorizations in the global zone to perform this procedure.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .
global# zoneadm -z s10sepvar install -a /net/data13/tmp/s10u10_sparc_sepvar.flar -p
You will see various messages as the installation completes. This can take some time.
global# zoneadm list -civ
ID NAME STATUS PATH BRAND IP 0 global running / solaris shared - s10-zone configured /zones/s10-zone solaris10 shared
If the state is listed as configured, make the corrections specified in the message and try the zoneadm install command again.
If the state is listed as incomplete, first execute this command:
global# zoneadm -z my-zone uninstall
Then, make the corrections specified in the message and try the zoneadm install command again.
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 - s10-zone installed /zones/s10-zone solaris10 shared
# zoneadm -z s10sepvar install -p -a /net/data13/tmp/s10u10_sparc_sepvar.flar -u The following ZFS file system(s) have been created: rpool/zones/s10sepvar Progress being logged to /var/log/zones/zoneadm.20120519T151123Z.s10sepvar.install Installing: This may take several minutes...
If an installation fails, review the log file. On success, the log file is in /var/log inside the zone. On failure, the log file is in /var/log/zones in the global zone.
If a zone installation is interrupted or fails, the zone is left in the incomplete state. Use the uninstall command with the –F option to reset the zone to the configured state.