Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
3 views

Vagrant + Docker: sync folder permision

all! I use Vagrant to manage a Ubuntu-14.04 docker. I have a sync shared folder name: common (create by my personal user in host) config.vm.synced_folder "common", "/common" The ...
user avatar
  • 1
0 votes
0 answers
85 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", ...
user avatar
0 votes
0 answers
87 views

Private network can not be set up on Ubuntu 20 with Vagrant and VirtualBox

I have a brand new server and I just installed VirtualBox and Vagrant. If I try to set up a private network, I get the following error: vagrant@zg-2:~/vms/zg2t1$ vagrant up Bringing machine 'default' ...
user avatar
0 votes
0 answers
26 views

ubuntu 21 vagrant file is not changing the IP address with reload, how to fix that?

My vagrant file: # -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support older ...
user avatar
0 votes
0 answers
22 views

Linux Vagrant machine stops working after some time on Windows

I have a server with Windows Server 2012 R2 and also a second server with Windows Server 2019 Essentials. I have installed VirtualBox 6.1 and a web application inside this vagrant. On both servers, ...
user avatar
  • 1
2 votes
1 answer
53 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 ...
user avatar
  • 2,099
1 vote
0 answers
236 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 ...
user avatar
0 votes
1 answer
48 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. ...
user avatar
1 vote
0 answers
37 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 ...
user avatar
0 votes
1 answer
104 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 + ...
user avatar
0 votes
1 answer
31 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 ...
user avatar
  • 2,480
1 vote
0 answers
45 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 ...
user avatar
  • 111
0 votes
0 answers
71 views

How can i use vagrant to give windows and linux servers in a vagrant+virtualbox environment to live in the same IP space without private_ip addresses?

Im using the following network declaration to get an IP address for my Windows virtual machines, which is routable inside the same network to corresponding linux VMs made using the same directive. ...
user avatar
0 votes
1 answer
495 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 ...
user avatar
0 votes
1 answer
530 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 ...
user avatar
  • 335
0 votes
0 answers
43 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 ...
user avatar
0 votes
0 answers
141 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-...
user avatar
2 votes
0 answers
129 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 ...
user avatar
  • 53
0 votes
0 answers
2k 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 ...
user avatar
  • 101
1 vote
0 answers
681 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-...
user avatar
0 votes
1 answer
75 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 ...
user avatar
  • 21
1 vote
0 answers
174 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....
user avatar
  • 11
1 vote
1 answer
2k 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 ...
user avatar
  • 131
0 votes
1 answer
510 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:...
user avatar
  • 101
3 votes
0 answers
2k 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 ...
user avatar
  • 221
0 votes
1 answer
479 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 (...
user avatar
1 vote
2 answers
1k 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 ...
user avatar
  • 11
0 votes
1 answer
451 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 ...
user avatar
0 votes
2 answers
220 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)...
user avatar
1 vote
0 answers
184 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 ----------------------------------...
user avatar
1 vote
1 answer
1k 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, ...
user avatar
  • 9,873
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 ...
user avatar
  • 111
0 votes
1 answer
283 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 ...
user avatar
  • 71
0 votes
1 answer
588 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 ...
user avatar
  • 71
0 votes
1 answer
208 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 ...
user avatar
0 votes
1 answer
105 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 ...
user avatar
0 votes
1 answer
178 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 ...
user avatar
2 votes
1 answer
7k 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") ...
user avatar
0 votes
0 answers
660 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 ...
user avatar
  • 171
1 vote
0 answers
370 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 ...
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 '...
user avatar
  • 147
0 votes
1 answer
130 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 ...
user avatar
0 votes
1 answer
179 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. ...
user avatar
0 votes
1 answer
33 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 ...
user avatar
0 votes
1 answer
363 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 ...
user avatar
4 votes
1 answer
2k views

Vagrant up not working, it requires a manual fsck

My setup: My OS is Ubuntu 18.04 Vagrant 2.0.0 VirtualBox 5.2.18 r124319 Ubuntu installed into vagrant/virtualbox (version uknown) sudo vagrant up was always working, suddenly it has stopped working.....
user avatar
  • 233
1 vote
0 answers
1k views

Vagrant ubuntu box configure keyboard layout

I am deploying a vagrant ubuntu 18.04 box, using the default bionic64 box. Installing the gui with these deb packages, via apt install: gnome language-pack-de language-pack-gnome-de even setting ...
user avatar
  • 11
0 votes
1 answer
519 views

How to setup multiple websites on one NGINX with Vagrant?

I have virtual ubuntu-server managed by Vagrant. I've installed NGINX and created 3 virtual servers. They all have names: test1.localhost, test2.localhost, test3.localhost. When I try to browse my ...
user avatar
  • 101
1 vote
0 answers
1k views

Setup routing in nested virtualization cluster on vagrant / hyper-v / libvirt

I'm trying to setup a specific VMs cluster using vagrant on my local notebook. I have a Win10 Pro with HyperV as a host. Unfortunately I cannot change it thus I want to create a Linux VM on HyperV (I ...
user avatar
  • 111
3 votes
1 answer
520 views

"initdb: encoding mismatch" when running gitlab-ctl reconfigure

I am installing Gitlab-ce Omnibus in a Vagrant box (Debian 18.04 LTS). In my provisioning script, I run gitlab-ctl reconfigure. I get an error: initdb: encoding mismatch Console output: default: *...
user avatar

1
2 3 4 5
9