[openstack-dev] How does the libvirt domain XML get created?

Michael Still mikal at stillhq.com
Wed Oct 16 03:58:36 UTC 2013


On Wed, Oct 16, 2013 at 2:08 PM, Clark Laughlin
<clark.laughlin at linaro.org> wrote:
> Hello everyone,
>
> I'm trying to figure out how "<video><model type='cirrus' vram='9216' heads='1'/></video>" makes it into the libvirt domain XML when creating a new instance.  I see where much of the content of the XML is created by the libvirt driver under nova/nova/virt/libvirt.  However, I am unable to find where this makes it in there.  Could someone point me in the right direction?

This XML is created by helper classes in nova/virt/libvirt/config.py.
I'd look for XML which matches what you're looking for there and then
look for the class which correlates to your XML in driver.py.

Cheers,
Michael

-- 
Rackspace Australia



More information about the OpenStack-dev mailing list