Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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 ...

1
vote
0answers
22 views

NS Record is missing, but A record is not [migrated]

I'm developing a website and i'm using the PHP function dns_get_record to get some data from the DNS server. To proper show the problem I will show an example of getting the NS record from a domain ...
0
votes
0answers
9 views

Minimum permissions for user vagrant to manage box

I'm using vagrant with an ubuntu 14.04 image for my project and I aim for least privilege for the user vagrant. I will not get into details of the motivation for simplicity sake, but let's say it's ...
0
votes
1answer
16 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
12 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
0answers
6 views

using project folders from host os to guest os in vagrant

I have recently installed vagrant and red hat in windows 8 environment. I want to use my projects in windows drive in redhat running on vagrant machines. Is there a mechanism to copy paste or access ...
0
votes
0answers
10 views

VBoxManage.exe: error: Context: “enum RTEXITCODE __cdecl handleImportAppliance(s truct HandlerArg *)” at line 886 of file VBoxManageAppliance.cpp

I am trying to setup amazon ec2 linux instance in vagrant. Based on suggestion here Vagrant box most similar to Amazon EC2 instances suggestion of eneset vagrant init mvbcoding/awslinux; vagrant up -...
0
votes
0answers
12 views

Cannot make config.vm.post_up_message work on multi machine setup

Note: Posting here since I've found most Vagrant questions here, please transfer to appropriate site if needed. I've created a new, multi-machine Vagrant system, and it needs some post-configuration, ...
0
votes
0answers
56 views

WinServer 2016, Chef, kitchen tests using Docker - how?

I have a Chef infrastructure, with cookbooks being tested via CI (Jenkins) on either Docker or VirtualBox via kitchen-dokken or kitchen-vagrant. This works beautifully on all Linux hosts. I now have ...
0
votes
1answer
44 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.....
0
votes
0answers
61 views

vagrant restart windows vm during provisioning

I am trying to reboot a windows VM, during provisioning with vagrant. I want vagrant to run a powershell script, reboot the system, then run a powershell script again then the system will be built. ...
0
votes
0answers
41 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
0answers
12 views

How to “forward” or share whole network into a host in Vagrant setup?

I have setup: Windows (host) => Centos 7 (Vagrant 1.9/Virtualbox 5.1, guest) => Docker. I have docker0 network in the guest machine. docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ...
0
votes
0answers
13 views

How do I add a Name tag to an AWS block device using the API?

I am provisioning an AWS instance using Vagrant. As part of the provisioning, I change the default size of the block device /dev/sda1 to 20 GiB, and set it to delete on termination. I also want to ...
0
votes
1answer
31 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
102 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 ...
2
votes
1answer
81 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
56 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
62 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
142 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
28 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 ...
0
votes
1answer
224 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 "...
0
votes
0answers
50 views

Samba only supported in Windows host

I want to setup and provision 2 virtual machines one as a server Samba and the other one as a client using Vagrant and Ansible. I have configured and prepared everything for Vagrant and Ansible ...
0
votes
0answers
440 views

Cant access vcenter server appliance on esxi guest VM from host

My esxi 6.0 is running inside a vagrant vmware virtual machine and I can't ping the ip of the vCenter Server Applicance virtual machine from the host machine or access the web client from the host ...
1
vote
1answer
79 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
194 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
0answers
282 views

forwarding ports between vagrant windows 10 host and ubuntu guest fails

I am running a web server inside a guest ubuntu xenial64 os running on top of vagrant using hyper-v in a windows 10 machine. I know the web server is running o.k. because I was able to locally telnet ...
0
votes
2answers
647 views

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

Infrastructure: +------------------------------------------------------+ | Host | | +-----------------------------------+ | | | ...
0
votes
1answer
110 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
123 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
187 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-...
1
vote
1answer
3k 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
325 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
31 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 ...
0
votes
1answer
45 views

Strange bash_history when vagrant up

For some time I have a problem with my Vagrant. At each "vagrant up", the history of my vagrant session is "corrupted" as follows: exit export TERM="vt100" printf '41e57d38-b4f7-4e46-9c38-...
0
votes
2answers
1k views

