Change in vdsm[master]: libvirtvm: allow acpi again
zhshzhou at linux.vnet.ibm.com
zhshzhou at linux.vnet.ibm.com
Wed Aug 29 08:31:32 UTC 2012
Zhou Zheng Sheng has posted comments on this change.
Change subject: libvirtvm: allow acpi again
......................................................................
Patch Set 1: Verified
Run through ./autobuild.sh, then I cd to ~/builder and verify the output XML as follow.
[root at zhshzhouf17 builder]# PYTHONPATH=$(pwd)/share/vdsm:$(pwd)/lib64/python2.7/site-packages:/usr/lib64/python2.7/site-packages python
Python 2.7.3 (default, Jul 24 2012, 10:05:38)
[GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from libvirtvm import _DomXML as DomXML
>>> d = {'acpiEnable': 'True', 'smp': '2', 'memSize': 128, 'vmName': 'rhel6vdsm', 'vmId': '209b27e4-aed3-11e1-a547-00247edb4743'}
>>> domxml = DomXML(d, None)
>>> domxml.appendFeatures()
>>> print domxml.toxml()
<?xml version="1.0" encoding="utf-8"?>
<domain type="kvm">
<name>rhel6vdsm</name>
<uuid>209b27e4-aed3-11e1-a547-00247edb4743</uuid>
<memory>131072</memory>
<currentMemory>131072</currentMemory>
<vcpu>2</vcpu>
<devices/>
<features>
<acpi/>
</features>
</domain>
More information about the vdsm-patches
mailing list