Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Manage Solaris Zones from Python

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 pyzone PEP257 improvements September 12, 2011
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 setup.py
README.md

Manage Solaris Zones in Python

This project holds a python module with a ctypes wrapper around some Solaris specific calls.

Module can be retrieved from pypi as well:

easy_install/pip install pyzone

Some code snippets

List zones

zones = zone.list_zones()
for identifier in zones.keys():
    print zones[identifier]
    print zone.get_state(identifier)

Boot a zone

zone.boot_zone(item)
print zone.get_state(item)

Available functions

  • list_zones
  • get_state
  • boot_zone
  • halt_zone
  • shutdown_zone
  • restart_zone
  • ready_zone
  • call_zone_adm

Note

Please note that some operations can take a while to complete.

(c) 2011 tmetsch

Something went wrong with that request. Please try again.