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
1answer
117 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 ...
0
votes
1answer
97 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 ...
0
votes
0answers
29 views

Vagrant / Docker: Could not resolve host occasionally

In my dev machine, I am running 2 Docker sites (frontend and API backend) on top of Vagrant (CentOS). In the main host (Windows), I have the ff. entry in the hosts file 192.168.2.200 docker.test The ...
0
votes
0answers
169 views

Vagrant with VirtualBox - can not establish SSH connection

I've setup VirtualBox and Vagrant on a server box without GUI. When I run vargrant up it hangs on the SSH part: # vagrant up ...
0
votes
0answers
16 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 ...
0
votes
0answers
41 views

setup rtmp server on laravel homestead

I want to add rtmp block below into homestead nginx configuration: rtmp { server { # my configs } } } However in Homestead directory, when I open scripts/site-types/laravel....
0
votes
0answers
90 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-...
0
votes
0answers
270 views

Exclusively obtaining DNS servers via DHCP using Vagrant, VirtualBox, CentOS 7

I have a host running CentOS 8, on which I am using Vagrant 2.2.10 to run CentOS 7 VMs (using VirtualBox 6.1.12 as a provider). However, I want the guests to exclusively obtain their DNS servers via ...
2
votes
0answers
34 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 ...
0
votes
0answers
74 views

cryptsetup Volume Key Does not match the volume

No matter what I do - after dd zeroing out the device - when I try to run cryptsetup luksFormat /dev/nvme0n1 I get the following error: Volume key does not match the volume. I cannot find any ...
0
votes
0answers
18 views

vagrant vm.provider runs multiple times

When I do the following puts node.vm.hostname node.vm.provider "virtualbox" do |vb| puts vb.to_json end It prints the hostname 2 times as expected but the vb 10 ...
0
votes
0answers
824 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 ...
0
votes
0answers
19 views

Vagrant [ machinename.vm.network “private_network” ] is creating two VBOX Networks?

Vagrant machinename.vm.network "private_network" is creating two VBOX Networks? It is creating a host-only network and a NAT network. Is this the intended behavior? How can I force vagrant ...
1
vote
0answers
365 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-...
0
votes
1answer
45 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 ...
1
vote
0answers
87 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....
0
votes
1answer
1k 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 ...
0
votes
1answer
283 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:...
0
votes
0answers
28 views

Vagrant libvirt management interface isolation

I'm trying to set up a CTF box, and have settle upon vagrant for managing my VMs. However, I seem to be unable to isolate the machines from each other, as the libvirt management interface is allowing ...
0
votes
0answers
26 views

How do you start tightvncserver with a password file already defined?

This is in Ubuntu 16. I am trying to configure tightvncserver to run without prompting the user to enter a password on its first run after the Vagrant box it resides within gets re-upped from new. I ...
3
votes
0answers
777 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 ...
0
votes
1answer
314 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 (...
1
vote
2answers
631 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 ...
0
votes
1answer
216 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 ...
0
votes
2answers
155 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)...
1
vote
0answers
142 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 ----------------------------------...
0
votes
1answer
536 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, ...
1
vote
0answers
924 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 ...
0
votes
1answer
182 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 ...
0
votes
1answer
302 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 ...
0
votes
1answer
133 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 ...
0
votes
1answer
88 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 ...
0
votes
1answer
137 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 ...
1
vote
1answer
4k 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") ...
0
votes
0answers
599 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 ...
1
vote
0answers
267 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 ...
1
vote
1answer
1k 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 '...
0
votes
1answer
94 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 ...
0
votes
1answer
101 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. ...
0
votes
1answer
29 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 ...
0
votes
1answer
294 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 ...
0
votes
1answer
1k 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.....
1
vote
0answers
802 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 ...
0
votes
1answer
362 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 ...
1
vote
0answers
943 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 ...
3
votes
1answer
452 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: *...
0
votes
1answer
186 views

Node + nginx reverse proxy never works until I restart nginx

I have a Node.js app that I run on port 8204 on a Vagrant VM (Ubuntu 16.04.3) (Windows 7 x64 host). Whenever I start up the Vagrant VM, ssh in and start the Node.js app like this: > npm start I ...
0
votes
1answer
77 views

Can't access to VM using Vagrant user

I did change the vagrant user privileges this way: $ grep vagrant /etc/passwd vagrant:x:0:0::/home/vagrant:/bin/sh Then i logged out, now I can't login, What can I do to solve this problem? Thank ...
0
votes
1answer
503 views

Chef bootstrap error - 401 unauthorized

I am trying to set up a Chef node using Vagrant, but running in to an error with the bootstrap command. I am following the tutorial on learn.chef.io My Chef server is setup on EC2, and works great. I ...
-1
votes
1answer
37 views

Does Vagrant introduce another layer between host OS and guest OS

If I use Vagrant, does it introduce another layer of resource users inserting itself between host OS and VM? Does it always run between host OS and VMWare/Vbox? Should I provide for extra RAM / CPU if ...

1
2 3 4 5
9