r/vagrant • • Jul 02 '21

Vagrant VMware plugin now free and open-source

15 Upvotes

Having started using Vagrant a little while ago with VMware, and finding it a bit annoying that they were charging for a licence for the VMware plugin for Vagrant, I was pleasantly surprised to find that they've recently open-sourced it and removed the need to buy a licence.

Relevant links where I noticed this / it's documented:

This is really good news - since most of my peers are already using VMware, this removes the stumbling block to adoption so I hope to see lots more Vagrant use popping up in my organisation soon.


r/vagrant • • Jun 15 '21

VirtualBox Alternatives for M1 Mac

14 Upvotes

VirtualBox is written for X86 architecture and not ARM. Since it would be in essence a complete rewrite of VirtualBox to make it work on the M1 architecture, I'm not holding my breath waiting for that to happen.

What alternatives are available for supporting Vagrant on Apple's new ARM-based chips?

  1. It looks like it is possible to install Homebrew for X86 on the M1, which would allow qemu to be installed, but I don't think Vagrant works with qemu.

  2. Docker?

  3. Buy a Parallels license for $80?

  4. Keep my Intel MacBook Pro and run Vagrant there

Something else entirely?


r/vagrant • • Jul 11 '16

vssh - a faster, more aware `vagrant ssh`

Thumbnail
github.com
13 Upvotes

r/vagrant • • Aug 27 '21

Vagrant Engineers @ Hashi dive deeper into how they're going to port Vagrant to Golang

Thumbnail
hashicorp.com
12 Upvotes

r/vagrant • • Mar 14 '16

Developing with VirtualBox and Vagrant on Windows

Thumbnail
jeffgeerling.com
11 Upvotes

r/vagrant • • Jan 29 '19

I am Mitchell Hashimoto, Founder and CTO of HashiCorp. Ask me anything! - Hashnode

Thumbnail
hashnode.com
10 Upvotes

r/vagrant • • Sep 11 '21

Provider for UTM (VM for M1 processors)

9 Upvotes

If you have M1 processor and you would like use Vagrant please vote here:

https://github.com/hashicorp/vagrant/issues/12518


r/vagrant • • Mar 17 '21

Vagrant 101 Tutorial - All you need to know to get started with Vagrant.

Thumbnail
youtube.com
9 Upvotes

r/vagrant • • Jan 15 '21

Simple interactive menu for Vagrant

9 Upvotes

So, I've been working with Vagrant for some time now, and I wanted to share a small script I wrote that made my life much easier.

My setup includes ssh-ing to my dev machine and running/using multiple local VMs through Vagrant.

The script wraps the Vagrant command line API to make it super easy to run interactively. For example, I no longer need to remember where each box is located, I can simply run ivagrant , get a menu with all the installed boxes, choose one and run a command (e.g. up/halt/ssh) on that box.

If you remember the machine index, you can also specify the machine number and the command to run it immediately, for example: ivagrant 2 ssh

Tip: Place the script under your $PATH so you can call it from everywhere.

I uploaded the script as a Github Gist for everyone to use :)

If you liked it, a star will be greatly appreciated!


r/vagrant • • Apr 22 '16

Minimal Ubuntu 16.04 Xenial Vagrant box for VirtualBox/VMWare

Thumbnail atlas.hashicorp.com
9 Upvotes

r/vagrant • • Jul 21 '15

Tips for a better Vagrant-based development workflow

Thumbnail
midwesternmac.com
9 Upvotes

r/vagrant • • Dec 14 '20

Vagrant Tutorial For Beginners

Thumbnail
ostechnix.com
8 Upvotes

r/vagrant • • Apr 21 '19

How to trace networks traffic of a vagrant box

Thumbnail
medium.com
8 Upvotes

r/vagrant • • Nov 08 '16

Getting Started With Vagrant | The Basics

Thumbnail
youtube.com
8 Upvotes

r/vagrant • • Jan 13 '16

Vagrant annoyed me with lots of old boxes and no good way to remove them. I just released Just released vagrant-remove-old-box-versions, a plugin that fixes that.

Thumbnail
github.com
8 Upvotes

r/vagrant • • Jan 11 '15

Don't copy your Vagrantfile

Thumbnail blog.zigomir.com
8 Upvotes

r/vagrant • • Sep 15 '20

Create a local Kubernetes cluster with Vagrant

Thumbnail
tferdinand.net
7 Upvotes

r/vagrant • • Oct 29 '19

Tutorial: Run macOS Mojave using Vagrant

7 Upvotes

I wrote a tutorial on how to launch macOS Mojave (and soon Catalina) VMs using Vagrant. I've mostly used it for development and testing of Ansible playbooks targeted at configuring headless builders for iOS and macOS apps (I'll write a tutorial on that as well).

Hopefully someone will find it useful. Please let me know if I can improve the tutorial or the site. All feedback is much appreciated! :)

