How to install vagrant-vbguest plugin without Internet?

27 views
Skip to first unread message

Siew

unread,
Mar 17, 2020, 10:34:54 AM3/17/20
to Vagrant
Hi Vagrant community

I installed vagrant-vbguest plugin successfully in a virtual box that is connected to Internet using "vagrant plugin install vagrant-vbguest".

I had to reproduce the above in my offline production environment and without internet, it did not work. 
Error was "Vagrant failed to load a configured plugin source... no such name (https://gems.hashicorp.com/specs.4.8.gz)".

How can I install VirtualBox guest additions offline? 

Many thanks in advance.

Alvaro Miranda Aguilera

unread,
Mar 22, 2020, 5:48:09 AM3/22/20
to vagra...@googlegroups.com
hello

to answer your question.
you could download the gem file and then try
vagrant plugin install <vagrant-vbguest.gem>

however the only thing this plugin does is to reinstall virtualbox guest additions if not detected, the operation on the vm may need internet, as the OS may need packages (perl gcc kernel-headers kernel-sources)

so i think will be better if you create your own box ready to use, and then on the machines without internet access you just use them

this will also make happier the end user as will be quicker

you can use packer tool to build boxes, and you can use bento boxes as sample starting points



alvaro

This email is intended only for the named addressee(s) and may contain confidential and/or privileged information. If you are not the named addressee (or have received this e-mail in error), please notify the sender immediately. The unauthorised use, disclosure, distribution or copying of the contents in this e-mail is prohibited.

Thank you

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/5d21bfd5-0533-4fad-8e71-a70b9cbb7908%40googlegroups.com.


--
Alvaro

Reply all
Reply to author
Forward
0 new messages