You are on page 1of 4

8/22/17 How to verify non-global solaris zone is installed

THE GEEK DIARY


How to verify non-global solaris zone is installed HO W TO S | BAS IC S | C O N C E P TS

By Sandeep (http://thegeekdiary.com/author/sandeep_patil/)

It is important that the zone is in the appropriate installed state before one can boot it up. The configured zone
has to be installed with the operating environment. That is, the zone configuration has to be instantiated and
packages have to be installed under the zones root path. The zone status should be marked as installed.

To check the current status of the zone, run the zoneadm command with the subcommand list together with the -
cv switches. The following zoneadm output confirms that the zone002 has been installed.

# zoneadm list -cv


ID NAME STATUS PATH BRAND IP
0 global running / native shared
- zone002 installed /zones/zone002 native shared

If the zone is not yet installed, the status will be indicated as configured.

thegeekdiary.com/how-to-verify-non-global-solaris-zone-is-installed/ 1/4
8/22/17 How to verify non-global solaris zone is installed

# zoneadm list -cv


ID NAME STATUS PATH BRAND IP
0 global running / native shared
- zone002 configured /zones/zone002 native shared

In this case, the zone is either detached or will have to be installed by running the zoneadm -z install command.

To check whether the zone is in state detached, check the content of the zonepath. If you find the directories dev
and root and SUNWdetached.xml, then you can try to attach the zone to the system

# ls -l /zones/zone002
total 12
drwxr-xr-x 12 root sys 50 Aug 18 14:40 dev
drwxr-xr-x 2 root root 2 Feb 4 2014 lu
drwxr-xr-x 19 root root 21 Aug 14 15:30 root
-rw-r--r-- 1 root root 4511578 Aug 18 14:41 SUNWdetached.xml

# zoneadm -z zone002 attach -U


Getting the list of files to remove
Removing 4 files
Remove 9 of 9 packages
Installing 6103 files
Add 10 of 10 packages
Updating editable files

The file /var/sadm/system/logs/update_log within the zone contains a log of the zone update. If the zonepath is
empty, then the zone needs to be installed using zoneadm -z [zone_name] install
Example:

WordPress.com (Official Site) | Create


Your Own Website Today
Ad Start With A Custom Domain Name & Our
Stunning Templates In Just Minutes!
www.WordPress.com

Learn More

thegeekdiary.com/how-to-verify-non-global-solaris-zone-is-installed/ 2/4
8/22/17 How to verify non-global solaris zone is installed

# zoneadm -z zone002 install


Preparing to install zone .
Creating list of files to copy from the global zone.
Copying [2552] files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize [1026] packages on the zone.
Initialized [1026] packages on zone.
Zone is initialized.
The file contains a log of the zone installation.

Once the zone is installed, the zoneadm list -cv output will indicate the zone as installed.

Apartments in Ultra luxury 2/3 BHK apartments


on Sarjapur Road. Enquire Now
Bangalore for a free Site visit.

CHEAT SHEETS

LDOMs (OVM for SPARC) Command line reference (http://thegeekdiary.com/ldoms-ovm-for-sparc-command-line-reference-


cheat-sheet/)

Solaris Volume Manager (SVM) command line reference (http://thegeekdiary.com/solaris-volume-manager-svm-command-


line-reference-cheat-sheet/)

Solaris ZFS command line reference (http://thegeekdiary.com/solaris-zfs-command-line-reference-cheat-sheet/)


RHEL 7 RHCSA Notes (Cheat Sheets) (http://thegeekdiary.com/rhel-7-rhcsa-notes-cheat-sheets/)

CentOS / RHEL 7 : firewalld Cheat Sheet (http://thegeekdiary.com/centos-rhel-7-firewalld-command-line-reference-cheat-


sheet/)

systemd command line reference (cheat sheet) (http://thegeekdiary.com/centos-rhel-7-systemd-command-line-reference-


cheat-sheet/)

SOLARIS IN TERVIEW QUESTION S


thegeekdiary.com/how-to-verify-non-global-solaris-zone-is-installed/ 3/4
8/22/17 How to verify non-global solaris zone is installed

SOLARIS IN TERVIEW QUESTION S

The ultimate Solaris Volume Manager (SVM) interview questions (http://thegeekdiary.com/the-ultimate-solaris-volume-


manager-svm-interview-questions/)

The ultimate Solaris zones (containers) interview questions (http://thegeekdiary.com/the-ultimate-solaris-zones-containers-


interview-questions/)

The ultimate Solaris networking interview questions (http://thegeekdiary.com/the-ultimate-solaris-networking-interview-


questions/)

The ultimate ZFS interview questions (http://thegeekdiary.com/the-ultimate-zfs-interview-questions/)


HARD W ARE CHEATS

Most Commonly used ALOM commands (http://thegeekdiary.com/most-commonly-used-alom-commands-cheat-sheet/)

Most Commonly used ILOM commands (http://thegeekdiary.com/most-commonly-used-ilom-commands-cheat-sheet/)


Most Commonly used LOM commands (http://thegeekdiary.com/most-commonly-used-lom-commands-cheat-sheet/)

Most commonly used XSCF commands (http://thegeekdiary.com/most-commonly-used-xscf-commands-cheat-sheet/)

Most Commonly used RSC commands (http://thegeekdiary.com/most-commonly-used-rsc-commands-cheat-sheet/)

How to login into console from ILOM, ALOM, LOM, ELOM, XSCF, RSC (http://thegeekdiary.com/how-to-login-into-console-
from-ilom-alom-lom-elom-xscf-rsc/)

2017 THE GEEK DIARY (HTTP://THEGEEKDIARY.COM)

thegeekdiary.com/how-to-verify-non-global-solaris-zone-is-installed/ 4/4