• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
Solaris Containers cheat sheet
This a quick cheat sheet of the commands that can be used when using zones (containers)
Zone States
Configured
Configuration has been completed and storage has been committed. Additional
configuration is still required.
Incomplete
Zone is in this state when it is being installed or uninstalled.
Installed

The zone has a confirmed configuration,zoneadm is used to verify the
configuration, Solaris packages have been installed, even through it has been
installed, it still has no virtual platform associated with it.

Ready (active)

Zone's virtual platform is established. The kernel creates thezsched process, the
network interfaces are plumbed and filesystems mounted. The system also assigns
a zone ID at this state, but no processes are associated with this zone.

Running (active)
A zone enters this state when the first user process is created. This is the normal
state for an operational zone.
Shutting down + Down
(active)
Normal state when a zone is being shutdown.
Cheat sheet
Creating a zone
zonecfg -z <zone>

see Solaris Containers.doc/creating zone for a more details
deleting a zone from the global ssytem zonecfg -z <zone> delete -F
Display zones current configuration

zonecfg -z <zone> info
Create a zone creation file
zonecfg -z <zone> export
Verify a zone
zoneadm -z <zone> verify
Installing a zone
zoneadm -z <zone> install
Ready a zone
zoneadm -z <zone> ready
boot a zone
zoneadm -z <zone> boot
reboot a zone
zoneadm -z <zone> reboot
halt a zone
zoneadm -z <zone> halt
uninstalling a zone
zoneadm -z <zone> uninstall -F
Veiwing zones
zoneadm list -cv
login into a zone
zlogin <zone>
login to a zones console
zlogin -C <zone> (use ~. to exit)
login into a zone in safe mode
(recovery)
zlogin -S <zone>
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...