Questions tagged [vagrant]
Questions about Vagrant, a tool to create and configure lightweight, reproducible, and portable development environments through virtual machines.
196
questions
0
votes
0
answers
15
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
* ...
0
votes
0
answers
48
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 ...
1
vote
0
answers
52
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 ...
1
vote
1
answer
118
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/...
0
votes
1
answer
386
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"
...
1
vote
0
answers
68
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 ...
1
vote
0
answers
60
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 ...
-1
votes
1
answer
1k
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....
0
votes
2
answers
280
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 ...
0
votes
1
answer
263
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 ...
1
vote
0
answers
787
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 ...
0
votes
0
answers
148
views
Why does pod on worker node fail to initialize in Vagrant VM?
I'm building a Kubernetes cluster in virtual machines running Ubuntu 18.04 managed by Vagrant. I've successfully added the first worker node to the cluster, but a pod on this node fails to initialize.
...
0
votes
1
answer
265
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 ...
0
votes
0
answers
47
views
Failed to download the VM from the server and boot it up
Tried to boot the VM up but it is failed to initialize at a very early stage. The full log is below:
ERROR MESSAGE:
kzkimv@DESKTOP-3C7B2JO:~/lh$ vagrant up
Vagrant failed to initialize at a very early ...
-1
votes
2
answers
144
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 ...
1
vote
1
answer
432
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 ...
0
votes
0
answers
29
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 ...
3
votes
1
answer
4k
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 ...
0
votes
1
answer
1k
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
...
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....
0
votes
1
answer
646
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 ...
0
votes
0
answers
514
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 ...
2
votes
1
answer
229
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 ...
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-...
0
votes
1
answer
492
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
0
answers
591
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
1
answer
418
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
1
answer
3k
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
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 ...
1
vote
0
answers
273
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 ...
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 = &...
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 '=============...
1
vote
2
answers
603
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
1
answer
656
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
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 ...
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 ...
0
votes
0
answers
809
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
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 ...
2
votes
0
answers
45
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
1
answer
4k
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
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 ...
0
votes
0
answers
220
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
1
answer
843
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 ...
3
votes
1
answer
669
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
0
answers
754
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
1
answer
894
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
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
...
0
votes
0
answers
32
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
0
answers
383
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
0
answers
90
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 :
...