People who code: we want your input. Take the Survey

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
36 views

apt-get works with sudo but not with root

I'm setting up a Vagrant box with Ubuntu 20.04 behind a proxy and using apt-cacher as repository. In the Vagrantfile I run (as root) these commands in this order: apt-get -qq install -y docker docker-...
0
votes
1answer
36 views

Vagrant runs inline scripts multiple times, and ones which haven't been defined

I am spinning up multiple vms using vagrant, this is my vagrantfile (up to the first host, removing comments): # Installed Vagrant Version: 2.2.14 Vagrant.configure("2") do |config| config....
0
votes
0answers
124 views

Unattended Nginx install fails with 400 Bad Request errors, but command line install is fine. 20.04

I am trying to put together a Vagrant & VirtualBox VM that uses provisioning scripts to perform unattended installations of all needed software after the initial vagrant up. This is something I've ...
0
votes
0answers
19 views

VBoxClient (VirtualBox) not initialised at startup

I am creating a Ubuntu virtual machine using Vagrant and I install the VirtualBox guest additions by running: config.vm.provision 'shell', inline: 'sudo apt-get install -y virtualbox-guest-dkms ...
0
votes
1answer
268 views

Vagrant: 'cpu_tlbstate' undeclared

vagrant up fails on Ubuntu 20.04 with kernel 5.8.0-36-generic What can I do to fix this? Here is my current state to debug this: guettli@yoga15:~/projects/yourfirm$ vagrant up The provider 'virtualbox'...
2
votes
1answer
334 views

Why is Vagrant in Ubuntu Docker container on Windows looking for PowerShell?

I am taking some training where all of the examples are in Ubuntu, but I am on Windows. So I thought I would install an Ubuntu Docker container, and that went well. The examples also require ...
0
votes
0answers
24 views

How to clone the same environment I have on the local machine to the deployment environment?

Let me first talk about my local env : I work on a Laravel project using the vagrant: (PostgreSQL 12.4 + PHP 7.4.10 ) The problem is I discovered that some results are not not the same between my ...
0
votes
1answer
637 views

NPM install fails on ubuntu 20.04 Vagrant box

I'm running into ENOENT errors when trying to npm install on a Linux Vagrant box. My code in the provisioning script looks like: sudo apt-get update sudo apt-get install nodejs sudo apt-get install ...
0
votes
0answers
72 views

Chmod not working as expected in /etc/keepalived folder

Good afternoon, I get an error message when trying to build a VM using Vagrant and Keepalived. Configuration file '/etc/keepalived/keepalived.conf' is not a regular non-executable file When I try to ...
0
votes
0answers
81 views

How to set up webpack-dev-server with Vagrant box (homstead)

I've set up webpack 4 in my project inside the Vagrant box (VM) and have followed the instructions in the webpack documentation in order to run the webpack dev server: In the Vagrantfile Vagrant....
1
vote
0answers
77 views

Enabling Virtualization (VT-x) on Ubuntu VM from Windows 10 OS

I have been trying to figure out if it is possible to enable virtualization within the Ubuntu VM. I have a Windows 10 OS and I installed virtual box to run Ubuntu. I had also installed virtual box ...
0
votes
0answers
84 views

Upgrade issue with libpython2.7-minimal and few others

Tried to do apt upgrade and facing some issues, there is few packages which are ready to upgrade The following packages will be upgraded: libpython2.7-minimal libpython2.7-stdlib python2.7 python2.7-...
0
votes
0answers
124 views

memcached error on vagrant scotchbox

I'm using scotch box vagrant box and I updated pre-installed php version (which was 7.0) to php 7.4 with this guide. All went fine and I tried to verify php version using php -v and following message ...
2
votes
0answers
837 views

Vagrant static ip problems in ubuntu/focal64

I'm trying to start a a vagrant vm for a new project using image ubuntu/focal64. I want to have a static IP. So here's my Vagrantfile: Vagrant.configure("2") do |config| config.vm.box = &...
0
votes
0answers
56 views

Ubuntu shuts down after running VirtualBox version 1.1.11

vagrant installed and virtual box installed. When I run sudo vagrant up --provision it opens and then closes seconds later. My error in the terminal: The provider for this Vagrant-managed machine is ...
0
votes
0answers
129 views

Memcache missing error

Using vagrant (scotchbox) and I decided to update the default php version it shipped with. Default shipped php version was 7.0 and I updated to php 7.3 using this guide. Everything went smoothly and ...
0
votes
0answers
22 views

VirtualBox not building VMs

Has anyone encountered this error before? How did you fix it? I have tried several versions of Virtualbox, and the issue still persists.
0
votes
1answer
427 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 '=============...
1
vote
1answer
163 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
36 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
188 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/...
5
votes
1answer
1k 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
570 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
463 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
1k 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
32 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 ...
2
votes
1answer
2k 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
518 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
204 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 ...
1
vote
1answer
665 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 ...
2
votes
1answer
320 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
335 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
638 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
2k 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
29 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
254 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
73 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 : ...
0
votes
1answer
933 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
488 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
325 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
5k 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
3k 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
805 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 ...
3
votes
1answer
6k 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
2k 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
2k 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
1k 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 ...