Questions tagged [vagrant]

Vagrant is a tool to create and configure lightweight, reproducible, and portable development environments. By default, it uses Oracle's VirtualBox for these virtual environments, but support for other virtualization systems is available. Most questions about Vagrant should be asked on Super User or Stack Overflow.

Vagrant is a platform independent tool written in Ruby, to create and configure lightweight, reproducible, and portable development environments. By default, it uses Oracle’s VirtualBox for these virtual environments, but support for other virtualization systems is available. Lots of information and very good in-depth documentation can be found on the homepage: Vagrant - Virtualized development for the masses.


Footnote:
Please refer to Meta.SF for some background on the recommendation why questions regarding vagrant are likely to get a better reception and possibly more answers on StackOverflow than on ServerFault.

454 questions
0
votes
0 answers

Vagrant VM lost port connection to host machine

I'm duplicating my question from superuser, but I want to know why it doesn't work. Let me explain, I have a server on Ubuntu 22 where I have MongoDB running. In this server I created a vagrant vm where Ubuntu run with nginx and a python program. I…
Felix
  • 1
0
votes
0 answers

Can a VirtualBox instance that has a bridge network on it access another network?

First of all, I'm really sorry if I am asking a super dump question. I've searched everything on the internet but couldn't find the right answer. I'm building a K8S cluster on VirtualBox using Vagrant. All instances are successfully configured to…
yondkoo
  • 1
  • 3
0
votes
1 answer

Vagrant : how to create a box from aws ami?

I see vagrant as a great tool for testing and I am surprised the aws plugin (here https://github.com/mitchellh/vagrant-aws but which seems deprecated) is here to instanciate ec2 and not copy same configuration as ec2 on a local vm. I would like to…
user972331
0
votes
1 answer

No package matching 'php7.2' is available

I am trying to install php with ansible but can don't know what is going wrong. this is my ansible file --- - apt_repository: repo: "ppa:ondrej/php" update_cache: yes - apt: name: "{{ item }}" install_recommends: no state:…
0
votes
1 answer

Configuration for routing two subnets in Vagrant for Docker overlay network

For labs in Docker Deep Dive chapter 12, I set the VMs like a following Vagrantfile: Vagrant.configure("2") do |config| config.vm.box = "ubuntu/focal64" config.vm.box_version = "20220215.1.0" config.vm.define 'node1' do |node| …
홍한석
  • 101
  • 2
0
votes
1 answer

Trigger NTP restart after `vagrant resume`

I manage some Debian 11 server VMs using Vagrant. Sometimes I need to vagrant suspend them, and I noticed that after vagrant resume, their system time is off. Running systemctl status ntp shows the NTP service is turned off by a failure. I could…
kol
  • 191
  • 8
0
votes
0 answers

Docker accessible via localhost:8080 & 127.0.0.1:8080 but not via IP

I have the below scenario - 3x Vagrant VMs are spinned from the below Vagrantfile, up and running (visible within Oracle VirtualBox). I am logged on docker1, the network type is "NAT", portforwarding is used (Guest:8080, Host:8080). I am able to…
0
votes
1 answer

strange NAT issues with pfSense to vagrant VM

This one has got me confused: I have a pfSense firewall (let's call it pfs) and behind it several servers. I NAT several services from my public IP to different servers on the LAN without any issues. On one of the servers (let's call it s1) I'm…
0
votes
1 answer

Bridging on Linux using TAP devices (Virtuallbox)

Bridging on Linux using TAP devices Hello, I have got the following schema: In order to be able to ping the remote hosts, separatehost1 in my case, I bring up bridge device br0 which combine tap0 + eth2 on server and be to bridge local network…
0
votes
1 answer

Vagrant Windows 10 package step removes user profile?

I'm building a Vagrant Windows 10 box (using libvirt, based on the workflow documented at here: https://fishilico.github.io/generic-config/windows/vagrant.html). After the VM is ready, I run: vagrant package default --output win10-libvirt.box and…
Guss
  • 2,670
  • 5
  • 34
  • 59
0
votes
1 answer

vagrant ssh fails with OpenSSL version mismatch

I've been troubleshooting an issue with Vagrant, $ vagrant ssh OpenSSL version mismatch. Built against 100020ef, you have 1000106f $ but if I build the corresponding ssh command manually with the parameters provided by vagrant ssh-config this…
Andrew Richards
  • 336
  • 3
  • 9
0
votes
1 answer

Why does my MySQL server suddenly not start. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Suddenly my MySQL server will not start. running mysql in the cli will return ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) I was running a process that probably killed the database and/or…
Shane
  • 335
  • 4
  • 13
0
votes
0 answers

Using Puppet to configure hypervisor

I am looking to use Puppet to configure a bare-metal host to spawn VMs using Vagrant/VirtualBox, whose configurations will also be managed by Puppet. I think this can be achieved by: Installing Vagrant/Virtualbox on the host using the…
Nicolas De Jay
  • 209
  • 2
  • 11
0
votes
0 answers

I am trying to set up a drupal site using docker in a Vagrant VM and can't seem to get Certbot to work

So I am trying to set up a drupal site using docker in a vagrant VM using bento/ubuntu-20.04. I went through this tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-drupal-with-docker-compose . It seemed to work (I could…
SomeoneElse
  • 101
  • 1
0
votes
0 answers

Read error (Connection reset by peer) in headers on Vagrant

Trying to install aaPanel into a vagrant machine. vagrant box used is Scotch box 3.5 which preloaded with php v7.0. I've updated php to v7.4 using sury's ppa and working fine. I've used given instruction on here, and used Ubuntu specific commands as…
Vishwa
  • 101
  • 1
  • 6