Questions tagged [vagrant]
GENERAL VAGRANT SUPPORT IS OFF-TOPIC. Support questions may be asked on https://superuser.com. Vagrant is a command line tool for provisioning virtualized environments on top of various providers, including VirtualBox, VMware and AWS.
8,555
questions
-1
votes
0
answers
21
views
GitHub Actions Vagrant+Cloud-init cannot ssh into archlinux/archlinux box for some unknown reason
Summary
I'm trying to provision this vagrant image on GitHub Actions in order to automate some testing of a software specific to this distribution, following the instructions from here on how to run ...
0
votes
2
answers
33
views
in a Vagrantfile, I define a local variable. How can pass it to a bash script as a parameter? $var, #var, #{var}?
In a Vagrantfile, I want to run scripts.
But some part of them shouldn't run in provision mode.
I've sat a local variable update = "true" (or false) depending of the value of the Vagrant ...
-1
votes
0
answers
15
views
config.vm.provider :virtualbox running when Parallels is specified and VirtualBox not present
I'm modifying a Vagrantfile written for VirtualBox, to enable use on Mac M1/M2 machines with the Parallels provider.
I've made a number of overrides for Parallels that are working fine, but I can't ...
-1
votes
1
answer
13
views
~/.vagrant.d/Vagrantfile not being loaded?
I wanted to set some vagrant variables that would be usable by all of my machine-specific Vagrantfiles. My understanding is that ~/.vagrant.d/Vagrantfile would always be loaded before the local ...
0
votes
0
answers
14
views
How can I fix a vagrant machine that is corrupting after a certain amount of time? [closed]
I am new to vagrant virtual machines. I set up a vagrant machine with 2 nodes for Kubernetes. 1 master and 1 node.
Everything is being ok but after a certain amount of time the cluster crashes and ...
-1
votes
0
answers
33
views
How to troubleshoot a Vagrant VM running a NestJS server returning ECONNREFUSED error when hitting an endpoint?
I have setup several VMs provisioned through vagrant, each with their own private network IP. The issue comes up is that for one of the VMs, which I have named netcap_backend, I have set to start a ...
-2
votes
1
answer
24
views
Tips for creating a 4-node environment with pigsty Local Sandbox Demo config for Postgresql and Vagrant [closed]
TASK [repo : setup local repo if exists] ***************************************
fatal: [10.10.10.10]: FAILED! => {"changed": true, "cmd": "mkdir -p /etc/yum.repos.d/backup/...
1
vote
2
answers
407
views
GPG error public key is not available: NO_PUBKEY B53DC80D13EDEF05: during VM creation using Vagrant
I am trying to install a K8s cluster VM nodes using Vagrant and relevant install shell script (listed below).
I tried some of the suggestions in similar questions, but they did not help my case. I am ...
0
votes
0
answers
22
views
docker load -> minikube image load -> kubectl application deployment. Ok if a vagrant up is done from scratch, but not refreshed at vagrant provision
I use a Vagrantbox holding a minikube that needs an application coming from my host (a local dev one). I send that application by a docker save and then execute, in a part of the Vagrant provision, ...
0
votes
1
answer
18
views
PyCharm "Cannot find reference" error with nested packages in a Vagrant VM
I'm working on a Python project that utilizes a unique nested package structure and is running within a Vagrant VM. Everything works fine when I run the code within the VM, but PyCharm IDE is throwing ...
-1
votes
0
answers
29
views
Vagrant Windows 11 Permission Denied
Currently trying to install Vagrant on Windows.
I am currently getting the following permission error when trying to add a Vagrant Box using the following command.
vagrant box add geerlingguy/...
-1
votes
0
answers
26
views
Vagrant: specify the disk size for the vmware provider
I'm trying to resize the disk of my vagrant box but without success.
I have seen the plugin vagrant-disksize but he is only available for Virtualbox while I use VMware.
How can I expand the disk?
...
1
vote
1
answer
30
views
"The connection to the server localhost:8080 was refused" at node.vm.provision time, but successful when executed from a vagrant ssh
I'm doing a Kubernetes deployment into a VM, using https://github.com/techiescamp/vagrant-kubeadm-kubernetes/blob/main/Vagrantfile model.
At the end of its node part, just after the
node.vm.provision &...
0
votes
0
answers
16
views
Laravel Homstead project can't be reach on Chrome
My Laravel project is working fine on firefox, but when i try it on Chrome i got "This site can’t be reached" and "Your connection with this site is not secure"
I'm using Homestead ...
-1
votes
0
answers
17
views
Can't partition a Vagrant vm with Libvirt as provider
I'm trying to partition a vm's disk whith libvirt as provider. But when i'm executing ansible playbook i'm getting the following error:
"Error: Could not stat device /dev/vdb - No such file or ...
-1
votes
0
answers
34
views
Vagrant up hangs on waiting for ssh
I'm running vagrant with the libvirt provider, trying to run an arch box (archlinux/archlinux).
When running vagrant up, the command hangs when waiting for ssh to become available.
Note that if I run ...
-1
votes
0
answers
27
views
Vagrant up command
I am beginner in web-development and recently wanted to make enviroment using Vagrant and Virtual box. Everything is fine until I reached "vagrant up" command, which always output an error. ...
0
votes
0
answers
17
views
Error when I running Vagrant up or vagrant up --provision MacOS
Vagrant 2.3.4
macOS Catalina 10.15.7
VirtualBox Version 7.0.8
I'm using vagrant and VVV to setup WordPress & Sage. I have installed VirtualBox and Vagrant.
When I run "vagrant up" I have ...
-1
votes
0
answers
58
views
packer build vagrant box with ssh error : "Waiting for SSH to become available" (SSH handshake err: ssh: handshake failed: read tcp)
I try to build a Vagrant box (virtualbox) with Packer tool.
An issue network stop me to move forward the building process.
I logged my building process to more understand why and I found this :
2023/...
0
votes
0
answers
31
views
"default: ERROR: No matching distribution found for numpy==1.22.3" but NumPy 1.22.3 is properly installed
I'm trying to install Vagrant through the command vagrant up but at some point I get these errors:
default: ERROR: Ignored the following versions that require a different python version: 1.22.0 ...
1
vote
1
answer
32
views
Can't install elasticsearch through Ansible on a Centos 9 vm in Vagrant
I'm trying to install elasticsearch from a "common" role but ansible can't find the package to install.
i'm getting the following error when i'm executing playbook:
failed: [vm1] (item=...
0
votes
0
answers
17
views
PHPUnit_Extenstions_Selenium2TestCase_WebDriverException
PHPUnit_Extensions_Selenium2TestCase_WebDriverException : Unable to create session from org.openqa.selenium.remote.NewSessionPayload@1aa12546
Build info: version: '3.11.0', revision: 'e59cfb3', time: '...
-1
votes
1
answer
325
views
unable to install jenkins [closed]
warning: /var/cache/yum/x86_64/7/jenkins/packages/jenkins-2.387.2-1.1.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID ef5975ca: NOKEY
i am using vagrant and virtual-box for centos VM
i used below ...
0
votes
1
answer
74
views
How can I access an NGINX web server running inside a Docker container on a virtual machine managed by Vagrant, from my Windows host machine?
I have set up the Vagrantfile to use a public network with IP address 192.168.1.10 :
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "...
-1
votes
1
answer
65
views
Can't access localhost with vagrant port forwarding where using Laravel on Mac
I can access the web server in vagrant via http://homestead.test.
But some static files is compiled by Vite, which should be access by http://127.0.0.1:5173.
So I add ports in Homestead.yaml
ports:
...
-3
votes
2
answers
106
views
why am I getting error on adding vagrant box
I am getting an error on adding vagrant box
and this is the error.......
The box 'ubuntu/focal64' could not be found or
could not be accessed in the remote catalog. If this is a private
box on ...
0
votes
0
answers
27
views
Using a vagrant to connect to a docker container(outside vagrant) and both are independent to each other on one host
I'm trying to connect to a docker-compose container(which is not installed on vagrant) from a vagrant app running on the same host. How do i enable the communication between them. I have seen there is ...
0
votes
0
answers
71
views
How can I access my App running on Kubernetes installed in my vagrant machine externally
I am trying to access my app externally from my vagrant machine. To run the app on my vagrant machine without Kubernetes I run this command
docker run -p 80:80 achebeh/my-react-portfolio
I have ...
-1
votes
1
answer
47
views
Connecting to mysql on a vagrant box from phpmysql on my local machine
I have phpmysql running locally and am wanting to connect to an instance of MySQL that is installed and running on the same machine. Here are the relevant config files:
#vagrantfile
config.vm....
0
votes
3
answers
50
views
How can I resolve an error "Makfile: No rule to make target"?
I am working with an ecological model PEAT-DOS-TEM. I am working in Vagrant ubuntu/trusty64 on a PC. The code I got from GitHub has a Makefile. When i run the command "make" I get this error ...
0
votes
0
answers
81
views
Migrating from Homestead to Sail - understanding docker development v vagrant
Hi After some issues with Vagrant I'm trying out a switch to Docker and using Sail but struggling with quite a few concepts that I can't seem to find the answers to (or get my head around).
I have a ...
-1
votes
1
answer
37
views
laravel 5.1 installation issue with php 7.1 , cannot install carbon 2
composer install error on carbon 1 is deprecated
SO, how can i run my vagrant with laravel 5.1 with carbon 1 and I have try find from stackoverflow and other site but no helps comes up .
every thing ...
8
votes
3
answers
3k
views
NO_PUBKEY for apt.releases.hashicorp.com in apt
When running sudo apt update, I am presented with the following error:
Err:4 https://apt.releases.hashicorp.com focal InRelease ...
0
votes
0
answers
50
views
Failed to remove directory when using php cache:clear
When using composer install or cache:clear it will fail.
Failed to remove directory "/vagrant/download-server/var/cache/..8bS": rmdir(/vagrant/download-server/var/cache/..8bS): Text file ...
0
votes
1
answer
167
views
Noting I do removes "index.php" from CodeIgniter 4 url
I'm thinking it might be some issue with vagrant? But I've tried for days now every tutorial online to remove the index.php from codigniter 4 but nothing has worked
My apache config file:
<...
0
votes
0
answers
50
views
ERROR setting up vagrant within an AWS instance
I am trying to get Vagrant up and running in an Ubuntu AWS EC2 instance. I have Vagrant installed, i have a dummy vagrant box installed, I have vagrant libvirt plugin installed as well as libvirt ...
0
votes
1
answer
38
views
Communication between the actual device and the virtual environment during iOS development
I'm developing for iOS with Flutter.
I created a virtual environment on my Mac using Virtual BOX and Vagrant, and set up a server to process API requests and return results.
Example of API
localhost:...
-1
votes
1
answer
96
views
Why running homestead after vagrant/VirtualBox installtion I have version errors?
I try to run homestead, but I have an error :
$ cd ~/Homestead
hoster@hoster-os:~/Homestead$ vagrant up --provision
Bringing machine 'homestead' up with 'virtualbox' provider...
==> homestead: Box '...
0
votes
0
answers
44
views
Vagrant Azure - Cannot deploy VM (config.ssh.private_key_path)
When trying to deploy a VM to Azure using Vagrant I've got the message:
**.vagrant.d/gems/2.7.6/gems/vagrant-azure-2.0.0/lib/vagrant-azure/action/run_instance.rb:131:in `call': Please specify a secure ...
0
votes
2
answers
346
views
VSCode Python Remote Debugging Suddenly Not Working
Starting a couple days ago my normal process for debugging python code via pytest has just stopped working.
My previous process was as follows:
Insert the debugpy macro either above the pytest test ...
0
votes
1
answer
196
views
Installing a windows virtual machine in a linux docker container
I have tried to follow this article:
https://medium.com/axon-technologies/installing-a-windows-virtual-machine-in-a-linux-docker-container-c78e4c3f9ba1
The Dockerfile can be found in the bottom part ...
0
votes
1
answer
39
views
vagrant kubernetes oracle virtual box VERR_INTNET_FLT_IF_NOT_FOUND error
while running vagrant up command on win machine I am getting the below error:
==> kubemaster: Booting VM...
There was an error while executing VBoxManage, a CLI used by Vagrant
for controlling ...
-1
votes
1
answer
45
views
How to run a .sh file that has hdiutil, sudo, and wget for Visual Studio Code(windows)?
Currently I'm stuck at figuring out why a .sh script isn't running:
export DOWNLOAD_LOCATION=~/Downloads/
export VAGRANT_URL=https://releases.hashicorp.com/vagrant/2.2.6/vagrant_2.2.6_x86_64.dmg
...
0
votes
0
answers
68
views
Vagrant provisioning script installs software (Pyenv) which requires shell restart
I am using Vagrant to spin up an Ubuntu box and run a shell script which configures the VM to use Pyenv. The Pyenv docs recommend restarting the shell after installation & configuration.
Having ...
0
votes
0
answers
46
views
Accessing Elastic 5.5 in vagrant guest from host through a private network
A bit of context. I need to install an ancient version of Elastic namely the 5.5.
I did so by provisioning a VirtualBox'ed generic/centos7 with vagrant. Everything works pretty well.
I can ssh into ...
0
votes
3
answers
52
views
EOF operator in Shell not exiting
I am trying to edit hadoop file on my guest machine using Vagrantfile. I am using cat. This edites the file but even EOF is considered as text and it has been inserted in the file /hadoop/conf/core-...
0
votes
1
answer
63
views
if ... then statement in Vagrantfile showing error "syntax error, unexpected ']', expecting `end'
I am trying to setup hadoop cluster locally on three VMs. I have successfully setup my VMs. I have also installed hadoop on the master node. But, everytime I run vagrant provision, it downloads hadoop ...
-2
votes
1
answer
97
views
bash : vagrant commands not found
I am a beginner so please someone should show me kindness by showing me how to resolve my issue as a student. I've installed vagrant on git bash but every command seems to be telling me bash : vagrant ...
-1
votes
1
answer
57
views
Vagrant file: host name repeated?
I have following in vagrant config file:
config.vm.define "db01" do |db01|
db01.vm.box = "geerlingguy/centos7"
db01.vm.hostname = "db01"
db01.vm.network "...
0
votes
0
answers
45
views
Connect Wordpress Vagrant VM to MySQL Vagrant VM
First of, I am pretty new to Vagrant. I have two Vagrant VMs to set up a Wordpress. This is my Vagrantfile:
Note: The synced folder "wordpress" in web1 contains the official files of the ...