Questions tagged [vagrant]

Vagrant is a tool for building and distributing virtualized development environments.

258 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
1 answer
3k views

Auto Shutdown / Suspend Vagrant upon shutdown on Windows Host

I use vagrant in my development workflow on a Windows machine. Sometimes, I forget to do a vagrant halt or suspend before restarting or shutting windows down. I read that this could possibly break ...
rgin's user avatar
  • 181
6 votes
3 answers
9k views

Vagrant hangs on SSH auth method: password

I’m trying to load a VM via Vagrant. It’s my first time attempting anything like this. I'm using Windows 10 64bit and trying to run my MS Server 2016 standard. I created a new VM in VirtualBox and ...
MyDaftQuestions's user avatar
6 votes
0 answers
2k views

How does licensing work with Vagrant Windows boxes?

Can a single Windows license be shared between a team (akin to installing on a physical or virtual server) for hosting Vagrant boxes? The Vagrant docs don't seem to address this issue and all the ...
Terry's user avatar
  • 223
5 votes
0 answers
1k views

GPG agent over SSH (with vagrant)

I'm using vagrant for building and signing my debian/ubuntu packages but I'd prefer to not have have to copy my GPG keys into the virtual machine just to sign packages. It just feels insecure. Is ...
notpeter's user avatar
  • 1,177
5 votes
1 answer
4k views

Vagrant virtual machine automatically halting when laptop is put to sleep

I’m using a Vagrant box (running in VirtualBox) I got from a third party and it always automatically shuts down when I put my MacBook Pro to sleep. When I wake up my laptop I need to run vagrant up to ...
papercrane's user avatar
5 votes
1 answer
2k views

How do I create a hardlink in guest user in virtualbox

