Oracle Solaris Zones provide isolated and secure virtual environments running on a single operating system instance, ideal for an application deployment. At same time, when administrators create a zone, an application execution environment is produced in which processes are isolated from the rest of the system. Please find below commands and steps which will help you to create and manage Solaris zones in Oracle Solaris 11.
First of all, Login to an oracle Solaris 11 machine (Global Zone) as a root user and continue with the below steps to create non-global zones which can be a “whole root zone” or “sparse root zone” or “branded zone”. Will explain more in detail regard to non-global zone types in my future posts.
Steps to create a new zone:
# zonecfg -z drzone
drzone: No such zone configured
Use ‘create’ to begin configuring a new zone.
zonecfg:drzone> set zonepath=/zones/drzone
zonecfg:drzone> set autoboot=true
Command to list all running zones:
# zoneadm list -v
Command to list all configured zones:
# zoneadm list -c
Command to list all installed zones:
# zoneadm list -i
Install a zone:
# zoneadm -z drzone install
Boot a zone:
# zoneadm -z drzone boot
Command to list configuration about a zone:
# zoneadm -z drzone list
Login to a zone console:
# zlogin –C drzone
Halt a zone:
# zoneadm -z drzone halt
Shutdown a zone
# zoneadm -z drzone shutdown
Monitor a zone for CPU, memory and network utilization every 5 seconds:
# zonestat -z drzone 5
If you find this post is useful/helpful, please follow, like and share. Thank you for visiting my blog!!!