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]

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

0
votes
0answers
20 views

Build Ubuntu Desktop using ubuntu-meta

Objective: Fresh install of updated desktop every week Assumptions: Applying the ubuntu-meta to ubuntu server will get me a desktop environment Assumptions: I can apply the tar.gz or dsc file instead ...
0
votes
0answers
40 views

Vagrant ssh X11 forwarding an android emulator

I've prepared an Android development environment using apache cordova inside a vagrant box with Ubuntu 16.04 by following mainly this guide except using the latest android sdk tools (sdkmanager & ...
0
votes
0answers
24 views

Resetting route settings after few seconds Ubuntu 16.04

We are trying to set route in Ubuntu 16.04 for our lan network via Vagrant. When we set parameters for route sudo route add -net 172.16.13.0/24 gw 172.16.5.1 after ~10 seconds this route is resets. ...
0
votes
0answers
45 views

Within Vagrant, cannot get a mount to persist after halt

I am using Vagrant for Node.js development, on a ubuntu/xenial64 base box. I'm trying to configure things such that node_modules isn't synced to the Windows filesystem, even though the surrounding ...
1
vote
0answers
14 views

VM (created through Vagrant) is not listing the inet in eth1

I created a vm through vagrant with the following in vagrant file: config.vm.box = "ubuntu/trusty64" ...... ..... .. config.vm.network "public_network" Note the warnings here : default: Warning: ...
0
votes
0answers
87 views

ubuntu 16.04 vagrant issue

I am having an issue with vagrant on Ubuntu 16.04. I installed vagrant to set up a network playground for the book Foundations of Python Network Programming. I followed the first 3 steps in this link ...
0
votes
0answers
105 views

Vagrant failed on Linux 16 -

I'm having serious trouble with 'vagrant up' command. I'm running Ubuntu 16.04, Vagrant v1.8.1 and VirtualBox v1.38. Each time I try to run the command 'vagrant up', I get this error: There was an ...
0
votes
1answer
207 views

No space left on device when trying to allocate swap?

Trying to allocate swap on an ubuntu vagrant box: vagrant@vdd:~$ free -m total used free shared buff/cache available Mem: 2000 77 1700 ...
0
votes
0answers
112 views

how to update ruby-net--ssh

I am trying to get Vagrant work, but it throws me an error, exactly described here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890662 But I got Ubuntu-based distribution. How to update ruby-...
2
votes
1answer
417 views

virtualbox installation through apt gets stuck on ubuntu 18.04 bionic beaver

I am trying to install virtualbox package using the command: sudo apt-get install virtualbox this installs three packages; virtualbox, virtualbox-qt and virtualbox-dkms. But the installation does ...
2
votes
0answers
765 views

X11 Forwarding for non-root user not working

Cross-Posted Environmental Details Relevant bits of server's /etc/ssh/sshd_config: X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost no Relevant bits of client's $HOME/.ssh/config: Host * ...
1
vote
0answers
136 views

Vagrant installation issue

I am trying to install Open edx Devstack on Ubuntu 16.04. I am asked to do below cmd: vagrant box add {BOX-NAME} {BOX-FILE} that means vagrant box add ginkgo-devstack-2017-07-14 /home/...
1
vote
2answers
812 views

Cant ping a virtualbox created using NAT

So I created in my host machine (Ubuntu 17.10) a virtual machine with VirtualBox + Vagrant + Ansible. Vagrant.configure("2") do |config| config.vm.box = "centos-7.3-x86_64_latest.box" config.vm....
0
votes
0answers
565 views

How to solve vagrant up problem

I installed VirtualBox and vagrant, trying to make vagrant work and got this error: VirtualBox is complaining that the kernel module is not loaded. Please run `VBoxManage --version` or open the ...
1
vote
0answers
52 views

Downloading boxex doesn't take the full bandwidth of my connection and it's very slow? [closed]

On speedtest.net, My connection bandwidth speed is 6.6Mbps down. The download doesn't take the full bandwidth of my connection! When I pressed crtl+c to cancel download and restart it showed me this!...
3
votes
1answer
792 views

MongoDB ServerSelectionTimeoutError: No replica set members available for replica set name “abc”

I'm an experienced programmer, but a Python, Ubuntu, and Linux newbie. I apologize, as well, if this question would be better in a different forum. I am working on a project in Python using PyCharm,...
0
votes
0answers
379 views

