1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-02 17:20:25 +02:00

Use Qemu instead of KVM when we don't have VMX/SVM

This commit is contained in:
Willem Mulder 2017-06-02 11:35:46 +02:00
parent 63fd20fff0
commit 60bb34ef1a

View File

@ -29,7 +29,7 @@ Vagrant.configure("2") do |config|
elsif configfile["vm_provider"] == "libvirt" elsif configfile["vm_provider"] == "libvirt"
# use KVM/QEMU if this is running in KVM/QEMU # use KVM/QEMU if this is running in KVM/QEMU
config.vm.provider :libvirt do |libvirt| config.vm.provider :libvirt do |libvirt|
libvirt.driver = "kvm" libvirt.driver = configfile["hwvirtex"] == "on" ? "kvm" : "qemu"
libvirt.host = "localhost" libvirt.host = "localhost"
libvirt.uri = "qemu:///system" libvirt.uri = "qemu:///system"
libvirt.cpus = configfile["cpus"] libvirt.cpus = configfile["cpus"]