https://lunar.computer/posts/vagrant-macos-mojave/


r/vagrant • • Apr 10 '16

"Make Vagrant great again" - Guide & Tips

Thumbnail
github.com
7 Upvotes

r/vagrant • • Feb 16 '21

Vagrant Cheat Sheet

Thumbnail
pazikas.com
6 Upvotes

r/vagrant • • Feb 15 '20

vagrant-buildspec - A simple template for building Vagrantfiles

6 Upvotes

I've been building up and tearing down quite a few VMs, lately, while I am learning to use Vagrant and Ansible, and quickly grew tired of editing the Vagrantfile.

So, I created a small GitHub repo called vagrant-buildspec.

It's by no means revolutionary; but, it makes my life a little bit easier, and it has been fun to create. So I thought that I would share.

Basically, you enter your Vagrant build details into a flat YAML file, run vagrant up, and the details of your build get pulled into the Vagrantfile.

It currently supports the customisation of the following parameters:

  • VirtualBox Name
  • VirtualBox Guest Hostname 
  • Vagrant Box Name
  • Ansible Host
  • Provider
  • CPU
  • Memory
  • Private IP Address
  • Public IP Address
  • Forwarding Ports
  •     Guest Port
  •     Host Port  
  • Synced Folders
  •     Guest Folder
  •     Host Folder
  • Ansible Inventory File Location
  • Ansible Playbook Location

Feel free to clone, fork, spin, fold, or mutilate as you wish.

I'd welcome any feedback or constructive criticism on how I might improve the project or its documentation.

P.S. This project was initially inspired by this ancient post


r/vagrant • • Apr 27 '19

How to use Vagrant VM when disconnected from Internet?

6 Upvotes

I'm running Vagrant 2.2.3 on VirtualBox 5.2.26 and have built a Debian box from the "debian/stretch64" image. I built the VM, created a personal account, and then copied my SSH public key to my ~/.ssh/known_hosts file on the VM so I wouldn't need to login with a password. Everything worked fine until I tried to work on the VM while I was on an airplane and disconnected from the Internet. Under this situation, I found it very difficult to connect to the box. I would either get this error:

packet_write_wait: Connection to 192.168.2.107 port 22: Broken pipe

or this one:

Permission denied (publickey)

Are soon as I reconnected to the Internet when I got home, these errors disappeared. Is there some trick to working on a Vagrant VM when your local machine isn't connected to the Internet? I have the virtual machine's IP address in my /etc/hosts file.

Thanks.


r/vagrant • • Apr 29 '18

Vagrant/Hashicorp tech support definitely needs improvement.

6 Upvotes

Vagrant/Hashicorp tech support definitely needs improvement.

I have a AMD 32gb RAM CentOS 7.4 desktop at home that I use for virtualization machine testing. 

I recently paid for and installed VMware Workstation and the Vagrant VMWare driver to use Vagrant with the machine for development and testing. I had been using VirtualBox but after all the flakiness I encountered running more than a five or six virtual boxes (like locking up the out of the box CentOS video driver), I decided to go back to VMWare since I never had an issue with it (other than paying $149 for it). 

So I install everything and I get a Vagrant VMWare diver error saying **"**INFO interface: error: Vagrant encountered an unexpected communications error with the Vagrant VMware Utility driver. Please try to run the command again. If this error persists, please contact [email protected]".  No use. Error keeps occurring. I email Vagrant tech support who tell me to re-install the drivers, re-install again, and again, then ask me two times for the version numbers of all the software I was using that I had sent to them when I first opened the ticket.

After five days of back and forth I said screw it and I put a virgin install of Centos 7.4 fully patched on my machine along with the latest VMWare workstation, the Vagrant VMWare driver and Vagrant. 

Guess what? Same error! Nice! Crap that won't run on a new install with nothing else on the box.

Long story short.. I found out that the Vagrant VMWare driver service kept aborting. Why? I don't know. Log messages were useless. I finally got the driver service to load manually and it must have done something in the background because now it runs consistently.

Anyway, moral to the gripe... think twice before spending any money on a Hashicorp product. While I love Vagrant and Terraform I don't think they are ready for prime time by any stretch of the imagination. 

By the way... I haven't had a follow up from Hashicorp support after I exhausted their pathetic guesses.

Please feel free to pass this on to anyone who might be interested.


r/vagrant • • Jan 22 '18

Disable the Sync of Sub-Folders in your Vagrant - and speed up the installation of your dependencies

Thumbnail
blog.theodo.fr
6 Upvotes

r/vagrant • • Mar 20 '17

New app for running your own private Vagrant cloud

6 Upvotes

I've recently started work on an application for managing your own private Vagrant cloud boxes. It's fully functional at this point. PR's are welcome. If you're interested, check it out:

https://github.com/tkambler/vagrant-catalog