# Vagrant-libvirt =\> How to install plugin in machines without internet connection?

**URL:** <https://discuss.hashicorp.com/t/vagrant-libvirt-how-to-install-plugin-in-machines-without-internet-connection/48775>\
**Category:** Vagrant\
**Created:** [January 10, 2023, 12:55pm UTC](https://discuss.hashicorp.com/t/vagrant-libvirt-how-to-install-plugin-in-machines-without-internet-connection/48775 "2023-01-10T12:55:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cesar.delgado](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/cesar.delgado/32/24207_2.png) [@cesar.delgado](https://discuss.hashicorp.com/u/cesar.delgado)\
**Post date:** [January 10, 2023, 12:55pm UTC](https://discuss.hashicorp.com/t/vagrant-libvirt-how-to-install-plugin-in-machines-without-internet-connection/48775/1 "2023-01-10T12:55:14Z")

</div>

Dear all:  
Thank you for your great work !!!  
Just one question, for me it is very difficult to install vagrant-libvirt plugin in machines that has no internet access on RHEL8. Once all dependencies already installed in the machine, as well as vagrant RPM packages, here the different attemtps:

**TRIAL 1: from Gem File… the dependencies hell**  
 → URL: [https://rubygems.org/gems/vagrant-libvirt](https://rubygems.org/gems/vagrant-libvirt)  
 → Procedure: [https://github.com/vagrant-libvirt/vagrant-libvirt](https://github.com/vagrant-libvirt/vagrant-libvirt)

Which dependencies required? How to install them?

**TRIAL 2: from bash script**  
 → URL: [https://github.com/vagrant-libvirt/vagrant-libvirt-qa/blob/main/scripts/install.bash](https://github.com/vagrant-libvirt/vagrant-libvirt-qa/blob/main/scripts/install.bash)  
 → Procedure: [https://vagrant-libvirt.github.io/vagrant-libvirt/installation.html](https://vagrant-libvirt.github.io/vagrant-libvirt/installation.html)

Script do not work on RHEL distros.

**TRIAL 3: from source code**  
URL: [https://github.com/vagrant-libvirt/vagrant-libvirt](https://github.com/vagrant-libvirt/vagrant-libvirt)  
 → Procedure: [https://vagrant-libvirt.github.io/vagrant-libvirt/installation.html](https://vagrant-libvirt.github.io/vagrant-libvirt/installation.html)

Using rake, gemspec tries to connect to internet… so, not working.

Any help, will be very welcome.

All the best

---

<div class="post-metadata">

**Author:** ![cesar.delgado](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/cesar.delgado/32/24207_2.png) [@cesar.delgado](https://discuss.hashicorp.com/u/cesar.delgado)\
**Post date:** [January 10, 2023, 1:36pm UTC](https://discuss.hashicorp.com/t/vagrant-libvirt-how-to-install-plugin-in-machines-without-internet-connection/48775/2 "2023-01-10T13:36:16Z")

</div>

Apparently, this is the list of dependencies you need to install:

_[root@mds001 ~]# vagrant plugin list_  
_diffy (3.4.2, global)_

- 
  - Version Constraint: 3.4.2\*  
_fog-core (2.3.0, global)_

- 
  - Version Constraint: 2.3.0\*  
_fog-json (1.2.0, global)_

- 
  - Version Constraint: 1.2.0\*  
_fog-xml (0.1.4, global)_

- 
  - Version Constraint: 0.1.4\*  
_formatador (1.1.0, global)_

- 
  - Version Constraint: 1.1.0\*  
_mini\_portile2 (2.8.1, global)_

- 
  - Version Constraint: 2.8.1\*  
_nokogiri (1.13.10, global)_

- 
  - Version Constraint: 1.13.10\*  
_vagrant-libvirt (0.11.2, global)_

- 
  - Version Constraint: 0.11.2\*  
_xml-simple (1.1.9, global)_

- 
  - Version Constraint: 1.1.9\*

→ Procedure: vagrant plugin install --plugin-clean-sources ./dependency.gem  
 → Download GemFile from: [https://rubygems.org/gems/nokogiri/versions/1.6.8?locale=es](https://rubygems.org/gems/nokogiri/versions/1.6.8?locale=es)

→ Becarefull with RHEL8 specific folders:  
CONFIGURE\_ARGS=“with-libvirt-include=/usr/include/libvirt with-libvirt-lib=/usr/lib64” vagrant plugin install --plugin-clean-sources ./vagrant-libvirt-0.11.2.gem

---

<div class="post-metadata">

**Author:** ![cesar.delgado](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/cesar.delgado/32/24207_2.png) [@cesar.delgado](https://discuss.hashicorp.com/u/cesar.delgado)\
**Post date:** [January 10, 2023, 4:25pm UTC](https://discuss.hashicorp.com/t/vagrant-libvirt-how-to-install-plugin-in-machines-without-internet-connection/48775/3 "2023-01-10T16:25:31Z")

</div>

Now, I have issues adding boxes from local file. Therefore, no way to test the installation.

Any ideas?

Thank you

_[root@mds001 ~]# vagrant box add indra/test file:///root/repo/indra/boxes/test/versions/1.0.0/providers/libvirt.box_  
_Vagrant failed to initialize at a very early stage:_

_The plugins failed to load properly. The error message given is_  
_shown below._

_cannot load such file – xml/simple_
