[openstack-dev] How does the libvirt domain XML get created?
Clark Laughlin
clark.laughlin at linaro.org
Wed Oct 16 04:07:38 UTC 2013
I can see in config.py where VNC gets added (the <graphics> element), but I can't find any place where a <video> element gets added. In fact, I've grepped the entire nova tree for "cirrus" or "video" and can only find it here:
./nova/tests/virt/libvirt/fakelibvirt.py
- Clark L
On Oct 15, 2013, at 10:58 PM, Michael Still <mikal at stillhq.com> wrote:
> 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
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
More information about the OpenStack-dev
mailing list