Questions tagged [vagrant]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

Could not access KVM kernel module while building SONiC NOS on vm with vagrant

I'm trying to build sonic build image for virtual switch from https://github.com/Azure/sonic-buildimage on ubuntu 16.04/xenial vm with vagrant, but I've got an error: ++ on_error ++ echo '=============...
0
votes
1answer
38 views

How to install the latest version of Vagrant

I have downloaded the vagrant 2.2.9 64 bit setup file from Downloads | Vagrant. It is not a .deb file, it does not have any extension so I can not understand how can I install vagrant using this file. ...
0
votes
0answers
14 views

Vagrant dpkg-buildpackage build failure

I have been trying to build a package from statsd on an instance of the vagrant box ubuntu/trusty64. Unfortunately, build-package yields the following error: parsechangelog/debian: warning: debian/...
0
votes
1answer
25 views

Update repository version for Vagrant

I wanted to install latest Vagrant, so followed the steps as below : sudo apt-get update Some other repo link has broken and i dont want to update it. As suggested online i have sudo rm -rf /var/...
3
votes
0answers
206 views

Unable to boot official Vagrant boxes for 20.04

I am trying to use the official ubuntu/focal64 Vagrant box to run some new VMs. I have tried with versions v20200518.0.0 and v20200522.0.0 (the newest as of my testing). I am using Vagrant 2.2.9 and I ...
0
votes
1answer
24 views

sync folder /home/vagrant with project root?

This is my setting in my vagrantfile: config.vm.synced_folder ".", "/home/test/kata" If I start my VM and login with vagrant ssh I am in the empty folder /home/vagrant. If I want to go to folder ...
0
votes
0answers
109 views

Unattended ubuntu installation with Packer : error while selecting the language

I was trying to use packer to setup a VM with ubuntu1804. VM is a virtualbox vagrant machine. I followed the pressed file and other scripts from here: https://github.com/geerlingguy/packer-boxes/tree/...
2
votes
1answer
338 views

Virtualbox kernel vboxdrv not loaded on ubuntu 19.10 [duplicate]

i have installed virtualbox with repo deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian aeon contrib sudo apt-get install virtualbox vagrant -y but use VBoxManage --version this ...
2
votes
0answers
28 views

How do I replicate this script being used on a Red Hat Vagrant box using a Ubuntu Vagrant box?

I have a Vagrant box running a Node.js app for internal use at work. It is currently running on a Red Hat 6.5 Linux Vagrant box but for reasons I need to migrate it to a Ubuntu 18 Vagrant box. The ...
1
vote
1answer
1k views

The vboxdrv kernel module is not loaded

I am using Vagrant. When I try to start it, I get this issue (it was working the past year, no idea why it suddenly fails - I haven't updated anything): The provider 'virtualbox' that was requested ...
0
votes
0answers
228 views

unable to ping guest 10.0.2.15 on host

I am beginner of ubuntu, and i have installed ubuntu 16.04 on my desktop computer, then installed Vagrant by following steps sudo apt-get install virtualbox sudo apt-get install vagrant vagrant box ...
0
votes
0answers
154 views

ubuntu 18.04 guest on mac 10.14 host - keyboard unresponsive when ssh'ing into google chrome 77 but it works when chrome is opened from within guest

I have Ubuntu 18.04 running successfully on Mac Mojave via virtualBox and Vagrant. When Chrome is opened via the GUI, mouse and keyboard inputs are accepted: I can type like a monkey on a keyboard ...
0
votes
0answers
145 views

student@127.0.0.1: Permission denied (publickey)

I’m using Ubuntu 19.04 OS as my main host machine and Ubuntu 18.04 LTS as guest machine installing it using vagrant as shown in this course anyway using vagrant v2.2.5 when I try to log into the ...
1
vote
1answer
478 views

vagrant cannot start VirtualBox VM after moving from 18.04 to 19.04

I moved my home folder to a new laptop. before I used Ubuntu 18.04 and on my new Laptop I use Kubuntu 19.04. I copied all relevant folders to my new system, but vagrant cannot start the old container ...
1
vote
1answer
165 views

Why Vagrant fails after OS upgrade?

Multiple packages upgraded like gem, ruby and its plugins. Now when I run vagrant up I get: Vagrant failed to initialize at a very early stage: The plugins failed to initialize correctly. This may ...
2
votes
0answers
139 views

Failed to restart motd-news.service

I am receiving a message saying Failed to restart motd-news.service when starting up ubuntu 16.04.6 on a vagrant box (Homestead). Trying to get the message go away, but not sure how to do so. Cannot ...
0
votes
1answer
516 views

Permission Denied on laravel/homestead when writing file in after.sh

I have added the following lines to my laravel/homestead after.sh in an attempt to install and enabling ioncube when provisioning the box. wget http://downloads3.ioncube.com/loader_downloads/...
0
votes
1answer
1k views

Gnupg: Breaks software-properties-common (<= 0.96.24.3) but 0.96.20.7 is to be installed

I am new to ubuntu i am trying to install vagrant but i am getting following error: gp@ubuntu:~/Downloads/gnupg-2.2.13$ sudo apt install vagrant [sudo] password for gp: Reading package lists... Done ...
0
votes
0answers
28 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 ...
1
vote
0answers
214 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 & ...
2
votes
0answers
47 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
1answer
666 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 ...
2
votes
1answer
483 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 ...
3
votes
0answers
1k 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
258 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
4k 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
1k 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 ...
3
votes
1answer
2k 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,...
1
vote
0answers
703 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
4k 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
1k 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
1k 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
1k 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
966 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 ...
1
vote
1answer
3k 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. ...
11
votes
7answers
17k 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 ...
22
votes
3answers
7k 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
450 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
252 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
1answer
2k 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
953 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
210 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
2k 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
187 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
3k 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
113 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
194 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
615 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 ...