Apparently, VirtualBox does allow to create hard and soft links inside guest os on shared folders . Now the thing is I need to install a package that is creating hard links Hardlink("lib/abc", "/...
dusual's user avatar
  • 149
4 votes
1 answer
555 views

Getting Mac Docker client to connect to virtualbox via vagrant

I am trying to expose dockers tcp ip to my host docker client. I have the following setup Virtualbox 4.3.26 r98988 vagrant 1.7.2 Mac OSX Mavericks 10.9.5 Centos 6.6 vagrant box running (docker 1.5.0) ...
user2108258's user avatar
4 votes
1 answer
851 views

Vagrant windows 8.1 box timeouts - even though the machine boots correctly

I have a simple vagrant master box, that has Windows, drivers for it, and VB guest additions installed. I've added that machine as a box, and tried creating a simple vagrant vm with only the basic ...
user3043457's user avatar
4 votes
0 answers
1k views

Can't delete a read-only file on a VirtualBox (Vagrant) shared folder between Ubuntu (guest) and Win7 (host)

I have Vagrant running Ubuntu as a guest OS, on top of a Windows 7 host. When working on the shared folder between guest and host, if a file is read-only it can't be deleted. For example: vagrant@...
perrocontodo's user avatar
3 votes
2 answers
704 views

Openssl 3.0 error when booting Vagrantbox

I updated my local linux notebook from Ubuntu 20.04 to 22.04. I did a fresh installation for several reasons. Now I have a problem with my most important vagrantbox. This box encapsulates my ...
Sebastian Sommerfeld's user avatar
3 votes
0 answers
2k views

DNS/DHCP server in multi-machine private-network Vagrant setup

Question Is it possible to configure vagrant, using a multi-machine Vagrantfile, to have one of the VMs act as the DNS server and DHCP server (i.e. using dnsmasq) for a private network used by all ...
Hunter's user avatar
  • 31
3 votes
1 answer
1k views

Create Vagrant Windows Server 2012 box with Active Directory + Forest breaking WinRM

I followed the instructions on this blog post to get a Vagrant box with Windows Server 2012 R2 eval. Then I tried to install Active Directory Domain Controller and an Active Directory Forest (with ...
Steffen Harbich's user avatar
3 votes
0 answers
951 views

Vagrant not setting up private network interface

I've recently upgraded to Vagrant 1.7.4 on a Ubuntu 12.04 host. I have a development vm that I've run everyday for the last year. After upgrading, vagrant no longer creates the network interface for ...
Patrick Larrivee-Woods's user avatar
3 votes
1 answer
938 views

Homestead/Vagrant virtual server error: default: stdin: is not a TTY

Mac OS X 10.10.1 Vagrant 1.7.2 Laravel Homestead 4.2 When attempting the command vagrant up the server appears to boot, but then seems to fail, returning to the command prompt. Boot up seems to be ...
dtburgess's user avatar
  • 131
3 votes
1 answer
2k views

Vagrant box fails to boot properly

I've been trying to get a vagrant box up and running off of my Windows 8 computer using VirtualBox. vagrant up fails when it gets to connecting via ssh however. When I attempt to boot into GUI mode, I ...
GotDibbs's user avatar
  • 231
3 votes
2 answers
2k views

Installing Vagrant alongside RVM isntalled Ruby

How do I install vagrant alongside a specific version of ruby installed using RVM? I have both 1.8.7 and 1.9.3p429 installed. After using RVM to set my default to 1.9.3 I no longer have vagrant ...
digital's user avatar
  • 821
2 votes
0 answers
119 views

Multi Machine Vagrant Setup Only Creates One VM of Two

The below VagrantFile should create 2 VM's, however when running vagrant up only 1 VM goes up (this appears to be semi randomly selected between the 2). After whichever VM goes up first, I get a ...
Shadow's user avatar
  • 21
2 votes
0 answers
369 views

Vagrant - Ansible - Install PostgreSQL and Postgis

I'm trying to install PostgreSQL and Postgis with Ansible on a Vagrant VM. The VM is only use locally for local development, so that's why I grant access to databases. But I'm reaching some issues to ...
BobDev's user avatar
  • 21
2 votes
0 answers
142 views

Start Vagrant on host boot

I'd like to run my existing VMs after the host system boot. I've tried to run the following command to add an line to the Cronbab: VAGRANT_PWD="/home/ubuntu/vms" (crontab -u $(whoami) -l; ...
Manitoba's user avatar
  • 189
2 votes
0 answers
34 views

Refresh a VM's synced folder with Win Server 2019

I use Vagrant to run a VM with Win Server 2019 utilizing Virtualbox with a synced folder called "sync". config.vm.define :winw1 do |winw1| winw1.vm.provider :virtualbox do |vb| ... ...
herrwolken's user avatar
2 votes
0 answers
241 views

How exactly do I run my first, auto-generated 'chef' cookbook on Windows?

I'm very inexperienced with Windows. I'm trying to set up Chef, such that I can avoid duplicating a bunch of "initial setup tasks" everytime I install Windows on a machine, as a developer (enable ...
ELLIOTTCABLE's user avatar
  • 2,475
2 votes
2 answers
7k views

How to share (config.vm.synced_folder), directories between Windows 10 and CentOS7 Virtual Machine created using Vagrant and VirtualBox

I'm trying to create a VM CentOS7 using Vagrant (2.2.3) and Virtual Box (6.0.4), on Windows 10 using the following Vagrant file Vagrant.configure("2") do |config| config.vm.box = "bento/centos-7" ...
Cesare's user avatar
  • 83
2 votes
1 answer
2k views

(kindof solved) Ansible can't connect to (reachable) virtualbox VM (preauth error)

Update 2: Well, what can I tell you, it works again. Literally the only thing I did was exchange my old and slow hard drive with an SSD I still had lying around. Other than that I followed the exact ...
MadMonkey's user avatar
  • 121
2 votes
0 answers
1k views

Provisioning a Gitlab CI VirtualBox Runner with Vagrant

1) Context I am running a build pipeline using Gitlab's VirtualBox runner (Gitlab version 10.6.3). When I manually create a base image (e.g. my-base-vm), then the build runs perfectly on the 1-n ...
Maximilian C.'s user avatar
2 votes
0 answers
69 views

Can Vagrant Package Multiple VMs?

I have a four-server Vagrant virtual machine environment which takes significant time to destroy and rebuild. What I'd like to be able to do is package these four VMs from one Vagrantfile. This ...
Jim's user avatar
  • 415
2 votes
0 answers
6k views

Vagrant: SSL verification error behind corporate proxy

My company uses a proxy. I am using a Windows 10 notebook, 64 bit. Vagrant version 2.1.1. When trying to install a Vagrant plugin, e.g. vagrant plugin install vagrant-proxyconf I see the following ...
Sebi's user avatar
  • 21
2 votes
0 answers
2k views

Run Vagrant machine on remote server but use as local

I'm not quite sure if I can really do it in that way: Scenario at the moment: My laptop is running a vagrant machine "laravel/homestead" to serve as a webserver. To run it and connect to it - I type ...
aspirinemaga's user avatar
2 votes
0 answers
176 views

Vagrant Mount Command error

I have a vagrant set up that was built by someone else at my company. Other co-workers say it works for them on their (similarly configured) apple laptops. When I run vagrant up, I get the following: ...
user3794648's user avatar
2 votes
0 answers
2k views

How to run Windows' chkdsk from a remote virtual machine on Linux?

I need to remotely run Windows' "chkdsk" utility (in order to fix a corrupted external NTFS drive) on someones else Linux/Debian computer over ssh. What is the best lightweight way to do this? ...
user1876484's user avatar
2 votes
1 answer
821 views

Vagrant and VirtualBox suddenly don’t work for me on Ubuntu 16.04.3

On Ubuntu 16.04.3 I can no longer run VirtualBox (and hence Vagrant). Running any vagrant command results in: /usr/lib/ruby/vendor_ruby/vagrant/machine_index.rb:293:in `read': Input/output error @ ...
SillyInventor's user avatar
2 votes
1 answer
682 views

vagrant up Freezing

I have vagrant installed in my Ubuntu 16.04 computer. And I have added the Laravel/Homestead box. It worked great for a long time. But suddenly when I run the 'vagrant up' command, it proceed all the ...
Prasad Kavinda's user avatar
2 votes
0 answers
204 views

clone vagrant box into a fresh one

I built a vagrant box via using packer. It generates a .box file and I was able to use vagrant to bring it up. Now I would like to build a cluster of, say, 2 machines. So I'd like a new machine from ...
lang2's user avatar
  • 2,222
2 votes
0 answers
412 views

VirtualBox 5.1 installation issues Ubuntu 16.04

I am using new to Vagrant. And stuck with VirtualBox installation with Ubuntu 16.04. Executing vagrant up command, gives the following error The vboxdrv kernel module is not loaded. Either there is ...
Nauman Zafar's user avatar
2 votes
0 answers
421 views

How do I package a bridged network VirtualBox box in Vagrant?

When I try to package a VirtualBox with bridged networking, it loses the bridged network attribute and always reverts to NAT. Not even the 2nd interface is bridged network. I tried the Vagrant Google ...
Chloe's user avatar
  • 5,946
2 votes
0 answers
604 views

How do I package a Vagrant box with custom Vagrant file (public network, RAM settings, etc.)

I packaged a VirtualBox with all the settings I wanted. I set network to 'bridged adapter' (Vagrant calls it 'public_network'). I even looked at box.ovf in the .box file and it said $ tar xOf nycmesh-...
Chloe's user avatar
  • 5,946
2 votes
0 answers
1k views

unable to do vagrant halt

When I try to run vagrant halt I get the following: An action 'halt' was attempted on the machine 'default', but another process is already executing an action on the machine. Vagrant locks ...
neubert's user avatar
  • 7,102
2 votes
1 answer
962 views

How can I execute the mt.exe in a PowerShell command prompt

I need to run the mt.exe (part of visual studio express) to embed an application manifest into another executable. Usually the mt.exe is called from a Visual Studio command promtp. The procedure is ...
Maximilian's user avatar
2 votes
0 answers
521 views

/etc/default/keyboard not taken into account at boot

I'm trying to have a Mac keyboard behavior on my ubuntu/trusty32 virtual machine, and had some problems with it so far. Using sudo dpkg-reconfigure keyboard-configuration seemed to work at first, but ...
Etienne Jouin Nammalvar's user avatar
2 votes
0 answers
1k views

Prevent Vagrant from manipulating /etc/hosts

When config.vm.hostname is set in a Vagrantfile, Vagrant manages the hostname. Furthermore, and this is the bad part for me, it manipulates /etc/hosts to contain the hostname pointing to 127.0.0.1 (...
John's user avatar
  • 98
2 votes
0 answers
585 views

Fedora, vagrant and libvirt

In my continuing attempts to get vagrant up (* No kernel sources available for 4.4.4-301.fc23.x86_64) I have been trying to use the libvirt provider because libvirt is faster and does not require ...
DMCoding's user avatar
  • 223
2 votes
1 answer
108 views

Homestead: Cannot start

I cannot seem to get my box working properly. I'm following the instructions here. I'm running Windows 8.1 64-bit. When I run vagrant up, it goes through a series of commands and logs a bunch of ...
xyhhx's user avatar
  • 129
2 votes
1 answer
1k views

Disable vagrant default ssh behaviour

Is there a way to disable the default behavior of vagrant to ssh when doing 'vagrant up'? From their doc. I don't see that mentioned anywhere? https://docs.vagrantup.com/v2/vagrantfile/ssh_settings....
AnthonyWC's user avatar
  • 121
2 votes
0 answers
2k views

DNS Server and Client Configuration inside Vagrant VMs?

I have a development environment with 2 VMs running CentOS 7 through vagrant. My provider is VirtualBox. site.dev.cafe is my DNS server, and I believe its configuration is correct and working. On ...
GreenTeaTech's user avatar
2 votes
0 answers
404 views

Access development VM (Vagrant / VirtualBox) from Android phone

I'm developing a web app on my PC. My dev environment is Vagrant / Virtual Box / Ubuntu 14.4. Vagrant serves the app content on 10.0.0.101, which is mapped in my hosts file to dev.myapp.com. Inside ...
sg.cc's user avatar
  • 141
2 votes
0 answers
434 views

Error installing Chef Server on Vagrant-managed Ubuntu 14.04.2 LTS

I'm trying to set up a Chef Server on a local VM using Vagrant/VirtualBox. My Vagrantfile is: Vagrant.configure(2) do |config| config.vm.box = "ubuntu/trusty64" config.vm.hostname = "dtom-chef-...
user82599's user avatar
2 votes
0 answers
958 views

Vagrant ssh fails -- after cloning the box with vagrant package

i've set up a first Vagrant box for python dev that works very well. I can vagrant ssh in that original box without issue. Trouble start when i try to create a copy of that box (with vagrant package),...
knightofni's user avatar
2 votes
0 answers
2k views

Can't get private GitHub repos to work with Vagrant/Puppet on Windows

I have a project and we use Vagrant for our development env. On Mac/Unix the provisioning works perfectly except in Windows, the problem is that forwarding agent doesn't work on windows and therefore, ...
Sander Visser's user avatar
2 votes
0 answers
430 views

Vagrant vbox 45-50% CPU usage

I am running a headless Ubuntu server box on my Windows 7 64 bit PC with Vagrant. My PC has 8 GB ram and Intel Dual Core 3.16Ghz E8500 processor and PAE. The problem is that VBox routinely uses btw ...
dgo's user avatar
  • 881
2 votes
1 answer
443 views

Error with installing Drush on via Ansible

When installing Drush, with the following task action: command pear install drush/drush creates=/usr/bin/drush tags: drush I get the dollowing error: TASK: [Drush | Install drush] **********...
sanders's user avatar
  • 189
2 votes
0 answers
2k views

Vagrant does not assign correct gateway

I have created with Vagrant a brand new VM running Ubuntu 12.04 Since I need to access the VM always at the same IP address I have assigned to it a MAC address and set my DHCP in order to assign the ...
Sig's user avatar
  • 521

1
2 3 4 5 6