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
0answers
6 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
8 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 ...
1
vote
0answers
26 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
0answers
27 views

How to connect LDAP server inside Vagrant from Apache Directory Studio?

Created an instance with Vagrantfile Vagrant.configure("2") do |config| config.vm.box = "centos/7" config.vm.define "node2" do |c| c.vm.hostname = "ipa.my.domain" c.vm.provider "...
0
votes
0answers
35 views

How to access from one node to another one by ldapsearch on Vagrant?

Using vagrant created two nodes: node1 node2 Vagrantfile Vagrant.configure("2") do |config| config.vm.box = "centos/7" config.vm.define "node1" do |c| c.vm.hostname = "node1" c.vm....
0
votes
1answer
58 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 (...
0
votes
2answers
66 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
0answers
19 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
0answers
59 views

packer & disk layouts

I'm building images for various OS using https://github.com/mrlesmithjr/packer-templates This has support of automatically creating vagrant boxes and uploading them to "Vagrant Cloud" (i guess that's ...
0
votes
0answers
19 views

Set Vagrant Virtual machine running Centos to past date time for testing

I have a Windows 10 host, running Vagrant with VirtualBox provider to spin up a Centos 7 Guest OS. NTP synchronisation is off in the Guest OS. It'd be nice to be able to set the guest OS to a date in ...
0
votes
2answers
102 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)...
0
votes
0answers
30 views

USB Device Disappears After Using Vagrant & Virtualbox usbfilter in Linux

After Successfully installing virtualbox-oracle-ext package and configuring a Vagrant file to base functioning I'm having difficulty using the usb device recognized within vagrant on the host machine. ...
0
votes
0answers
43 views

How to set a Virtual IP in Vagrant?

As this architecture example, it needs 5 servers, a virtual IP to connect to the cluster. enter image description here Now want to use Vagrant to create servers on VMs. Here is the Vagrantfile: ...
1
vote
0answers
80 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
178 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
465 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
104 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
79 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
57 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
64 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
0answers
54 views

Node database connect to MySQL in Vagrant

I have a project using NodeJS which needs to connect to a MySQL database which is inside Vagrant. I have tried forwarding the port: config.vm.network "forwarded_port", guest: 3306, host: 3306 I am ...
0
votes
0answers
78 views

how to swap NICs on Vagrant?

I'd like to run kubernetes on a private_network in Vagrant, but Kubeadm does certain things on the first interface it finds, which won't work because the private network by default is defined on the ...
0
votes
1answer
98 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
1k 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
506 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
196 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
987 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
69 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
64 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
28 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
210 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
771 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
556 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
192 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
694 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
424 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
139 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
74 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
363 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
34 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 ...
3
votes
1answer
3k views

Get list of forwarded ports

My system has several port forwarding settings active. Among others, I have some Vagrant machines with port-forwarding configured: Vagrant.configure("2") do |config| config.vm.network "...
1
vote
1answer
162 views

Vagrant & Puppetlabs/apache setting two MPM's

Currently I'm attempting to update my Vagrant machine with Puppet modules to PHP7, and ofcourse, with updated modules. However since updating the puppetlabs/apache module to version 3.0.0, it is ...
2
votes
0answers
328 views

Local connect to vagrant VM while connected to VPN

I have several local vagrant machines running which work fine. My problem is that I have to use VPN (forticlient) a lot and when connected to the VPN all access to my local vagrant boxes get routed ...
0
votes
2answers
2k views

How to expose services running on minikube installed in the vagrant box?

Infrastructure: +------------------------------------------------------+ | Host | | +-----------------------------------+ | | | ...
0
votes
1answer
201 views

understanding ansible execution flow

I have completed my ansible+vagrant integration which is here. Playbook installs everything i've instructed. does every file modification as instructed. But when i check on my local machine using http:...
0
votes
1answer
387 views

nxlog fails to connect, and never retries

I'm having an issue with nxlog, when trying to connect over network. It seems it is linked with misconfigured network (this is on a virtual machine, within Vagrant) Error message is ERROR couldn't ...
1
vote
1answer
525 views

Can't connect to Vagrant Box (Debian 8) using port forwarding

I've been banging my head against this problem since yesterday, and figured it's time to phone some friends for help. I've read other similar answers on ServerFault, but they didn't help. I and my co-...
2
votes
1answer
7k views

Cannot retrieve metalink for repository: epel

I've got two CentOS servers, one inside a Vagrant virtual machine with VirtualBox provider and one on rented VPS. They use the same playbook for provisioning. Everything is fine on VPS one but I'm ...
0
votes
1answer
709 views

apache2 redirect http to https in vagrant box

I am trying to achieve apache2 http redirect to https in vagrant. Below is my Vagrantfile and bootstrap.sh script. I am not able to figure out what I am doing wrong here in case of vagrant box. I am ...
0
votes
1answer
43 views

Vagrant reboots host on server 2016

Running Windows Server 2016, Latest virtualbox & latest vagrant. With the vagrant file below - Every time I run 'vagrant up server', it reboots the host. No errors are shown unfortunately. How ...

1
2 3 4 5
9