Default machine type setting for ppc64
Oops, correct libvirt mailing list address. :)
Thanks.
Quoted 20 lines · Li Zhang
Hi all,
Sorry to bring this problem up again.
We encounter this problem in openstack which always use default machine type. Currently, QEMU sets mac99 as default setting for ppc64 but it doesn't work on our platform at all.
I tried to fix this in libvirt which it is not acceptable because libvirt only considers to get default setting from QEMU.
Maybe I need to cc openstack mailing list, if it is one solution to add one option for machine types it supports.
Any suggestion is appreciated.
Thanks. :)
--Li
Hi all,
Sorry to bring this problem up again.
We encounter this problem in openstack which always use default machine type. Currently, QEMU sets mac99 as default setting for ppc64 but it doesn't work on our platform at all.
I tried to fix this in libvirt which it is not acceptable because libvirt only considers to get default setting from QEMU.
Maybe I need to cc openstack mailing list, if it is one solution to add one option for machine types it supports.
Any suggestion is appreciated.
Thanks. :)
--Li
Quoted 6 lines · Li Zhang
We encounter this problem in openstack which always use default machine type. Currently, QEMU sets mac99 as default setting for ppc64 but it doesn't work on our platform at all.
I tried to fix this in libvirt which it is not acceptable because libvirt only considers to get default setting from QEMU.
This will need to be fixed for ARM -- the whole idea of there being a sensible "default machine type" and it being the one QEMU starts by default is pretty x86-centric. libvirt needs to have support for specifying which machine to use.
(There is consideration of changing the default ppc64 machine, as it happens; but in general you can't rely on QEMU doing what you want if you don't tell it specifically which board you wanted.)
thanks
-- PMM
Quoted 5 lines · Peter Maydell
Quoted 4 lines · Li Zhang
We encounter this problem in openstack which always use default machine type. Currently, QEMU sets mac99 as default setting for ppc64 but it doesn't work on our platform at all.
Quoted 7 lines
Quoted 2 lines
I tried to fix this in libvirt which it is not acceptable because libvirt only considers to get default setting from QEMU.
This will need to be fixed for ARM -- the whole idea of there being a sensible "default machine type" and it being the one QEMU starts by default is pretty x86-centric. libvirt needs to have support for specifying which machine to use.
Libvirt has always had support for specifying what machine type to use. This discussion is simply about what machine type to default to, if the user hasn't explicitly asked for one.
QEMU has the notion of a default machine for each target, and that is what libvirt uses if the user hasn't specified a machine. It is not libvirt's job to override QEMU's notion of the default machine here, so if the 'mac99' machine type isn't suitable as the default either QEMU needs to change that for the ppc target, or the user needs to explicitly specify their desired machine type.
Regards,
Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Quoted 7 lines · Daniel P. Berrange
Libvirt has always had support for specifying what machine type to use. This discussion is simply about what machine type to default to, if the user hasn't explicitly asked for one.
QEMU has the notion of a default machine for each target, and that is what libvirt uses if the user hasn't specified a machine. It is not libvirt's job to override QEMU's notion of the default machine here,
Agreed; thanks for the clarification.
Quoted 3 lines
so if the 'mac99' machine type isn't suitable as the default either QEMU needs to change that for the ppc target, or the user needs to explicitly specify their desired machine type.
OK, that makes sense. So is the problem here just configuration or is it the next layer above libvirt not being configurable?
(the thing about changing the default is that it obviously breaks command line compatibility for anybody who was relying on the old default. So for ARM we're a bit locked in to a default which is pretty useless for most people.)
thanks
-- PMM
Quoted 11 lines · Peter Maydell
Quoted 6 lines · Li Zhang
We encounter this problem in openstack which always use default machine type. Currently, QEMU sets mac99 as default setting for ppc64 but it doesn't work on our platform at all.
I tried to fix this in libvirt which it is not acceptable because libvirt only considers to get default setting from QEMU.
This will need to be fixed for ARM -- the whole idea of there being a sensible "default machine type" and it being the one QEMU starts by default is pretty x86-centric. libvirt needs to have support for specifying which machine to use.
Ah, libvirt does have support for specifying one machine type.
I mean that libvirt set default according to QEMU's default setting, and management tools are dependent on this default setting without users' specified setting.
I tried to change the default setting according to ppc64 platform in libvirt, but it is not accepted.
Quoted 4 lines
(There is consideration of changing the default ppc64 machine, as it happens; but in general you can't rely on QEMU doing what you want if you don't tell it specifically which board you wanted.)
I see. Thanks for your suggestion. :)
Quoted 3 lines
thanks
-- PMM
Quoted 8 lines · Peter Maydell
Quoted 7 lines · Daniel P. Berrange
Libvirt has always had support for specifying what machine type to use. This discussion is simply about what machine type to default to, if the user hasn't explicitly asked for one.
QEMU has the notion of a default machine for each target, and that is what libvirt uses if the user hasn't specified a machine. It is not libvirt's job to override QEMU's notion of the default machine here,
Quoted 7 lines
Agreed; thanks for the clarification.
Quoted 3 lines
so if the 'mac99' machine type isn't suitable as the default either QEMU needs to change that for the ppc target, or the user needs to explicitly specify their desired machine type.
OK, that makes sense. So is the problem here just configuration or is it the next layer above libvirt not being configurable?
Currently, the next layer above libvirt is not configurable. It is dependent on this default setting. Users also expect to start one VM successfully by default.
Thanks.
-- Li
Quoted 7 lines
(the thing about changing the default is that it obviously breaks command line compatibility for anybody who was relying on the old default. So for ARM we're a bit locked in to a default which is pretty useless for most people.)
thanks
-- PMM
Quoted 11 lines · Li Zhang
Quoted 5 lines · Peter Maydell
Quoted 1 line · Daniel P. Berrange
Libvirt has always had support for specifying what machine type to use.
OK, that makes sense. So is the problem here just configuration or is it the next layer above libvirt not being configurable?
Currently, the next layer above libvirt is not configurable. It is dependent on this default setting. Users also expect to start one VM successfully by default.
Right. I think we've now identified the bit of software whose x86-centric assumptions need fixing :-)
thanks
-- PMM
Quoted 14 lines · Li Zhang
Quoted 13 lines · Peter Maydell
Quoted 7 lines · Daniel P. Berrange
Libvirt has always had support for specifying what machine type to use. This discussion is simply about what machine type to default to, if the user hasn't explicitly asked for one.
QEMU has the notion of a default machine for each target, and that is what libvirt uses if the user hasn't specified a machine. It is not libvirt's job to override QEMU's notion of the default machine here,
Agreed; thanks for the clarification.
Quoted 3 lines
so if the 'mac99' machine type isn't suitable as the default either QEMU needs to change that for the ppc target, or the user needs to explicitly specify their desired machine type.
Quoted 6 lines
Quoted 2 lines
OK, that makes sense. So is the problem here just configuration or is it the next layer above libvirt not being configurable?
Currently, the next layer above libvirt is not configurable. It is dependent on this default setting. Users also expect to start one VM successfully by default.
What is the application above libvirt you are using ? It clearly needs to be fixed if it is to use non-x86 archs successfully.
Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Quoted 9 lines · Daniel P. Berrange
Quoted 8 lines · Peter Maydell
Quoted 6 lines · Li Zhang
We encounter this problem in openstack which always use default machine type. Currently, QEMU sets mac99 as default setting for ppc64 but it doesn't work on our platform at all.
I tried to fix this in libvirt which it is not acceptable because libvirt only considers to get default setting from QEMU.
Quoted 8 lines
Quoted 4 lines
This will need to be fixed for ARM -- the whole idea of there being a sensible "default machine type" and it being the one QEMU starts by default is pretty x86-centric. libvirt needs to have support for specifying which machine to use.
Libvirt has always had support for specifying what machine type to use. This discussion is simply about what machine type to default to, if the user hasn't explicitly asked for one.
So, the situation is that the XML in question has <type>hvm</type>, in the <os> section. Does that say anything about what type of machine is being requested? Why is the machine type in the <os> section rather than the <domain> section?
Quoted 6 lines
QEMU has the notion of a default machine for each target, and that is what libvirt uses if the user hasn't specified a machine. It is not libvirt's job to override QEMU's notion of the default machine here, so if the 'mac99' machine type isn't suitable as the default either QEMU needs to change that for the ppc target, or the user needs to explicitly specify their desired machine type.
We are getting the default changed to 'pseries', at least for cases where pseries support is compiled in, which isn't necessarily always. That will of course not satisfy the Freescale guys.
I think libvirt needs some more sensible way to ask qemu what its capabilities are. Currently it has no way to ask qemu "what machines can you emulate with kvm acceleration?" If the user has asked for a KVM domain then the default machine should be one that can be provided by KVM. At present it isn't, on PowerPC.
Paul.
Quoted 15 lines · Paul Mackerras
Quoted 14 lines · Daniel P. Berrange
Quoted 12 lines · Peter Maydell
Quoted 6 lines · Li Zhang
We encounter this problem in openstack which always use default machine type. Currently, QEMU sets mac99 as default setting for ppc64 but it doesn't work on our platform at all.
I tried to fix this in libvirt which it is not acceptable because libvirt only considers to get default setting from QEMU.
This will need to be fixed for ARM -- the whole idea of there being a sensible "default machine type" and it being the one QEMU starts by default is pretty x86-centric. libvirt needs to have support for specifying which machine to use.
Quoted 7 lines
Quoted 3 lines
Libvirt has always had support for specifying what machine type to use. This discussion is simply about what machine type to default to, if the user hasn't explicitly asked for one.
So, the situation is that the XML in question has <type>hvm</type>, in the <os> section. Does that say anything about what type of machine is being requested?
Obviously not, since you've not specified any machine type and thus you'll get the default. If you don't like that, change your app to request a specific machine type.
Quoted 2 lines
Why is the machine type in the <os>
section rather than the <domain> section?
That's just the way it was chosen to be represented when first implemented. In hindsight that may be sub-optimal, but libvirt will not change existing XML schema design since that breaks back compatibilty which is worse.
Quoted 11 lines
Quoted 6 lines
QEMU has the notion of a default machine for each target, and that is what libvirt uses if the user hasn't specified a machine. It is not libvirt's job to override QEMU's notion of the default machine here, so if the 'mac99' machine type isn't suitable as the default either QEMU needs to change that for the ppc target, or the user needs to explicitly specify their desired machine type.
We are getting the default changed to 'pseries', at least for cases where pseries support is compiled in, which isn't necessarily always. That will of course not satisfy the Freescale guys.
Quoted 5 lines
I think libvirt needs some more sensible way to ask qemu what its capabilities are. Currently it has no way to ask qemu "what machines can you emulate with kvm acceleration?" If the user has asked for a KVM domain then the default machine should be one that can be provided by KVM. At present it isn't, on PowerPC.
If QEMU can provide more intelligent info in this respect, then libvirt can use it. We're doing the best we can with picking defaults given the info QEMU currently provides us.
Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Quoted 9 lines · Daniel P. Berrange
Quoted 5 lines · Paul Mackerras
I think libvirt needs some more sensible way to ask qemu what its capabilities are. Currently it has no way to ask qemu "what machines can you emulate with kvm acceleration?" If the user has asked for a KVM domain then the default machine should be one that can be provided by KVM. At present it isn't, on PowerPC.
If QEMU can provide more intelligent info in this respect, then libvirt can use it.
I think this would make sense. Currently for ARM to get KVM acceleration you have to use a specific guest CPU (A15), and so you have to use a machine which supports that CPU (currently just vexpress-a15). But we don't expose any way for libvirt to tell that it needs an A15 or which machine models support which CPUs. In fact we don't even give a sensible error message if you try to use a wrong CPU, we'll just blithely push ahead and behave very weirdly.
thanks
-- PMM
Quoted 19 lines · Daniel P. Berrange
Quoted 12 lines · Paul Mackerras
Quoted 6 lines · Daniel P. Berrange
QEMU has the notion of a default machine for each target, and that is what libvirt uses if the user hasn't specified a machine. It is not libvirt's job to override QEMU's notion of the default machine here, so if the 'mac99' machine type isn't suitable as the default either QEMU needs to change that for the ppc target, or the user needs to explicitly specify their desired machine type.
We are getting the default changed to 'pseries', at least for cases where pseries support is compiled in, which isn't necessarily always. That will of course not satisfy the Freescale guys.
Quoted 5 lines
I think libvirt needs some more sensible way to ask qemu what its capabilities are. Currently it has no way to ask qemu "what machines can you emulate with kvm acceleration?" If the user has asked for a KVM domain then the default machine should be one that can be provided by KVM. At present it isn't, on PowerPC.
Quoted 3 lines
If QEMU can provide more intelligent info in this respect, then libvirt can use it. We're doing the best we can with picking defaults given the info QEMU currently provides us.
We've talked in the past about having an accelerator specific machine default. I think this is a perfectly reasonable thing to do and would solve the problem for ARM and for PPC.
That said, why is mac99 the default? It doesn't seem to work at all for me. Even with TCG, I've had more luck with -M pseries.
While adding an accelerator specific default, if mac99 is the wrong default for TCG, then we should change it.
Regards,
Anthony Liguori
Quoted 8 lines
Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Quoted 3 lines · Anthony Liguori
We've talked in the past about having an accelerator specific machine default. I think this is a perfectly reasonable thing to do and would solve the problem for ARM and for PPC.
For ARM I would prefer not to have a default at all, and make the next level up specify it. It's reasonable to have a default machine choice for when you create a VM configuration; it's not so sensible to have a default that's picked every time you run the VM. The thing I think is most likely to be the useful choice for KVM/ARM isn't even in the tree yet...
There's no user level difference between "pick whether you wanted a model of a versatile-PB or a zaurus" and "pick whether you wanted a model of an x86-PC or an ARM zaurus". At the moment we require the user to specify the latter choice (by having them in separate executables) but try to guess the former.
Quoted 1 line
That said, why is mac99 the default?
Presumably because it was a sensible choice when it was originally put in, and once you have a default you can't change it without breaking peoples' command lines.
thanks
-- PMM
Quoted 21 lines · Anthony Liguori
Quoted 19 lines · Daniel P. Berrange
Quoted 17 lines · Paul Mackerras
Quoted 6 lines · Daniel P. Berrange
QEMU has the notion of a default machine for each target, and that is what libvirt uses if the user hasn't specified a machine. It is not libvirt's job to override QEMU's notion of the default machine here, so if the 'mac99' machine type isn't suitable as the default either QEMU needs to change that for the ppc target, or the user needs to explicitly specify their desired machine type.
We are getting the default changed to 'pseries', at least for cases where pseries support is compiled in, which isn't necessarily always. That will of course not satisfy the Freescale guys.
I think libvirt needs some more sensible way to ask qemu what its capabilities are. Currently it has no way to ask qemu "what machines can you emulate with kvm acceleration?" If the user has asked for a KVM domain then the default machine should be one that can be provided by KVM. At present it isn't, on PowerPC.
Quoted 7 lines
Quoted 3 lines
If QEMU can provide more intelligent info in this respect, then libvirt can use it. We're doing the best we can with picking defaults given the info QEMU currently provides us.
We've talked in the past about having an accelerator specific machine default. I think this is a perfectly reasonable thing to do and would solve the problem for ARM and for PPC.
If we get such thing, then virtio-ccw might also be the right default for kvm on s390.
Christian
Quoted 15 lines · Daniel P. Berrange
Quoted 14 lines · Li Zhang
Quoted 13 lines · Peter Maydell
Quoted 7 lines · Daniel P. Berrange
Libvirt has always had support for specifying what machine type to use. This discussion is simply about what machine type to default to, if the user hasn't explicitly asked for one.
QEMU has the notion of a default machine for each target, and that is what libvirt uses if the user hasn't specified a machine. It is not libvirt's job to override QEMU's notion of the default machine here,
Agreed; thanks for the clarification.
Quoted 3 lines
so if the 'mac99' machine type isn't suitable as the default either QEMU needs to change that for the ppc target, or the user needs to explicitly specify their desired machine type.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
OK, that makes sense. So is the problem here just configuration or is it the next layer above libvirt not being configurable?
Currently, the next layer above libvirt is not configurable. It is dependent on this default setting. Users also expect to start one VM successfully by default.
What is the application above libvirt you are using ? It clearly needs to be fixed if it is to use non-x86 archs successfully.
Sorry for replying late. The applications are openstack and ovirt.
Thanks.
-- Li
Quoted 2 lines
Daniel
Quoted 27 lines · Paul Mackerras
Quoted 8 lines · Daniel P. Berrange
Quoted 7 lines · Peter Maydell
Quoted 6 lines · Li Zhang
We encounter this problem in openstack which always use default machine type. Currently, QEMU sets mac99 as default setting for ppc64 but it doesn't work on our platform at all.
I tried to fix this in libvirt which it is not acceptable because libvirt only considers to get default setting from QEMU.
Quoted 7 lines
Quoted 4 lines
This will need to be fixed for ARM -- the whole idea of there being a sensible "default machine type" and it being the one QEMU starts by default is pretty x86-centric. libvirt needs to have support for specifying which machine to use.
Libvirt has always had support for specifying what machine type to use. This discussion is simply about what machine type to default to, if the user hasn't explicitly asked for one.
So, the situation is that the XML in question has <type>hvm</type>, in the <os> section. Does that say anything about what type of machine is being requested? Why is the machine type in the <os> section rather than the <domain> section?
Quoted 6 lines
QEMU has the notion of a default machine for each target, and that is what libvirt uses if the user hasn't specified a machine. It is not libvirt's job to override QEMU's notion of the default machine here, so if the 'mac99' machine type isn't suitable as the default either QEMU needs to change that for the ppc target, or the user needs to explicitly specify their desired machine type.
Quoted 3 lines
We are getting the default changed to 'pseries', at least for cases where pseries support is compiled in, which isn't necessarily always. That will of course not satisfy the Freescale guys.
You are right. This default setting can't satisfy every platform. So it will needs management tool to add one machine type option, if it wants to support different machine types for ppc64.
Thanks. :)
Quoted 8 lines
I think libvirt needs some more sensible way to ask qemu what its capabilities are. Currently it has no way to ask qemu "what machines can you emulate with kvm acceleration?" If the user has asked for a KVM domain then the default machine should be one that can be provided by KVM. At present it isn't, on PowerPC.
Paul.
Quoted 11 lines · Daniel P. Berrange
Quoted 6 lines · Paul Mackerras
On Tue, May 21, 2013 at 09:39:53AM +0100, Daniel P. Berrange wrote:
I think libvirt needs some more sensible way to ask qemu what its capabilities are. Currently it has no way to ask qemu "what machines can you emulate with kvm acceleration?" If the user has asked for a KVM domain then the default machine should be one that can be provided by KVM. At present it isn't, on PowerPC.If QEMU can provide more intelligent info in this respect, then libvirt can use it. We're doing the best we can with picking defaults given the info QEMU currently provides us.
Thinking about this a little more.
OpenStack pushes a lot of configuration to the nodes themselves instead of making things dynamic and exposing APIs (think host network configuration).
QEMU actually does allow a user to change the default machine type via the global config file so in theory you could do this with OpenStack.
However, since libvirt uses -nouserconfig, this doesn't work in practice.
Perhaps the right thing to do for OpenStack is to allow for a user specified configuration file to select things like the default hardware models/machine types? Then this could become node configuration instead of dynamic configuration.
I think it could be useful for general users too. Every domain requires a lot of the same boiler plate bits. I think a lot of configurations would benefit from being able to set global domain options.
Regards,
Anthony Liguori
Quoted 8 lines
Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Quoted 8 lines · Anthony Liguori
Perhaps the right thing to do for OpenStack is to allow for a user specified configuration file to select things like the default hardware models/machine types? Then this could become node configuration instead of dynamic configuration.
I think it could be useful for general users too. Every domain requires a lot of the same boiler plate bits. I think a lot of configurations would benefit from being able to set global domain options.
I have also argued in the past that it would be useful for libvirt to support the idea of a template, where you can specify a domain XML that inherits defaults from the template. We've already done things like this for networking, nwfilter, and even secret management (in domain XML, you declare that you are using a named network object, and that network object serves as the template instead of you having to hard-code all the elements into your domain XML), so we have a design to base it on. But until someone adds such a feature for libvirt, then OpenStack should be passing explicit XML to libvirt, and tracking defaults at the OpenStack layer.
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Quoted 10 lines · Eric Blake
Quoted 8 lines · Anthony Liguori
Perhaps the right thing to do for OpenStack is to allow for a user specified configuration file to select things like the default hardware models/machine types? Then this could become node configuration instead of dynamic configuration.
I think it could be useful for general users too. Every domain requires a lot of the same boiler plate bits. I think a lot of configurations would benefit from being able to set global domain options.
Quoted 10 lines
I have also argued in the past that it would be useful for libvirt to support the idea of a template, where you can specify a domain XML that inherits defaults from the template. We've already done things like this for networking, nwfilter, and even secret management (in domain XML, you declare that you are using a named network object, and that network object serves as the template instead of you having to hard-code all the elements into your domain XML), so we have a design to base it on. But until someone adds such a feature for libvirt, then OpenStack should be passing explicit XML to libvirt, and tracking defaults at the OpenStack layer.
I don't think the idea of a template belongs in libvirt. Creating basic XML structure with relevant defaults pre-filled for a particular usecase is something that the libvirt-designer library is aiming to take care of for applications.
Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Quoted 12 lines · Daniel P. Berrange
Quoted 10 lines · Eric Blake
I have also argued in the past that it would be useful for libvirt to support the idea of a template, where you can specify a domain XML that inherits defaults from the template. We've already done things like this for networking, nwfilter, and even secret management (in domain XML, you declare that you are using a named network object, and that network object serves as the template instead of you having to hard-code all the elements into your domain XML), so we have a design to base it on. But until someone adds such a feature for libvirt, then OpenStack should be passing explicit XML to libvirt, and tracking defaults at the OpenStack layer.
Quoted 1 line
I don't think the idea of a template belongs in libvirt.
This is fine. But the conversation started with a statement that it's QEMU's job to define reasonable defaults and libvirt just exposes those.
But in QEMU, we punt this problem by letting a user globally override this default. libvirt hides this ability from the end user.
So either it's libvirt's problem to solve, or you should expose the ability to set the global setting within QEMU. We can't just point our fingers at each other and hope the problem goes away :-)
Regards,
Anthony Liguori
Quoted 11 lines
Creating basic
XML structure with relevant defaults pre-filled for a particular usecase is something that the libvirt-designer library is aiming to take care of for applications.Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Quoted 18 lines · Anthony Liguori
Quoted 11 lines · Daniel P. Berrange
Quoted 10 lines · Eric Blake
I have also argued in the past that it would be useful for libvirt to support the idea of a template, where you can specify a domain XML that inherits defaults from the template. We've already done things like this for networking, nwfilter, and even secret management (in domain XML, you declare that you are using a named network object, and that network object serves as the template instead of you having to hard-code all the elements into your domain XML), so we have a design to base it on. But until someone adds such a feature for libvirt, then OpenStack should be passing explicit XML to libvirt, and tracking defaults at the OpenStack layer.
Quoted 1 line
I don't think the idea of a template belongs in libvirt.
This is fine. But the conversation started with a statement that it's QEMU's job to define reasonable defaults and libvirt just exposes those.
Quoted 6 lines
But in QEMU, we punt this problem by letting a user globally override this default. libvirt hides this ability from the end user.
So either it's libvirt's problem to solve, or you should expose the ability to set the global setting within QEMU. We can't just point our fingers at each other and hope the problem goes away :-)
Hi Anthony,
Currently, to resolve this problem, can we set 'pseries' as default? Because mac99 doesn't work at all on our platform.
Thanks. :)
-- Li
Quoted 16 lines
Regards,
Anthony Liguori
Quoted 11 lines
Creating basic
XML structure with relevant defaults pre-filled for a particular usecase is something that the libvirt-designer library is aiming to take care of for applications.Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|