Skip to main content

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
1 answer
175 views

Vagrant install process stuck at VirtualBox Guest Additions

My vanilla Vagrant Ubuntu 24.04 install gets stuck at the same point at the VirtualBox Guest Additions. I tried multiple times, but every time it stops at the same step and message below: XXXXXXX@...
Blue Grass's user avatar
0 votes
1 answer
54 views

What is the correct order of using Vagrantfile commnads along with provision.sh file?

I am trying to create an Ubuntu 24.04 box with Vagrant. I have configured a few configuration options in the vagrantfile and quite a few in the provision.sh file. Both files contents are posted below. ...
Blue Grass's user avatar
0 votes
0 answers
44 views

Can't login via Ubuntu desktop after creating a Vagrant VM

I am testing Vagrant on VirualBox. A VM was created successfully using Vagrantfile and I can do Vagrant ssh into it, however when I try to login via Desktop Environment, I am unable to do so. Here's ...
Blue Grass's user avatar
2 votes
1 answer
220 views

Are there vagrant boxes for recent Ubuntu releases?

In the past there have been vagrantboxes provided for each Ubuntu release, for example: https://app.vagrantup.com/ubuntu/boxes/trusty64 https://app.vagrantup.com/ubuntu/boxes/jammy64 https://app....
PeterJCLaw's user avatar
0 votes
0 answers
144 views

sudo apt-get update problem (docker on Vagrant) [duplicate]

Get:1 https://download.docker.com/linux/ubuntu jammy InRelease [48.9 kB] Ign:2 https://dowload.docker.com/linux/ubuntu jammy InRelease Err:1 https://download.docker.com/linux/ubuntu jammy InRelease ...
yasmine laabidi's user avatar
0 votes
0 answers
81 views

when I run vagrant ssh the screen just hangs on the system status report

