[DRE-commits] [vagrant-libvirt] 59/77: Default to kvm domain type

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Apr 24 13:56:39 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to annotated tag 0.0.17
in repository vagrant-libvirt.

commit 60ab03a3b341a8495485b6502e12048524d25469
Author: Brian Pitts <brian at polibyte.com>
Date:   Sat May 10 22:42:38 2014 -0500

    Default to kvm domain type
---
 README.md                     | 4 ++--
 example_box/Vagrantfile       | 5 +++--
 lib/vagrant-libvirt/config.rb | 2 +-
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index 0759aea..ee95cd3 100644
--- a/README.md
+++ b/README.md
@@ -80,7 +80,7 @@ Vagrant.configure("2") do |config|
   end
 
   config.vm.provider :libvirt do |libvirt|
-    libvirt.driver = "qemu"
+    libvirt.driver = "kvm"
     libvirt.host = "localhost"
     libvirt.connect_via_ssh = true
     libvirt.username = "root"
@@ -100,7 +100,7 @@ end
 
 This provider exposes quite a few provider-specific configuration options:
 
-* `driver` - A hypervisor name to access. For now only qemu is supported.
+* `driver` - A hypervisor name to access. For now only kvm and qemu are supported.
 * `host` - The name of the server, where libvirtd is running.
 * `connect_via_ssh` - If use ssh tunnel to connect to Libvirt.
 * `username` - Username and password to access Libvirt.
diff --git a/example_box/Vagrantfile b/example_box/Vagrantfile
index f3026ad..594b9b1 100644
--- a/example_box/Vagrantfile
+++ b/example_box/Vagrantfile
@@ -33,10 +33,11 @@ Vagrant.configure("2") do |config|
 
     # A hypervisor name to access. Different drivers can be specified, but
     # this version of provider creates KVM machines only. Some examples of
-    # drivers are qemu (KVM/qemu), xen (Xen hypervisor), lxc (Linux Containers),
+    # drivers are kvm (qemu hardware accelerated), qemu (qemu emulated),
+    # xen (Xen hypervisor), lxc (Linux Containers),
     # esx (VMware ESX), vmwarews (VMware Workstation) and more. Refer to
     # documentation for available drivers (http://libvirt.org/drivers.html).
-    libvirt.driver = "qemu"
+    libvirt.driver = "kvm"
 
     # The name of the server, where libvirtd is running.
     libvirt.host = "localhost"
diff --git a/lib/vagrant-libvirt/config.rb b/lib/vagrant-libvirt/config.rb
index 3a6aec4..bf23192 100644
--- a/lib/vagrant-libvirt/config.rb
+++ b/lib/vagrant-libvirt/config.rb
@@ -123,7 +123,7 @@ module VagrantPlugins
       end
 
       def finalize!
-        @driver = 'qemu' if @driver == UNSET_VALUE
+        @driver = 'kvm' if @driver == UNSET_VALUE
         @host = nil if @host == UNSET_VALUE
         @connect_via_ssh = false if @connect_via_ssh == UNSET_VALUE
         @username = nil if @username == UNSET_VALUE

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/vagrant-libvirt.git



More information about the Pkg-ruby-extras-commits mailing list