一个uml/qemu/xen图像生成器、运行器和测试框架

Cassilda的Python项目详细描述


安装和使用

下载

从github获取最新版本:。

git clone git://github.com/odkq/Cassilda.git

要求

生成Debian图像:

可选:要加快重新安装映像,请使用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

写作建设者

尚未写入

书写跑步者

尚未写入

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
DIIOP_IOR中的java端口0。TXT,我如何更改它?   hadoop面临的问题:java。lang.NoClassDefFoundError:org/bouncycastle/jcajce/JcaJceHelper在使用更新的BC jar时   java将大科学数转换为长科学数   Java8文件流,如何控制文件的关闭?   是否有类似于dotnetshoutout的资源。com&dotnetkicks。Java世界中的com?   java返回类型void/方法替代方案?   如何使用java。lang.NullPointerException:void 安卓。支持v7。应用程序。ActionBar。setElevation(float)“”在空对象引用上'   java使用kafka流获取时间窗口中给定密钥的最后一个事件   java多边形旋转不正确   java我们应该在params中编写什么。jpbc的属性文件   java如何计算线程数?   使用jar时发生java错误,但不在库本身中   java优先级列表排队方法错误   java和org之间的区别。莫基托。莫基托。任何和组织。莫基托。媒人。任何