/etc/hosts changes ignored

I want to add entries to my hosts file so I can access some local vagrant VMs for development. I have a near-new install of Ubuntu 16.04 LTS. There is a /etc/hosts file but changes I make to it are ...
1
vote
1answer
1k views

Unable to execute new pre-installation script (/var/lib/dpkg/tmp.ci/preinst)

I try to install a .deb file in my vagrant box that use generic/ubuntu1604 image but i got the following error: Reading package lists... Done Building dependency tree Reading state information... ...
0
votes
2answers
916 views

Can't run vagrant up

I got an error when running vagrant up The provider 'virtualbox' that was requested to back the machine 'booking_machine' is reporting that it isn't usable on this system. The reason is shown below: ...
0
votes
0answers
901 views

ubuntu 16.04 Can't open virtualbox 5.2 machine

When I try to run homestead-7 virtual machine I got this error The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall ...
2
votes
1answer
445 views

Vagrant does not see VirtualBox provider

Problem: Running vagrant results in: No usable default provider could be found for your system. Running vagrant up --provider virtualbox or --provider VirtualBox or --provider=VirtualBox does not ...
1
vote
2answers
692 views

Vagrant up fails on Booting VM

I have installed the latest release from Ubuntu 16.04. I installed VirtualBox like that: sudo apt-get install virtualbox virtualbox-dkms and I downloaded the latest release from Vagrant and ...
0
votes
1answer
2k views

How to upgrade Vagrant? [duplicate]

I have Vagrant 1.8.1 installed but apparently I need a higher version As instructed here on Super User I downloaded the latest release 2.0.1, opened it and pressed install, but nothing has changed. ...
3
votes
4answers
4k views

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 ...
20
votes
3answers
6k views

Ubuntu 16.04 freezes on vagrant up [duplicate]

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.
0
votes
0answers
244 views

Php script does not connect to MySQL (Vagrant VM)

I need help for a php script to connect to mysql database. I have installed VirtulaBox and Vagrant and setup an Ubuntu 16.04 server. On the server I have installed apache2, php7.0 and mariadb. I ...
3
votes
1answer
2k views

Is there an Official Ubuntu Server 16.04 vagrant box?

I can see Ubuntu 16.04, and Ubuntu Server 14.04, but there doesn't seem to be an official Server 16.04. Does it exist somewhere else? Discover Vagrant Boxes | Vagrant Cloud
1
vote
0answers
141 views

apt-get update hanging forever after 'Reading package lists…' and not completing

I have a VM guest running Ubuntu 14.04.1 LTS on a Windows 10 host. I access it via Vagrant. Recently, I updated VirtualBox on Windows, and didn't realize that my Guest Additions was behind on the ...
1
vote
0answers
1k views

connect to host localhost port 22: Connection refused

I created a Ubuntu Vagrant box and ssh'd into it. Now, created a ssh key and trying to ssh to my localhost but I get the following error. vagrant@vagrant-ubuntu-trusty-64:~$ ssh -vvvv localhost ...
0
votes
1answer
614 views

How to fix vagrant provision errors: inline script, ttyname failed, inapp

Context: Trying to set up a VM Ethereum development environment on a fresh Ubuntu 17.04 install with the latest versions of Vagrant and VirtualBox installed. More details are here, but the latest ...
0
votes
2answers
84 views

How do I restore a missing base folder on the home path on a fresh Ubuntu 17.04 install?

I try to run vagrant init and vagrant up on a freshly installed Ubuntu 17.04 with Virtual Box and Vagrant installed, but the output for vagrant up is: Bringing machine 'default' up with 'virtualbox' ...
4
votes
1answer
1k views

I can't install any newer versions of vagrant past 1.8.1

I am using apt-get to install Vagrant on Ubuntu 16.04. The newest version listed on the website is 1.9.8, once installed I check the version and it is says I have 1.8.1 installed. I then tried ...
1
vote
1answer
152 views

Configuring maas-region-controller

When trying to install MAAS in a virtual machine, the following is displayed on the target's screen after running sudo apt-get install maas. The virtual machine is built by vagrant. Is there has any ...
1
vote
1answer
2k views

vagrant up throws The following command responded with a non-zero exit status

I am getting the following error, during the execution of vagrant up: The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! mount -o ...
1
vote
0answers
84 views

Vagrant not running rc.local