Can't find DOMDocument class on PHP7 on top of Apache and Vagrant

I'm running a local web app on top of Vagrant with Apache and PHP7. I have been trying to add the broken dependency by many ways and so far I have not been able. I'm using scotchbox and so far I ...
0
votes
2answers
734 views

Two Vagrant VMs cannot ping each other

CentOS 7 VM - 10.0.2.100 Windows Server 2012 R2 VM - 10.0.2.15 Goal - Ping each other; communicate with each other Problem - Cannot ping each other; communicate with each other On the CentOS VM, I ...
0
votes
1answer
109 views

Vagrant xenial64 NFS synced dir 'preserve permissions' failure on bcrypt build

Looking for help on what extra configuration I can set to allow my ubuntu virtualbox vm to write into the NFS synced project directory on my OSX host. I've set the explicit sudoers for vagrant in ...
0
votes
2answers
75 views

How to send source code to vagrant virtual machine?

I am looking for a way to start a virtual machine using my chef recipes that would deploy my application. The deployment works fine with a git repository, but the problem is that I would have to push ...
4
votes
2answers
978 views

Install vagrant plugin on archlinux

I am trying to install vagrant plugin in ArchLinux and get error Marshal.load reentered at marshal_load. Here is output with debug on: vagrant plugin install vagrant-hostmananger --debug INFO global:...
0
votes
1answer
418 views

Mongod service running but not connecting in browser

Background: Using vagrant virtual box running Ubuntu on a macbook Having installed the mongoid gem in a new rails application I am given localhost:27017 as the port that the mongodb server is ...
1
vote
1answer
2k views

Strange error with Apache on CentOS 7

I am trying to build virtual machine using vagrant, virtualbox and CentOS 7 64bit. Host OS is Ubuntu 14.04 64bit. Vagrant is 1.9.2, VirtualBox 5.1.6. Here is the Vagrantfile Vagrant.configure("2") ...
0
votes
1answer
61 views

Defining own Atlas server via environment variable

Is it possible to define a company hosted atlas server via environment variable for vagrant commands. I can use vagrant box add ADDRESS to download a box file from each server. If i use vagrant box ...
0
votes
1answer
299 views

Can't use lxc-console on CentOS 7?

I am using a vagrant to run centos7 now. I created a lxc container which also base centos7 inside this vagrant os. I can start the lxc but can't use lxc-console. Like this: $ sudo lxc-create -n ...
0
votes
1answer
365 views

Vagrant/Virtual box error

I am trying to run 'vagrant up' on my RHEL VM and i get the following error. It looks like virtualization is not enabled.Any workaround for this ? There was an error while executing VBoxManage, a CLI ...
0
votes
2answers
684 views

Can't ping vagrant from ansible by ad-hoc command

I am using vagrant now. I can ping virtual machine from local terminal. I want to use ansible to ping that vagrant virtual machine: $ ansible 192.168.33.101 -m ping -u root But got error: 192.168....
1
vote
0answers
263 views

How to run binary file using vagrant and keep it running in the background?

I have a binary file which I need to deploy or run on my linux server. Currently I'm using a vagrant, here is my Vagrantfile : VAGRANTFILE_API_VERSION = "2" Vagrant.configure(...
-2
votes
1answer
893 views

No input file specified - Homestead, vagrant

No input file specified. is the error message displayed in the browser. I hear you saying: "No input file specified" means you need to check the folder mappings in the Homestead.yaml file, well C:\...
0
votes
2answers
150 views

Utilising virtual machines to handles different PHP versions

I am looking for a way for our team to be able to have both a php 5.6 environment and a php7 environment on our local machines for development. We have numerous sites, some of which have live ...
0
votes
1answer
31 views

VirtualBox setup, httpd won't install

I'm trying to setup a new Vagrant / VirtualBox. The server is up and running, but I can't get the site up in the browser. I've updated the hosts file on the host machine and can ping the IP address, ...
2
votes
1answer
853 views

Vagrant Windows timout config setting having no effect

I've been building and using Linux images in Vagrant for while now, but only recently extended coverage to Windows. I've worked images to cater for sysprep, but this has lead to very slow boot times, ...