0% found this document useful (0 votes)
61 views2 pages

Solaris Zone Creation Step

The document provides instructions for creating a new zone using zonecfg, setting its path, autoboot, IP address, and network interface. It then explains how to install an operating system in the zone, boot the zone, and log in. Finally, it lists zoneadm commands for managing zone states and zonecfg commands for modifying zone properties.

Uploaded by

diptimehra1247
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views2 pages

Solaris Zone Creation Step

The document provides instructions for creating a new zone using zonecfg, setting its path, autoboot, IP address, and network interface. It then explains how to install an operating system in the zone, boot the zone, and log in. Finally, it lists zoneadm commands for managing zone states and zonecfg commands for modifying zone properties.

Uploaded by

diptimehra1247
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 2

Zone Creation Example

From within the global zone:


# zonecfg -z zone-name zonecfg:zone-name> create zonecfg:zone-name> set zonepath=/zone-root-path

(Note that the zone's root path cannot be on ZFS, though that capability is coming.)
zonecfg:zone-name> set autoboot=true zonecfg:zone-name> add net zonecfg:zone-name:net> set address=172.18.65. zonecfg:zone-name:net> set ph!s"ca#=$"nterface name> zonecfg:zone-name:net> end zonecfg:zone-name> %er"f! zonecfg:zone-name> comm"t zonecfg:zone-name> end

Install OS under created Zone


zoneadm -z zone-name "nsta##

Boot installed / configured Zone


zoneadm -z zone-name boot

Login zone
z#og"n -& zone-name

Zone Control Commands


The ollowing control comman!s can be use! to manage an! monitor transitions between states:
z#og"n

options zone-name zone-name boot zone-name ha#t zone-name "nsta## zone-name read! zone-name reboot zone-name un"nsta## zone-name %er"f!

zoneadm -z zoneadm -z zoneadm -z zoneadm -z zoneadm -z zoneadm -z zoneadm -z zonecfg -z zonecfg -z zonecfg -z

zone-name: "nteracti#e mo!e$ can be use! to remo#e properties o the ollowing types: fs' de%"ce' rct#' net' attr zone-name comm"t zone-name create

zonecfg -z zonecfg -z

zone-name de#ete zone-name %er"f!

You might also like