Questions tagged [vagrant]

Questions about Vagrant, a tool to create and configure lightweight, reproducible, and portable development environments through virtual machines.

Vagrant needs an underlying virtualization provider to manage the virtual machines. It ships with VirtualBox support, for VMWare products there exist plugins.

199 questions
76
votes
11 answers

Shutting down all VirtualBox (vagrant) VMs in one easy to use bash command (that can be put into a bash file)

I use vagrant for development. I forget to shut down a few of the VMs. When I go to log out of my host machine, the Ubuntu shutdown process appears to hang. Might there be a way to script a close of all vagrant boxes with a bit of commandline-fu?…
Rick
  • 2,957
76
votes
9 answers

How can I increase disk size on a Vagrant VM?

I have a VM managed by Vagrant using VirtualBox on a Ubuntu host server. My Vagrant box uses the Puppetlabs Debian 6.0.7 basebox, which uses LVM for its root partition. By default the disk is 8GB which is too small for my purposes. I would like…
36
votes
9 answers

ubuntu xenial64 box password?

Probably a stupid question but I have used the trusty64 box before with vagrant and was trying the xenial64 box but it doesn't accept the usual user: vagrant password: vagrant login?
29
votes
4 answers

How do I trigger rsync on file modification?

I can sync folders with rsync -avz /directory /target, now I wish to do it if I changed a file in /directory so rsync should be called automatically. I am using Virtual Box and the shared folder of Virtual Box is really slow, especially if you have…
22
votes
3 answers

Ubuntu 16.04 freezes on vagrant up

Every time I run vagrant up, ubuntu 16.04 freezes and I have to restart it. I can't event run vagrant up --debug. I am using widgetbox-php53 box.
20
votes
5 answers

Vagrant Up and annoying NFS password asking

Sorry for the language mistakes I've made. I'm trying to prevent vagrant asking the password when it mounts shared folders by NFS: [server] Exporting NFS shared folders... Preparing to edit /etc/exports. Administrator privileges will be…
19
votes
1 answer

What do I select for “GRUB install devices” after an update on a VM?

This is almost exactly the same as What do I select for “GRUB install devices” after an update? - or perhaps it isn't, hence asking, as I'm running Ubuntu on a Virtualbox machine via Vagrant. I was unable to update packages, so I ran sudo apt-get…
ian
  • 425
18
votes
4 answers

How do I fix name service for Vagrant client?

I am new to Ubuntu (having just installed Ubuntu 12.10) and want to start developing with it. So I have installed Vagrant, downloaded lucid64.box, initialized, started it up and accessed it via ssh. To the test the Internet connection on my client…
15
votes
2 answers

When using vagrant Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)

I am trying to install open edx with ubunty 16.04 and I get this error There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: ["startvm",…
15
votes
5 answers

Network settings fail for ubuntu/xenial64 Vagrant box

With the Official Ubuntu 16.04 LTS (Xenial Xerus) Vagrant box image (on VirtualBox) I have problems with basic network settings: My Vagrantfile: Vagrant.configure(2) do |config| config.vm.box = 'ubuntu/xenial64' config.vm.define "xenial" do…
techraf
  • 3,316
14
votes
7 answers

VBoxManage is unable to start vm code NS_ERROR_FAILURE ubuntu 16.04

I recently upgraded to virtualbox 5.2.4 and vagrant 2.0.1 because of this issue. Since then, I haven't been able to run any of my vagrant boxes (some ubuntu, some centos). I get the following error when running vagrant up: There was an error while…
14
votes
1 answer

Why is NFS not allowing me to mount a share?

The Host I have a host, running Ubuntu 12.04, at 10.0.0.202. It provides an NFS share for other machines on the network. Here is the contents of /etc/exports: /media/storagedrive 10.0.0.0/24(rw,sync,no_subtree_check) The intention here is to share…
Alex
  • 339
12
votes
2 answers

How are the Official Ubuntu Vagrant boxes built and published to Atlas?

Every week or so, a new version of the Official Ubuntu Trusty x64 Vagrant base box for Virtual appears on Hashicorp Atlas: https://atlas.hashicorp.com/ubuntu/boxes/trusty64 Presumably, for repeatable consistency, this has all been automated. I know…
12
votes
5 answers

install vagrant version 1.5 or greater on 14.10

Is there a way to install a newer version than in the repository? Ubuntu installs vagrant 1.4.3 at the moment, but I need at least 1.5
rubo77
  • 34,024
  • 52
  • 172
  • 299
12
votes
3 answers

How to install Vagrant with manual VirtualBox 4.2?

How can I install Vagrant 1.0.6. with an already manually installed VirtualBox 4.2.6 on Ubuntu 12.04? All of my known ways fail: Download *.deb file for 64bit and dpkg --install vagrant_x86_64.deb gives me the error Vagrant not installed. Use…
mcbetz
  • 3,099
1
2 3
13 14