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
0 answers
15 views

added gui, but cannot log to gui as original user

I added xorg, openbox and lxqt, and latter mate to my ubuntu 18.04 vagrant box to create lighweight gui experience. After restarting box, VirtualBox window popped up with invite to select a user and ...
user avatar
  • 143
-1 votes
2 answers
31 views

How do I enable AMD-V when I forget my bios password?

Is there any walkaround to enable AMD-V without enabling it manually from the bios setting? My AMD-V left disabled and I forget my BIOS password. Now I want to run Vagrant along with Virtual Box on my ...
user avatar
1 vote
1 answer
151 views

vagrant box not available after update of virtualbox

I upgraded my virtualbox to 6.1.32-dfsg-1~ubuntu1.21.10.1 (I think, from 6.1.18 before) and now the vagrant boxes are not available any more in the browser via the box-IP like it used to work before ...
user avatar
  • 30k
0 votes
0 answers
24 views

What are the issues that may be encountered in created vagrant boxes if I don't use the default virtualbox ip ranges for machines

I am working on Vagrant on my Ubuntu (20.04) and I learnt that the ip range allowed by default is 192.168.56.0/21 and that I can of course remove this restriction and use my own range. I am new to ...
user avatar
0 votes
0 answers
28 views

Vagrant/VirtualBox issues

cat /var/log/vbox-setup.log Building the main VirtualBox module. Error building the module: make V=1 CONFIG_MODULE_SIG= -C /lib/modules/5.4.0-96-generic/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -...
user avatar
  • 11
0 votes
0 answers
113 views

VirtualBox ubuntu/focal64 - Error: Command not found

Description: I ran into a problem with a command and I am not sure how to handle the situation. All setup commands ran successfully, so the file structure is in place to install the template command ./...
user avatar
3 votes
1 answer
872 views

Ubuntu Server 20.04 cloud-config adding user does nothing

I am trying to create a VirtualBox .box image of Ubuntu Server 20.04 with packer. The box is to be later used by Vagrant. I want to have a single user (vagrant) with root privileges who logs through ...
user avatar
  • 133
0 votes
1 answer
386 views

Problem getting the right linux headers to run VirtualBox/Vagrant

I am on Ubuntu: lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal Kernel version: uname -r 5.13.0-23-generic ...
user avatar
  • 1
0 votes
0 answers
431 views

vmrun error message using vagrant and vmware workstation Ubuntu 21.10

i am currently enrolled to Udacity Linux Web Server course. We are using vagrant to build out webserver using virtual box. I do not have virtualbox install on my system. I have vmware workstation 16. ...
user avatar
0 votes
2 answers
511 views

Can't get website running in virtual machine to display in browser, networking confusion

This is a question about networking in Ubuntu I suppose, but requires some background. I am a Linux novice. I have a Trellis Wordpress site I've taken over, so set up a dual-boot laptop with Ubuntu 18....
user avatar
0 votes
1 answer
204 views

Error Running npm run dev in Vagrant and VirtualBox: Cannot find module 'webpack'

To give a little context of my problem, here's my local setup: Vagrant 2.2.16 VirtualBox 6.1.26 Ubuntu 20.04 LTS npm v7.20.6 node v16.6.6 At first, I had a very hard time installing webpack-cli ...
user avatar
  • 1
0 votes
0 answers
188 views

Run vagrant up with VirtualBox gives "VirtualBox is complaining that the installation is incomplete" in GitHub Codespaces

I am trying to spin up a vagrant VM to use as the working environment. When I try to spin up the machine, it keeps throwing me the error: The provider 'virtualbox' that was requested to back the ...
user avatar
2 votes
1 answer
131 views

Automating (un-)installing MySQL

I am currently trying to automate the purging and reinstallation of MySQL on Ubuntu (for Vagrant). However, I am encountering various problems with that. Here is what I have: # Uninstall old MySQL ...
user avatar
0 votes
0 answers
302 views

Error message: An error occurred in the underlying SSH library that Vagrant uses

The below error message is seen while running a playbook that uses a Vagrant environment to log in to the machine. An error occurred in the underlying SSH library that Vagrant uses. The error message ...
user avatar
0 votes
0 answers
50 views

apt-get works with sudo but not with root [duplicate]

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-...
user avatar
0 votes
1 answer
212 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....
user avatar
0 votes
0 answers
345 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 ...
user avatar
  • 163
0 votes
1 answer
367 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'...
user avatar
  • 2,304
2 votes
1 answer
1k 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
1 vote
0 answers
176 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 ...
user avatar
  • 11
2 votes
0 answers
2k 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 = &...
user avatar
0 votes
1 answer
779 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 '=============...
user avatar
1 vote
2 answers
361 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. ...
user avatar
0 votes
1 answer
440 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/...
user avatar
  • 103
5 votes
1 answer
2k 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 ...
user avatar
0 votes
1 answer
964 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 ...
user avatar
  • 2,040
0 votes
0 answers
645 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/...
user avatar
  • 101
2 votes
1 answer
2k 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 ...
user avatar
2 votes
0 answers
37 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 ...
user avatar
2 votes
1 answer
3k 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 ...
user avatar
  • 2,040
0 votes
0 answers
830 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 ...
user avatar
0 votes
0 answers
211 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 ...
user avatar
1 vote
1 answer
790 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 ...
user avatar
  • 30k
2 votes
1 answer
469 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 ...
user avatar
  • 993
2 votes
0 answers
556 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 ...
user avatar
  • 123
0 votes
1 answer
807 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/...
user avatar
0 votes
1 answer
3k 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 ...
user avatar
  • 101
0 votes
0 answers
30 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 ...
user avatar
  • 415
1 vote
0 answers
305 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 & ...
user avatar
  • 111
2 votes
0 answers
79 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 : ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 183
2 votes
1 answer
502 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 ...
user avatar
3 votes
0 answers
2k 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 * ...
user avatar
1 vote
0 answers
348 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/...
user avatar
1 vote
2 answers
6k 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....
user avatar
0 votes
0 answers
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 ...
user avatar
  • 11
3 votes
1 answer
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,...
user avatar
  • 131
1 vote
0 answers
871 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 ...
user avatar
  • 111
3 votes
1 answer
7k 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... ...
user avatar