jedi4ever / veewee

Easing the building of vagrant boxes
MIT License
4.29k stars 779 forks source link

There was a problem opening a connection to libvirt: libvirt is not a recognized provider #1090

Open abma opened 8 years ago

abma commented 8 years ago

i'm getting the error and i have no clue how to fix it / can't find any further info about it.

    $ veewee kvm build 'spring-vm' --workdir=/mnt/tmp/home/dev/springrts-vagrant --debug
    2016-01-14 03:49:15 +0100 - environment - [veewee] Loading configuration...
    2016-01-14 03:49:15 +0100 -  - [veewee] Initializing veewee config object
    2016-01-14 03:49:15 +0100 -  - [veewee] No configfile found
    2016-01-14 03:49:15 +0100 - environment - [veewee] Environment initialized (#<Veewee::Environment:0x00000002b6d198>)
    2016-01-14 03:49:15 +0100 - environment - [veewee]  - cwd : /mnt/tmp/home/dev/springrts-vagrant
    2016-01-14 03:49:15 +0100 - environment - [veewee]  - veewee_filename : Veeweefile
    2016-01-14 03:49:15 +0100 - environment - [veewee]  - template_path : ["/var/lib/gems/2.1.0/gems/veewee-0.4.5.1/templates", "templates"]
    2016-01-14 03:49:15 +0100 - environment - [veewee]  - validation_dir : /var/lib/gems/2.1.0/gems/veewee-0.4.5.1/validation
    2016-01-14 03:49:15 +0100 -  - [veewee] Reading ostype yamlfile /var/lib/gems/2.1.0/gems/veewee-0.4.5.1/lib/veewee/config/ostypes.yml
    2016-01-14 03:49:15 +0100 - ui - [veewee] veewee
    2016-01-14 03:49:17 +0100 -  - [veewee] Falling back to qemu:///system for libvirt URI if no value is specified in the .fog config file
    2016-01-14 03:49:17 +0100 -  - [veewee] Setting libvirt IP Command if not already defined in .fog config file
    2016-01-14 03:49:17 +0100 -  - [veewee] Opening a libvirt connection using fog.io
    2016-01-14 03:49:17 +0100 -  - [veewee] Checking for gem ruby-libvirt
    2016-01-14 03:49:17 +0100 -  - [veewee] Opening a libvirt connection using fog.io
    2016-01-14 03:49:17 +0100 - ui - [veewee] There was a problem opening a connection to libvirt: libvirt is not a recognized provider
    There was a problem opening a connection to libvirt: libvirt is not a recognized provider

can you give some hints or pointers? is there a logfile somewhere?

 $ vagrant plugin list
 fog-libvirt (0.0.3)
 veewee (0.4.5.1)
 $ vagrant --version
 Vagrant 1.7.4

(thats on Ubuntu 15.10)

"virsh list" works

abma commented 8 years ago

the solution was to downgrade fog.

i.e.

gem install vagrant gem install fog-core --version 1.29.0 gem install fog --version 1.29.0 gem install veewee gog-libvirt