Domain type 'kvm' should be configurable and use qemu:/// uri. #182
Conversation
|
Yikes! No wonder my virtual machines were so slow when testing 1.5.1. |
purpleidea
added a commit
to purpleidea/puppet-gluster
that referenced
this pull request
May 5, 2014
|
|
purpleidea |
89aa9b2
|
|
Let me know when this is merged so that I can push: Cheers |
|
Hi James, what commit(s) caused the problem? |
purpleidea
added a commit
to purpleidea/puppet-gluster
that referenced
this pull request
May 5, 2014
|
|
purpleidea |
3c7cd05
|
|
I didn't bisect it, but in (vagrant-libvirt 0.0.14 i think) this worked. In action/create_domain.rb there is:
So since it was hardcoded in, this always worked. Does this help? PS: Thanks for the fast response... |
|
I should note that it's fine that we can actually use this property now (I personally don't need to, but whatever) however if we specify type kvm, it should actually get passed through and used. Without my patch, you can't specify the kvm domain type. (Unless I misunderstood this problem somehow, however this patch works great for me!) |
pronix
merged commit f138076 into vagrant-libvirt:master May 6, 2014
|
Sorry for being slow to grasp what is going on here. @purpleidea what you are saying is that e382687 disabled hardware acceleration by default? That's a serious regression. I guess the easy fix is to change the default in config.rb (and the README and sample vagrantfile) to kvm.
|
|
@sciurus Yeah, it was a pretty serious regression. Keep in mind that my patch is still important (with or without the e382687 regression) because we need to do correct uri parsing to still use qemu:/// as there's no "kvm:///" uri :) I don't know if there are other implications to changing the default to 'kvm'. Also, this all "works for me", but I haven't tested in other environments. |
|
BTW, nice catch finding that patch :) If we really had time, we'd review their other patches for regressions, or find out more about why qemu was a better default for them... |
|
Right, I get what you're saying about the URI. PR as soon as I finish testing. |
|
Martin was working on xen support, so the hard-coded kvm value didn't work for him. For anyone else who was confused: although qemu/kvm is documented as being a single driver and always uses qemu in the uri, you have to specify qemu or kvm as the domain type in the xml depending on whether or not you want hardware acceleration. It's easy to miss the problem since afaik for all the other drivers there is a only one domain type. |
|
On Sun, May 11, 2014 at 12:01 AM, Brian Pitts notifications@github.comwrote:
Yep :) |
purpleidea commentedMay 5, 2014
Previous versions simply defaulted to 'kvm'. Now that they default to
'qemu', there is typically a 5x performance decrease that makes vagrant
unusably slow.