vagrant-libvirt: undefined method `persistent?' for #

maci@nb0815 ~/Desktop/libvirt % vagrant up --provider=libvirt Bringing machine ‘test_vm’ up with ‘libvirt’ provider… An error occurred while executing multiple actions in parallel. Any errors that occurred are shown below.

An unexpected error ocurred when executing the action on the ‘test_vm’ machine. Please report this as a bug:

undefined method `persistent?' for #<Libvirt::StoragePool:0x007f15f546eeb8>

/home/maci/.vagrant.d/gems/gems/fog-1.15.0/lib/fog/libvirt/requests/compute/list_pools.rb:24:in `pool_to_attributes'
/home/maci/.vagrant.d/gems/gems/fog-1.15.0/lib/fog/libvirt/requests/compute/list_pools.rb:36:in `find_pool_by_name'
/home/maci/.vagrant.d/gems/gems/fog-1.15.0/lib/fog/libvirt/requests/compute/list_pools.rb:13:in `block in list_pools'
/home/maci/.vagrant.d/gems/gems/fog-1.15.0/lib/fog/libvirt/requests/compute/list_pools.rb:12:in `each'
/home/maci/.vagrant.d/gems/gems/fog-1.15.0/lib/fog/libvirt/requests/compute/list_pools.rb:12:in `list_pools'
/home/maci/.vagrant.d/gems/gems/fog-1.15.0/lib/fog/libvirt/models/compute/pools.rb:13:in `all'
/home/maci/.vagrant.d/gems/gems/vagrant-libvirt-0.0.11/lib/vagrant-libvirt/action/handle_storage_pool.rb:20:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/warden.rb:34:in `call'
/home/maci/.vagrant.d/gems/gems/vagrant-libvirt-0.0.11/lib/vagrant-libvirt/action/set_name_of_domain.rb:26:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/runner.rb:61:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/runner.rb:61:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/builtin/call.rb:51:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/warden.rb:34:in `call'
/home/maci/.vagrant.d/gems/gems/vagrant-libvirt-0.0.11/lib/vagrant-libvirt/action/connect_libvirt.rb:85:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/runner.rb:61:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/runner.rb:61:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/machine.rb:147:in `action'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/batch_action.rb:63:in `block (2 levels) in run'

1 maci@nb0815 ~/Desktop/libvirt % cat Vagrantfile 😦 Vagrant.configure(“2”) do |config|

If you are still using old centos box, you have to setup root username for

ssh access. Read more in section ‘SSH Access To VM’.

config.ssh.username = “root”

config.vm.define :test_vm do |test_vm| test_vm.vm.box = “lv-centos64” test_vm.vm.network :private_network, :ip => ‘10.20.30.40’ end

config.vm.provider :libvirt do |libvirt| libvirt.driver = “qemu” libvirt.storage_pool_name = “default” end end

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 25 (9 by maintainers)

Most upvoted comments

Found the problem:

Follow the instructions here https://github.com/adrahon/vagrant-kvm/wiki/Install_on_ArchLinux

The issue is with curl. You need to temporarily disable it

sudo mv /opt/vagrant/embedded/lib/libcurl.so{,.backup}
sudo mv /opt/vagrant/embedded/lib/libcurl.so.4{,.backup}
sudo mv /opt/vagrant/embedded/lib/libcurl.so.4.3.0{,.backup}
sudo mv /opt/vagrant/embedded/lib/pkgconfig/libcurl.pc{,.backup}