Closed mhamann closed 10 years ago
I need to test the plugin with latest Vagrant.
This error may happen from ruby-libvirt. Which version of ruby-libvirt you used?
I'm going to close this issue if there's no confirmation, the plugin works from what I've tested.
I switched to using the vagrant-libvirt driver instead, which seems to work well on my system. Not sure why, since KVM and libvirt are related, but I'm no expert on these technologies, so I couldn't say.
This also happened to me. Updated to Ubuntu 14.10, using vagrant 1.4.3, ruby-libvirt 0.5.1-3 and vagrant-kvm 0.1.9. This is the backtrace:
/home/esteban/.vagrant.d/gems/gems/vagrant-kvm-0.1.9/lib/vagrant-kvm/driver/driver.rb:735:in `capabilities': Expected Connection object (ArgumentError)
from /home/esteban/.vagrant.d/gems/gems/vagrant-kvm-0.1.9/lib/vagrant-kvm/driver/driver.rb:735:in `connect_libvirt_qemu!'
from /home/esteban/.vagrant.d/gems/gems/vagrant-kvm-0.1.9/lib/vagrant-kvm/driver/driver.rb:44:in `initialize'
from /home/esteban/.vagrant.d/gems/gems/vagrant-kvm-0.1.9/lib/vagrant-kvm/provider.rb:34:in `new'
from /home/esteban/.vagrant.d/gems/gems/vagrant-kvm-0.1.9/lib/vagrant-kvm/provider.rb:34:in `machine_id_changed'
from /home/esteban/.vagrant.d/gems/gems/vagrant-kvm-0.1.9/lib/vagrant-kvm/provider.rb:15:in `initialize'
from /usr/lib/ruby/vendor_ruby/vagrant/machine.rb:116:in `new'
from /usr/lib/ruby/vendor_ruby/vagrant/machine.rb:116:in `initialize'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:434:in `new'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:434:in `machine'
from /usr/lib/ruby/vendor_ruby/vagrant/plugin/v2/command.rb:142:in `block in with_target_vms'
from /usr/lib/ruby/vendor_ruby/vagrant/plugin/v2/command.rb:175:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/plugin/v2/command.rb:175:in `block in with_target_vms'
from /usr/lib/ruby/vendor_ruby/vagrant/plugin/v2/command.rb:174:in `map'
from /usr/lib/ruby/vendor_ruby/vagrant/plugin/v2/command.rb:174:in `with_target_vms'
from /usr/share/vagrant/plugins/commands/up/command.rb:56:in `block in execute'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:210:in `block (2 levels) in batch'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:208:in `tap'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:208:in `block in batch'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:207:in `synchronize'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:207:in `batch'
from /usr/share/vagrant/plugins/commands/up/command.rb:55:in `execute'
from /usr/lib/ruby/vendor_ruby/vagrant/cli.rb:38:in `execute'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:484:in `cli'
from /usr/bin/vagrant:127:in `<main>'
Tried a backport to trusty ruby-libvirt (0.5.1-1) but the problem continues.
I tried updating to vagrant 1.6.5 and couldn't make it work either
I tried destroying the old machine and building the machine again from scratch and the problem is gone now.
By destroying and rebuilding the machine do you mean the Vagrant VM? Or the base box? In any case, it looks like bad error handling on our side.
I destroyed both because the migration to vagrant 1.6.5 moved the boxes to a subdirectory /0/
and messed everything.
Is it working now? It would be great to be able to reproduce.
@hmehra you meant to report this as a vagrant-libvirt issue, I think? https://github.com/pradels/vagrant-libvirt/
Getting the following error when running
vagrant up
: