[libvirt] The problems of default settings

Hi all, I am recently considering about the default setting for different platforms. Currently, there is no good way to fix the default setting for PPC64 platform. For example, we prefer pseries on PPC64 as the default machine type users don't need to specify it. I am thinking about the solutions. 1. One solution I am thinking about is to create template xml files for different platforms. But if users give their own configuration XML files, how to keep the preferred configurations in domain definition. I think this solution should be better in management tools, for example, ovirt or openstack. After management tools can generate its own configuration files with different default settings, libvirt can help create according to XML files. 2. Another solution is to use hook in libvirt. But it seems that we need to use hook daemon. Is it complex to use? I am not familiar with hook. Any suggestion is appreciated. Thanks. :) --Li

On 03/29/2013 01:03 AM, Li Zhang wrote:
Hi all,
I am recently considering about the default setting for different platforms. Currently, there is no good way to fix the default setting for PPC64 platform. For example, we prefer pseries on PPC64 as the default machine type users don't need to specify it.
There is already active work being done on the problem, since even on x86 machines, the current 'pc' vs. the upcoming 'q35' board emulation differences requires that libvirt be able to handle a different set of default devices. You may be interested in following these threads: https://www.redhat.com/archives/libvir-list/2013-March/msg00215.html https://www.redhat.com/archives/libvir-list/2013-March/msg01697.html where we are trying to refactor code to make it easier to separate XML parsing from supplying defaults appropriate to the hypervisor, where such defaults may differ according to the machine type the hypervisor is controlling. Also, there is still some interface work needed in qemu so that libvirt can reliably learn what defaults are appropriate for each machine type: https://www.redhat.com/archives/libvir-list/2013-March/msg00020.html -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
participants (2)
-
Eric Blake
-
Li Zhang