ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Issues installing vagrant-libvirt plugin on Ubuntu 20.04

    IT Discussion
    3
    24
    6.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • IRJI
      IRJ
      last edited by IRJ

      Following this guide

      https://github.com/vagrant-libvirt/vagrant-libvirt

      joel@systemname:~$ vagrant plugin install vagrant-libvirt
      Installing the 'vagrant-libvirt' plugin. This can take a few minutes...
      Building native extensions. This could take a while...
      Building native extensions. This could take a while...
      Vagrant failed to properly resolve required dependencies. These
      errors can commonly be caused by misconfigured plugin installations
      or transient network issues. The reported error is:
      
      ERROR: Failed to build gem native extension.
      
          current directory: /home/joel/.vagrant.d/gems/2.6.6/gems/ruby-libvirt-0.7.1/ext/libvirt
      /opt/vagrant/embedded/bin/ruby -I /opt/vagrant/embedded/lib/ruby/2.6.0 -r ./siteconf20200801-37599-172c5bm.rb extconf.rb
      *** extconf.rb failed ***
      Could not create Makefile due to some reason, probably lack of necessary
      libraries and/or headers.  Check the mkmf.log file for more details.  You may
      need configuration options.
      
      Provided configuration options:
      	--with-opt-dir
      	--with-opt-include
      	--without-opt-include=${opt-dir}/include
      	--with-opt-lib
      	--without-opt-lib=${opt-dir}/lib
      	--with-make-prog
      	--without-make-prog
      	--srcdir=.
      	--curdir
      	--ruby=/opt/vagrant/embedded/bin/$(RUBY_BASE_NAME)
      	--with-libvirt-include
      	--without-libvirt-include
      	--with-libvirt-lib
      	--without-libvirt-lib
      	--with-libvirt-config
      	--without-libvirt-config
      	--with-pkg-config
      	--without-pkg-config
      extconf.rb:73:in `<main>': libvirt library not found in default locations (RuntimeError)
      
      To see why this extension failed to compile, please check the mkmf.log which can be found here:
      
        /home/joel/.vagrant.d/gems/2.6.6/extensions/x86_64-linux/2.6.0/ruby-libvirt-0.7.1/mkmf.log
      
      extconf failed, exit code 1
      
      Gem files will remain installed in /home/joel/.vagrant.d/gems/2.6.6/gems/ruby-libvirt-0.7.1 for inspection.
      Results logged to /home/joel/.vagrant.d/gems/2.6.6/extensions/x86_64-linux/2.6.0/ruby-libvirt-0.7.1/gem_make.out
      
      1 Reply Last reply Reply Quote 0
      • IRJI
        IRJ
        last edited by

        Contents of /home/joel/.vagrant.d/gems/2.6.6/extensions/x86_64-linux/2.6.0/ruby-libvirt-0.7.1/mkmf.log

        "pkg-config --exists libvirt"
        package configuration for libvirt is not found
        
        1 Reply Last reply Reply Quote 0
        • stacksofplatesS
          stacksofplates
          last edited by

          I just install it with apt. I haven't tried this way in a long time.

          IRJI 1 Reply Last reply Reply Quote 0
          • IRJI
            IRJ @stacksofplates
            last edited by

            @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

            I just install it with apt. I haven't tried this way in a long time.

            It installed via apt but its not seeing libvirt as an available provider.

            1 Reply Last reply Reply Quote 0
            • IRJI
              IRJ
              last edited by

              vagrant up --provider=libvirt
              
              The provider 'libvirt' could not be found, but was requested to
              back the machine 'default'. Please use a provider that exists.
              
              Vagrant knows about the following providers: docker, virtualbox, hyperv
              
              
              1 Reply Last reply Reply Quote 0
              • stacksofplatesS
                stacksofplates
                last edited by

                Did you do both vagrant and libvirt-vagrant through apt?

                IRJI 1 Reply Last reply Reply Quote 0
                • IRJI
                  IRJ @stacksofplates
                  last edited by

                  @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

                  Did you do both vagrant and libvirt-vagrant through apt?

                  yes

                  stacksofplatesS 1 Reply Last reply Reply Quote 0
                  • stacksofplatesS
                    stacksofplates @IRJ
                    last edited by

                    @IRJ said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

                    @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

                    Did you do both vagrant and libvirt-vagrant through apt?

                    yes

                    Ok I'll look at my laptop when I get back.

                    1 Reply Last reply Reply Quote 0
                    • stacksofplatesS
                      stacksofplates
                      last edited by

                      Do you have a /usr/share/vagrant-plugins/plugins.d/vagrant-libvirt.json file?

                      IRJI 1 Reply Last reply Reply Quote 0
                      • IRJI
                        IRJ @stacksofplates
                        last edited by

                        @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

                        Do you have a /usr/share/vagrant-plugins/plugins.d/vagrant-libvirt.json file?

                        Yes

                        {
                          "vagrant-libvirt": {
                            "ruby_version":"2.5.1",
                            "vagrant_version":"2.0.2",
                            "gem_version":"",
                            "require":"",
                            "sources":[]
                          }
                        }
                        
                        
                        1 1 Reply Last reply Reply Quote 0
                        • stacksofplatesS
                          stacksofplates
                          last edited by

                          what if you do a vagrant plugin list

                          IRJI 1 Reply Last reply Reply Quote 0
                          • IRJI
                            IRJ @stacksofplates
                            last edited by

                            @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

                            vagrant plugin list

                            No plugins installed.

                            stacksofplatesS 1 Reply Last reply Reply Quote 0
                            • stacksofplatesS
                              stacksofplates @IRJ
                              last edited by

                              @IRJ said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

                              @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

                              vagrant plugin list

                              No plugins installed.

                              So I'm kind of shooting in the dark. Is there a plugins directory under ~/.vagrant.d/?

                              If there is what happens if you delete it?

                              IRJI 1 Reply Last reply Reply Quote 0
                              • IRJI
                                IRJ @stacksofplates
                                last edited by

                                @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

                                @IRJ said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

                                @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

                                vagrant plugin list

                                No plugins installed.

                                So I'm kind of shooting in the dark. Is there a plugins directory under ~/.vagrant.d/?

                                If there is what happens if you delete it?

                                ~/.vagrant.d$ ls
                                boxes  data  gems  insecure_private_key  rgloader  setup_version  tmp
                                
                                1 Reply Last reply Reply Quote 0
                                • IRJI
                                  IRJ
                                  last edited by

                                  So no plugins directory

                                  1 Reply Last reply Reply Quote 0
                                  • IRJI
                                    IRJ
                                    last edited by

                                    joel@systemname:~/.vagrant.d$ sudo apt install vagrant-libvirt
                                    [sudo] password for joel: 
                                    Reading package lists... Done
                                    Building dependency tree       
                                    Reading state information... Done
                                    vagrant-libvirt is already the newest version (0.0.45-2).
                                    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                                    
                                    stacksofplatesS 1 Reply Last reply Reply Quote 0
                                    • stacksofplatesS
                                      stacksofplates @IRJ
                                      last edited by

                                      @IRJ said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

                                      joel@systemname:~/.vagrant.d$ sudo apt install vagrant-libvirt
                                      [sudo] password for joel: 
                                      Reading package lists... Done
                                      Building dependency tree       
                                      Reading state information... Done
                                      vagrant-libvirt is already the newest version (0.0.45-2).
                                      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                                      

                                      What if you do a reinstall? apt --reinstall vagrant-libvirt?

                                      IRJI 1 Reply Last reply Reply Quote 0
                                      • 1
                                        1337 @IRJ
                                        last edited by 1337

                                        @IRJ said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

                                        @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

                                        Do you have a /usr/share/vagrant-plugins/plugins.d/vagrant-libvirt.json file?

                                        Yes

                                        {
                                          "vagrant-libvirt": {
                                            "ruby_version":"2.5.1",
                                            "vagrant_version":"2.0.2",
                                            "gem_version":"",
                                            "require":"",
                                            "sources":[]
                                          }
                                        }
                                        
                                        

                                        Isn't 2.0.2 old as dirt? 2.2.9 is the current version.

                                        IRJI 1 Reply Last reply Reply Quote 0
                                        • IRJI
                                          IRJ @1337
                                          last edited by

                                          @Pete-S said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

                                          @IRJ said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

                                          @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

                                          Do you have a /usr/share/vagrant-plugins/plugins.d/vagrant-libvirt.json file?

                                          Yes

                                          {
                                            "vagrant-libvirt": {
                                              "ruby_version":"2.5.1",
                                              "vagrant_version":"2.0.2",
                                              "gem_version":"",
                                              "require":"",
                                              "sources":[]
                                            }
                                          }
                                          
                                          

                                          Isn't 2.0.2 old as dirt? 2.2.9 is the current version.

                                          I have 2.2.9 installed. Not sure why the config mentions that version

                                          1 Reply Last reply Reply Quote 0
                                          • IRJI
                                            IRJ @stacksofplates
                                            last edited by

                                            @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04:

                                            apt --reinstall vagrant-libvirt

                                            Reinstall supposedly worked, but still not seeing plugin

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post