This file`s function is to create xml config file for vm instance,then the libvirt or other emulator define and create vm according this xml config file.<br>Hope that it is helpful to you.<br><div><sign signid="1"><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana;color:#000;"><div>
<div>Best Regards</div>
<div> </div>
<div>ZhangJialong</div></div></div></sign></div><div><qzone></qzone></div><div> </div><div> </div><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "harryxiyou"<harryxiyou@gmail.com>;</div><div><b>Date: </b> Sat, Jan 19, 2013 11:49 AM</div><div><b>To: </b> "张家龙"<zhangjl@awcloud.com>; <wbr></div><div><b>Cc: </b> "Kazutaka Morita"<morita.kazutaka@gmail.com>; "openstack-dev"<openstack-dev@lists.launchpad.org>; "Liu Yuan"<namei.unix@gmail.com>; "sheepdog"<sheepdog@lists.wpkg.org>; "openstack"<openstack@lists.launchpad.net>; "Kang Hua"<kanghua151@gmail.com>; <wbr></div><div><b>Subject: </b> Re: [Openstack] [Openstack-dev][Sheepdog]Add a new driver forOpenstackCinder like Sheepdog volumes</div></div><div> </div>On Sat, Jan 19, 2013 at 10:57 AM, 张家龙 <zhangjl@awcloud.com> wrote:<br>> Maybe,you need to modify the nova/virt/libvirt.xml.template.In our tesing of<br>> nova and sheepdog,<br><br>Hi Zhang jia long,<br><br>What are the functions of libvirt.xml.template? Currently, we just<br>wanna to add a new<br>block driver(a new one as the same as sheepdog driver) to Openstack Cinder ;-)<br>The performances will be enhenced later.<br><br>><br>[...]<br>> Hi Morita and other developers,<br>><br>> If i add a QEMU/Libvirt driver(the same as Sheepdog volumes driver in<br>> Openstack Cinder branch) to let Openstack Cinder support a new block-level<br>> storage system, I should change following stuffs, right?<br>><br>> 1, Add a driver file to the dir in Openstack Cinder branch(the same as<br>> sheepdog.py),<br>>       https://github.com/openstack/cinder/blob/master/cinder/volume/drivers<br>> 2, Change the file in Openstack Nova branch(Let libvirt attach HLFS volumes<br>> to QEMU, the same as sheepdog),<br>><br>> https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py<br>><br>> Do I should change/add any other files for Openstack? Cloud anyone give me<br>> some suggestions?    Thanks in advance ;-)<br>><br><br>Hi Openstack developers and Sheepdog developers,<br><br>I also have following questions, please give me some suggestions.<br>Thanks in advance ;-)<br><br>1, The libvirt codes in Nova branch are just interfaces which call the<br>standard Libvirt library, right?<br>(Or the libvirt codes in Nova branch are the standard Libvirt library.)<br><br>2, If i add a new block storage driver for Openstack by QEMU/Libvirt<br>way, should i also modify standard libvirt library and QEMU source<br>codes to let them support this new driver so that i can use this new<br>driver to let libvirt attach the new driver volumes to QEMU in Openstack?<br><br>3, Certainly, i should also do following stuffs.<br><br>     a, Add a driver file to the dir in Openstack Cinder branch(the same as<br>         sheepdog.py),<br>        https://github.com/openstack/cinder/blob/master/cinder/volume/drivers<br>     b, Change the file in Openstack Nova branch(Let libvirt attach<br>the new driver<br>         volumes to QEMU, the same as sheepdog),<br>        https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py<br><br>4, Should i have to do any other stuffs?<br><br><br><br>-- <br>Thanks<br>Harry Wei<br></div>