How do I make sure that when I run vagrant up it runs /etc/rc.local to set PATHS? rc.local file is being created like this: #!/bin/sh -e export CONDA_DIR=/opt/conda export PATH=$CONDA_DIR/bin:$PATH ...
0
votes
0answers
10 views

Vagrant + vbox on server 16.04 - how to get it working? [duplicate]

I am trying to setup vagrant with virtual box on my ubuntu server 16.04. Atm I think that the error I get is due to I miss a GUI. 0x80004005 is the error it spits out. First I thought is was a ...
2
votes
1answer
137 views

Why is vagrant so fast?

If I install vagrant and deploy an operating system on it, it takes literally some seconds. But is I try to install an operating system to VirtualBox itself without vagrant, it will take maybe half ...
0
votes
0answers
462 views

You must SSH in as root to run this command: sudo

I keep seeing this whenever enter sudo on different user than ubuntu You must SSH in as root to run this command: sudo Here is the output of sudo -l -U myuser Matching Defaults entries for ...
0
votes
1answer
356 views

Why can't I ping the IPv6 loopback in my Vagrant Box?

I watched a video tutorial about the loopback address. I learned that 127.0.0.1 is the IPv4 loopback address, localhost also points to IPv4 loopback address, and ::1 is the IPv6 loopback address. ...
0
votes
0answers
111 views

Installing Vagrant on Ubuntu 16.04 [duplicate]

I'd like to install Vagrant software on Ubuntu 16.04, but their download page, only lists Debian and Cent OS. Is it possible to run this software on Ubuntu?
0
votes
0answers
85 views

Sync home directory with Vagrant [duplicate]

I'm using the ubuntu/xenial64 Vagrant box. When I vagrant up with the default Vagrantfile I'm able to log in and get to work without needing to input a password via vagrant ssh. I land in the home ...
1
vote
0answers
100 views

Static routing in Ubuntu Server not quite working

So, I'm creating a virtual computer network using Vagrant with Ubuntu 14.04 boxes, based on topology shown here image 1. And here is my Vagrantfile. # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant....
1
vote
2answers
1k views

There was an error talking to Libvirt: Call to virDomainCreateWithFlags failed: Unable to get index for interface eth0: No such device

My computer is Ubuntu Desktop 16. I am using Vagrant and KVM libvirt to create virtual machines. However, I want my machines to connect to the Wi-Fi of my home and have IP addresses of the Wi-Fi ...
2
votes
0answers
241 views

Dual boot with partition containing virtual box

Currently I use MacOS with a virtualbox that hosts my development vagrant environment. If I were to put that virtualbox and other directories I normally mount to the virtualbox onto a separate ...
1
vote
1answer
1k views

Upgraded Ubuntu from 14.04 to 16.04, hangs on boot, can use recovery mode but unclear what's actually broken [duplicate]

I'm attempting a manual upgrade of a Vagrant VM box (of the WordPress dev environment VVV, which uses ubuntu/trusty64) from 14.04 (14.04.5 LTS I think...) to 16.04.2 LTS. This is the second time I've ...
1
vote
2answers
738 views

Xenial: can't install mysql in a vagrant box

This question began on SO, and someone suggested it would be better asked here: I am trying to install mysql on a vagrant box (Ubuntu 16) by hand. Here is my Vagrantfile Vagrant.configure("2") do |...
2
votes
4answers
9k views

“vagrant up” problem with virtualbox

$ vagrant up The provider 'virtualbox' that was requested to back the machine 'scdev' is reporting that it isn't usable on this system. The reason is shown below: VirtualBox is complaining that the ...
1
vote
0answers
162 views

symlinks error due to permission in 16.04

I was trying to install a package using vagrant, this is the error I face: Unable to create symlinks. Make sure you have permission to create symbolic links. Vagrant uses id:1000 from what I ...
0
votes
1answer
1k views

Vagrant - Connecting to django server from host

I have been struggling with this for days. Its driving me insane, because all that time I could have spent developing. I installed django inside a Ubuntu VM, and I need to access it from the host (...
0
votes
1answer
3k views

Vagrant unable to locate Virtualbox

On Ubuntu 16.04.01 Using vagrant 1.8.1 and virtualbox 5.1.12. I have already set VBOX_INSTALL_PATH=/usr/bin/virtualbox VBOX_MSI_INSTALL_PATH=/usr/bin/virtualbox Getting the following error: $ ...