一个uml/qemu/xen图像生成器、运行器和测试框架
Cassilda的Python项目详细描述
安装和使用
下载
从github获取最新版本:。
git clone git://github.com/odkq/Cassilda.git
要求
- Python2.6+http://www.python.org
- 皮亚姆3.09+http://www.pyyaml.org
- netaddr 0.7.4+https://github.com/drkjam/netaddr
- 预期2.3+http://www.noah.org/wiki/pexpect
- UML实用程序20070815+http://user-mode-linux.sourceforge.net/downloads.html
生成Debian图像:
- 脱bootstrap 1.0.26+http://wiki.debian.org/Debootstrap
可选:要加快重新安装映像,请使用apt代理 已安装apt cacher ng
要在Debian Squeeze中安装所有依赖项,请执行以下操作:
apt-get install python python-yaml python-netaddr python-pexpect \ uml-utilities debootstrap apt-cacher-ng
安装
cassilda使用regular distutils setup.py,安装时使用:
sudo python ./setup.py install
它会将cassilda python模块放在系统范围内的任何地方 python安装需要它,以及 /usr/share/doc/cassilda
使用量
示例会话:
Launch the python (or ipython or bpython) interpreter as root in a directory with sufficient space to store the generated images: # cd /tmp # ipython >>> import cassilda ## Load settings from a YAML cassilda profile >>> c = cassilda.Cassilda( "/usr/share/doc/Cassilda/examples/apache_mysql.cas", ['/usr/share/doc/Cassilda/examples/']) ## Install an image >>> c.install_and_configure("apache_server") (output from cassilda) ## Install all images >>> c.install_and_configure("mysql_server") >>> c.install_and_configure("web_client") ## Run an image >>> c.run("apache_server") ## Interact (with the console) of a running image >>> c.interact('apache_server') ## Press the regular telnet escape char ^] to return
Cassilda配置文件说明
尚未写入
图像
尚未写入
安装人员
尚未写入
扩展cassilda
写作建设者
尚未写入
书写跑步者
尚未写入