欢迎来到虫虫下载站 | 资源下载 资源专辑 关于我们
虫虫下载站

15_create_smallmem_pos.py

xen虚拟机源代码安装包
PY
字号:
#!/usr/bin/python# Copyright (C) International Business Machines Corp., 2005# Author: Dan Smith <danms@us.ibm.com>from XmTestLib import *# Create a domain with the minimum memory allocationMEM = minSafeMem()domain = XmTestDomain(extraConfig={"memory": MEM,                                   "extra" :"mem=%iM" % MEM})try:    console = domain.start()except DomainError, e:    FAIL("Unable to start a domain with %i MB" % MEM)try:    console.runCmd("ls")except ConsoleError, e:    if e.reason == RUNAWAY:        FAIL("Bug #380: Starting a console with %i MB crashed the console daemon" % MEM)    else:        FAIL("Starting a console with %i MB failed: domain dies immediately!" % MEM)domain.destroy()

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -