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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

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 ...
Felix's user avatar
  • 1
1 vote
0 answers
316 views

how to make two qemu guests communicate between them as well as with the host

I'm on MacOS with apple silicon. I'm tring to set up a vangrant environment of two nodes which both should be able to see each other and be reachable by the host. For that, this is the Vagrantfile I'm ...
Bertuz's user avatar
  • 125
1 vote
1 answer
26 views

Scripted Password Change Does Not Survive Reboot Unless One Login Occurs - Debian 11

I am trying to automatically set the root password to random characters via bash script. The script is part of a Vagrant shell provisioner. If the script runs the password change only, I am able to ...
Utkonos's user avatar
  • 406
0 votes
0 answers
27 views

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....
yondkoo's user avatar
0 votes
1 answer
248 views

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 ...
user19413311's user avatar
0 votes
0 answers
44 views

alpine vagrant image not connecting, how to fix that?

I tried using this image, https://app.vagrantup.com/alpine/boxes/alpine64 But, not connecting at the end, VM is showing as running in the virtualbox, but vagrant ssh command is not connecting. I ...
Kalel's user avatar
  • 136
0 votes
1 answer
577 views

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: ...
Shahriar Hossain's user avatar
0 votes
1 answer
224 views

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 = ...
홍한석's user avatar
  • 101
1 vote
1 answer
317 views

force vagrant VM to prioritize eth1 interface in standard routes

I'm deploying a vagrant box (libvirt) that needs to serve podman containers to the host network. Somehow the exposed ports of these containers can be accessed from the host network (i.e. on 192.168.1....
ppenguin's user avatar
0 votes
1 answer
104 views

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 ...
kol's user avatar
  • 161
0 votes
0 answers
2k views

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", ...
query_question's user avatar
2 votes
1 answer
104 views

How do you determine the location of a Vagrantfile from virt-manager?

OS is Debian 10, vagrant provider is libvirt. vagrant global-status is supposed to provide information on all vms on a system, but I can see shutoff and running vms in virt-manager that are not listed ...
cat pants's user avatar
  • 2,233
1 vote
0 answers
484 views

Running Vagrant VM on Ubuntu 20.04 VM on VirtualBox on Windows 11 Host Machine, Need SSH access to vagrant from windows 11

I am doing a computer vision project, and I have Vagrant VM on Ubuntu 20.04 VM on VirtualBox on Windows 11 Host Machine. I'd like to use the Windows 11 host machine for the CV since it needs a lot of ...
user943347's user avatar
0 votes
1 answer
115 views

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. ...
ppenguin's user avatar
1 vote
0 answers
75 views

Vagrant ssh config fault

Good afternoon. There was a need to configure SSH access from an external network to a virtual machine in Vagrant (VirtualBox, CentOS/7). I made a mistake somewhere and lost the ability to connect to ...
AGrishin's user avatar
0 votes
1 answer
288 views

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 + ...
Marat Gainutdinov's user avatar
0 votes
1 answer
62 views

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 ...
Guss's user avatar
  • 2,622
1 vote
0 answers
88 views

Mac OsX (Vagrant 2.2.18) DNS lookup 5s latency

On a regular VM - Vagrant Box (LAMP) on Mac OS, while making a trivial call, there is a 5 Seconds DNS Lookup delay. Is there any reason for it or solution? Already installed BerlinVagrant/vagrant-dns ...
Francis's user avatar
  • 111
0 votes
1 answer
808 views

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 ...
Andrew Richards's user avatar
0 votes
1 answer
959 views

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) [closed]

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 ...
Shane's user avatar
  • 335
0 votes
0 answers
80 views

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 ...
Nicolas De Jay's user avatar
0 votes
0 answers
226 views

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-...
SomeoneElse's user avatar
2 votes
0 answers
229 views

why my Vagrantfile run provision after each vm created when I was trying to make ti only run after all vm created

I have a Vagrantfile as below, and I wish to run ansible provision only one time after all vm are created, but actually it runs each time after a vm created, I do not know why? How can I make the ...
Roy's user avatar
  • 73
0 votes
0 answers
3k views

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 ...
Vishwa's user avatar
  • 101
1 vote
0 answers
792 views

Trying to Install Kubernetes with Vagrant and Ansible on Ubuntu 16.04 lab

So I am trying to install Kubernetes on a lab with Vagrant and Ansible. I am using the following documentation on Ubuntu 16.04: https://kubernetes.io/blog/2019/03/15/kubernetes-setup-using-ansible-and-...
R. Barrett's user avatar
0 votes
1 answer
275 views

Vagrant - Provisioning multitple VBox-VMs with pre-defined names

I have a bit of trouble provisioning a multi-machine setup from a Vagrantfile. VM_NAME="node" IMAGE_NAME="centos/7" Nodes=3 NodeMEM=4096 NodeCPU=2 NodeGUI=false (1..Nodes).each ...
C.B.'s user avatar
  • 21
1 vote
0 answers
213 views

Unable to run a private network with Unprivileged LXC containers

we're trying to setup a private network that using unprivileged containers. The Vagrantfile is as follow : # -*- mode: ruby -*- # vi: set ft=ruby : require 'yaml' settings = YAML.load_file 'config....
Ricks's user avatar
  • 11
1 vote
1 answer
3k views

Why can't I ssh into a Vagrant Ubuntu 20.04 VM (focal) but I can to 18.04 and 16.04 VMs on the same host?

I'm running Vagrant 2.2.9 using Virtualbox 6.1.12. My host OS is Ubuntu 20.04 I need to run VMs with different versions of Ubuntu: 16.04 (xenial), 18.04 (bionic) and 20.04 (focal). Xenial and Bionic ...
amercader's user avatar
  • 131
0 votes
1 answer
652 views

Vagrant Docker refuses connection

Stack I'm running the following: Metal Ubuntu 18.04 vagrant dockerprovider gitlab dk Expectation I'm trying to curl localhost:3000 to reach gitlab. When I do that from the vagrant box, it works:...
til's user avatar
  • 101
3 votes
0 answers
3k views

What the best way to export a Vagrant box to OVF?

My goal was to create a Virtual Machine programmatically like you would do for a container with docker and be able to export it in an OVF. So I used Vagrant to create the VM. Combining Vagrant and ...
noraj's user avatar
  • 273
0 votes
1 answer
606 views

tried php install and show error packcage php-7.3.17-1.el7.remi.x86_64 (remi-php73)

I tried 「sudo yum --enablerepo=remi-php73 install php-pdo php-mysql」in vagrant and show Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit) error: package: php-7.3.17-1.el7.remi.x86_64 (...
trinitrotoluene's user avatar
1 vote
2 answers
2k views

libvirt uses ipv6, ipv6 disabled on host

This question was the same I have found to my issue. It has no answer. I am running vagrant on my Ubuntu and have ipv6 disabled. When I create an image with vagrant, libvirt returns: Error while ...
kolosov's user avatar
  • 11
0 votes
1 answer
586 views

Vagrantbox with Hyper-V not starting

I'm trying to setup a vagrantbox with Hyper-V on my local windows-10 mashine. My Workstation is running behind a proxy, but I configured a local cntlm proxy to get around these limitations. Proxy ...
Sebastian Sommerfeld's user avatar
0 votes
2 answers
313 views

How to use Ansible to control VM servers running Vagrant?

I've got a couple of servers running each few virtual machines. On each server I use Vagrant to create and control VMs. Now I want to find some tool (thought about Ansible cause I know it a little bit)...
Dmitriy Vinokurov's user avatar
1 vote
0 answers
248 views

Add an existing vm to vagrant global environment

Something happened and I no longer have any vagrant boxes in my global environment. In other words: $ vagrant global-status id name provider state directory ----------------------------------...
adam-m-hanna's user avatar
1 vote
1 answer
2k views

Possible to create libvirt network as non-root?

My end goal is to be able to use libvirt.uri = 'qemu:///session' with Vagrant, which means creating machines as non-root, but in order to do that I need to have a default libvirt network as non-root, ...
Sandra's user avatar
  • 10.2k
1 vote
0 answers
1k views

SOLVED - Kali linux openvas installation fail

I have Kali 2019.4 installed into a Virtualbox machine (4GB, 2-CPU) fully updated and upgraded. I'm trying to install openvas directly from the Kali repository (apt install openvas) as root, but it ...
kappa's user avatar
  • 111
0 votes
1 answer
370 views

Ansible include loop in a Role on Vagrant multihost environment Fails

Running Vagrant multi-host with CentOS7 as an Ansible controller and few Linux distro clients for testing Ansible playbooks. Have NFS shared files mounting at /vagrant/ on the Cent7 Ansible ...
Bryan's user avatar
  • 71
0 votes
1 answer
799 views

What is the correct syntax for a multi-network multi-host Vagrantfile?

I'm trying to create several hosts that have multiple networks along with the term define. I do not know Ruby and I'm not sure what is wrong with this syntax. Can someone please offer some advice ...
Bryan's user avatar
  • 71
0 votes
1 answer
266 views

Chef: Kitchen Converge fails on Windows 10 Guest using Vagrant FileTransporter Error

As described in the bug I created here: https://github.com/test-kitchen/kitchen-vagrant/issues/407 When I perform a kitchen converge on a freshly created Windows 10 box, it connects and begins ...
Brandon Hawbaker's user avatar
0 votes
1 answer
152 views

Notify an ansible server to run a playbook on a VM

I have a virtual machine set up with Vagrant. The plan is to provision the vm with a shell script. The Script shall do things, connect to my company's ansible server and let the server run a playbook ...
Zwetsche's user avatar
0 votes
1 answer
223 views

Run Virtuozzo OpenVZ 7 prlctl commands as non-root user

I created a Virtualbox VM for Virtuozzo OpenVZ 7 using this image: https://download.openvz.org/virtuozzo/releases/openvz-7.0.9-439/x86_64/iso/openvz-iso-7.0.9-439.iso I want to create a Vagrant box ...
Wolkenarchitekt's user avatar
2 votes
1 answer
11k views

How to configure SSH for Vagrant environment?

I prepared a cluster of 4VM's with this Vagrantfile. hosts = { "n1" => "192.168.77.10", "n2" => "192.168.77.11", "n3" => "192.168.77.12", "n4" => "192.168.77.13" } Vagrant.configure("2") ...
Richard Rublev's user avatar
0 votes
0 answers
723 views

vagrant-proxyconf failing on setting proxy for docker

I'm using vagrant with vagrant-proxyconf to configure the proxy for the vagrant box. Unfortunately on vagrant up it fails and stops upon the Step "Configuring proxy for Docker..." The error message ...
peez80's user avatar
  • 171
1 vote
0 answers
446 views

Error "undefined symbol: mysqlnd_connect"

I am building a VM to develop an existing PHP 5.6 application using Vagrant 2.1.2. My VM operating system is Ubuntu/Bionic64. This app requires the mysqli extension with mysqlnd, among other packages ...
Tanoro's user avatar
  • 111
1 vote
1 answer
2k views

Passing the host's current user to to vagrant shell provisioner

I want to pass the current user within my Vagrantfile, but I'm not sure how to do it. I've tried this: config.vm.provision :shell, inline: "echo $(whoami) > /etc/profile.d/me" But it results in '...
jeffkolez's user avatar
  • 147
0 votes
1 answer
141 views

CentOS VitualBox Downgrade

I got a linux CentOS 7 as a host for virtual machines enviroments, mostly Windows. I use VirtualBox with Vagrant to build the machines. Lately I upgraded both: VirtualBox from 5.2.18 to 5.2.22 and ...
Haroldo Payares Salgado's user avatar
0 votes
1 answer
381 views

How to deny all ports to localhost, from localhost, except one, using iptables?

I have an issue with iptables where I'm unable to connect to localhost from localhost. Basically, I want all incoming packets, except those with a destination for SSH and port 9000 to be dropped. ...
AlphaCentauri's user avatar
0 votes
1 answer
49 views

Vagrant/VirtualBox guest boots only in single processor mode after upgrading Ubuntu guest from 16 to 18

I had a running WEB server with Ubuntu 14.04.5 LTS with LAMP environment. The server is running in a Vagrant/VirtualBox virtual machine. I upgraded it successfully to Ubuntu 16. After that I tried to ...
Tibor Nagy's user avatar
0 votes
1 answer
408 views

Vagrant/VirtualBox guest doesn't boot completely after upgrading Ubuntu guest from 14 to 16

I have a running WEB server with Ubuntu 14.04.5 LTS with LAMP environment. The server is running in a Vagrant/VirtualBox virtual machine. I made a release upgrade to Ubuntu 16. The upgrade had no ...
Tibor Nagy's user avatar

1
2 3 4 5
10