PS C:\Users\l> vagrant←[100m ssh←[100m Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-162-generic x * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * ...
Micheal Ian's user avatar
0 votes
0 answers
180 views

Why Can't I Create a VirtualBox VM Using Vagrant?

I recently bought a book called: DevOps for the Desparate and cannot get past chapter 1 exercises to create a VM in Oracle Virtual Box. In the initial set-up phase for chapter 1, I am creating: A ...
Tikhon's user avatar
  • 111
1 vote
0 answers
493 views

New To Ubuntu - Hyper-V - Running out of Space?

I am new to Ubuntu and since I was just laid off from my job of 17 years, I've decided to try to learn some new skills and bought the book, DevOps for the Desparate by Bradley Smith from No Starch ...
Tikhon's user avatar
  • 111
1 vote
1 answer
575 views

Vagrant NFS share no longer working

The following Vagrantfile used to work, and now it doesn't. This is an Ubuntu 20.04 install, and I'm using Virtualbox. Vagrant.configure('2') do |config| # Set Box config.vm.box = "generic/...
Adaddinsane's user avatar
1 vote
1 answer
1k views

Installing mysql-server 8 - stuck at "Renaming removed key_buffer and myisam-recover options (if present)"

I'm trying to install mysql-server on a fresh vagrant box based on Ubuntu 22.04. That's my Vagrantfile. Vagrant.configure("2") do |config| config.vm.box = "ubuntu/jammy64" ...
Vassy's user avatar
  • 11
1 vote
0 answers
79 views

`apt-get install` in guest unmounts all shared folders

I am running in a weird situation after having upgraded to Virtualbox 7.0.8 yesterday, everything went fine for a while, but all of a sudden most of the time during provisioning shared folder mounts ...
Hartmut Holzgraefe's user avatar
1 vote
0 answers
91 views

Ubuntu/Vagrant makes me log in every time I run a program within virtualbox

I am using Vagrant and Virtualbox running a virtual instance of Ubuntu. Every time I use the following command "exec /vagrant/build/test_gui" the logs and output of that program show for a ...
hopoffZ's user avatar
  • 11
-1 votes
1 answer
3k views

When I run sudo apt-get update I get "An error occured during the signature verification"

This is the error message I run into: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://apt.releases....
Kariebi Odozi's user avatar
0 votes
2 answers
535 views

Why can I not attach a shell to Google's hello-app:v1 container?

I've deployed a simple Kubernetes bare pod (hello-world-pod) in a cluster with nodes running Ubuntu 18.04 in Vagrant. When I run this command, kubectl exec -it hello-world-pod -- /bin/sh ...I get the ...
wwillfred's user avatar
0 votes
1 answer
376 views

microk8s minio addons

I have setup a microk8s (1.26) cluster that runs on 2 vagrant VMs (both Ubuntu 22.04), I have also enabled the minio addon. The setup went well, and using sudo microk8s kubectl-minio proxy, I am able ...
Pampa Nello's user avatar
2 votes
0 answers
1k views

Boot hangs on line "xor: measuring software checksum speed"

Lately when booting Ubuntu 20.04, roughly every 2 out of 3 times the machine hangs on this line: xor: measuring software checksum speed. I'm running it as a guest machine on Windows 11 via Vagrant ...
AFOC's user avatar
  • 173
0 votes
1 answer
535 views

How to join Kubernetes worker node to Control Plane Node using Vagrant virtual machines

I am setting up a Kubernetes cluster using Ubuntu 18.04 virtual machines with Vagrant. All goes well until I try to run the kubeadm join 10.0.2.15:6443 --token ... command on a worker node, and I get ...
wwillfred's user avatar
-1 votes
2 answers
184 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 ...
Maxwell D. Dorliea's user avatar
1 vote
1 answer
541 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 ...
rubo77's user avatar
  • 33.2k
0 votes
0 answers
34 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 ...
George Udosen's user avatar
3 votes
1 answer
5k 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 ...
cyau's user avatar
  • 187
0 votes
1 answer
2k 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 ...
Andres's user avatar
  • 1
0 votes
2 answers
1k 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....
Ralpharama's user avatar
0 votes
1 answer
847 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 ...
Semb's user avatar
  • 1
0 votes
0 answers
670 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 ...
George Vasilakis's user avatar
2 votes
1 answer
322 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 ...
CunningFatalist's user avatar
0 votes
0 answers
51 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-...
Delcaran's user avatar
0 votes
1 answer
683 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....
Lhakryma DL's user avatar
0 votes
0 answers
802 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 ...
AreDubya's user avatar
  • 163
0 votes
1 answer
442 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'...
guettli's user avatar
  • 1,487
2 votes
1 answer
4k 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 ...
Victor Grazi's user avatar
0 votes
1 answer
3k 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 ...
ryanJohannes's user avatar
1 vote
0 answers
317 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 ...
daynah's user avatar
  • 11
2 votes
0 answers
3k 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 = &...
Nelson Teixeira's user avatar
0 votes
1 answer
1k 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 '=============...
lumerin's user avatar
2 votes
2 answers
1k 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. ...
Ashikur Rahman's user avatar
0 votes
1 answer
850 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/...
Raghuveer's 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 ...
Moshe Katz's user avatar
0 votes
1 answer
1k 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 ...
Adam's user avatar
  • 2,570
0 votes
0 answers
871 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/...
AnjK's user avatar
  • 101
2 votes
1 answer
3k 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 ...
dan hauer's user avatar
2 votes
0 answers
51 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 ...
homer150mw's user avatar
2 votes
2 answers
5k 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 ...
Adam's user avatar
  • 2,570
0 votes
0 answers
1k 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 ...
Pundlik Patil's user avatar
0 votes
0 answers
227 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 ...
cocomatt's user avatar
1 vote
1 answer
886 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 ...
rubo77's user avatar
  • 33.2k
4 votes
2 answers
813 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 ...
Alireza's user avatar
  • 1,284
3 votes
1 answer
1k 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 ...
Trond's user avatar
  • 135
0 votes
1 answer
936 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/...
Martin Allen's user avatar
0 votes
1 answer
4k 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 ...
gaurav 's user avatar
  • 101