Questions tagged [vagrant]

Vagrant is a tool for building and distributing virtualized development environments.

Filter by
Sorted by
Tagged with
1 vote
1 answer
38 views

Why my private IP is not within the allowed ranges?

My Vagrantfile config.vm.network :private_network, ip: "172.16.0.22" config.vm.provider :virtualbox do |v| v.customize ["modifyvm", :id, "--cpus", 2] v....
MikiBelavista's user avatar
0 votes
0 answers
22 views

Cannot run recent versions of Node.js in Vagrant box anymore

I like to do my dev work in Vagrant virtual machines to keep a clean environment. Having recently updated Node.js to v18.18.0, I suddenly cannot run npm commands inside the guest any longer: npm start:...
BadIdeaException's user avatar
-1 votes
0 answers
7 views

What is the solution when this vagrant up command output error happens?

C:\Projects\lab1-simple-environment>vagrant up Bringing machine 'myvm' up with 'virtualbox' provider... ==> myvm: Importing base box 'ubuntu/bionic64'... There was an error while executing ...
LuanaM's user avatar
  • 1
0 votes
0 answers
16 views

Vagrant/Virtual Box vm only works if Virtual Box GUI is open

Vagrant version 2.3.7 and Virtual Box 7 and Windows 10 Host. I'm trying to vagrant up the machine with Ubuntu/focal64 box, powering it off for the first time it, but it just doesn't work. It gets ...
Thordrek's user avatar
0 votes
0 answers
14 views

Connection refused when running "solr create" from vagrant provision file

I'm trying to create a CKAN 2.10.1 instance with vagrant. The code is in this vagrant-ckan GitHub repository. The vagrant up calls the setup/provision_ckan.sh file, and almost everything goes well, ...
Gabriel Braico Dornas's user avatar
0 votes
0 answers
26 views

For some reason my Vagrantfile creates errors

Error messages PS D:\Users\user\Desktop\nxbt> vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'generic/ubuntu2010' version '4.2.16' is up to ...
coding codin codi cod co c's user avatar
0 votes
0 answers
20 views

Why did k3sup install failed? Error: unable to connect to 192.168.33.1:22 over ssh

I have VM on my Laptop,I want to install k3s on it(from remote) k3sup install --ip 192.168.33.1 --cluster --user miki --k3s-channel stable --local-path ~/.kube/config --merge --context k3s ...
Richard Rublev's user avatar
2 votes
0 answers
74 views

Multi Machine Vagrant Setup Only Creates One VM of Two

The below VagrantFile should create 2 VM's, however when running vagrant up only 1 VM goes up (this appears to be semi randomly selected between the 2). After whichever VM goes up first, I get a ...
Shadow's user avatar
  • 21
0 votes
0 answers
61 views

GitHub Actions Vagrant+Cloud-init cannot ssh into archlinux/archlinux box for some unknown reason

Summary I've posted this on StackOverFlow but was told I should delete and repost here. I'm trying to provision this vagrant image on GitHub Actions in order to automate some testing of a software ...
AkechiShiro's user avatar
2 votes
1 answer
134 views

Access Denied Error when executing VBoxManage during Test Kitchen's kitchen converge Ubuntu 22

I am encountering an error while trying to execute the kitchen converge command in Test Kitchen (v3.1.0) for my infrastructure testing. The error occurs during the creation of a virtual machine using ...
Andres Cabrera's user avatar
0 votes
0 answers
57 views

Can't attach disks to the vm with virsh

I'm trying to attach 5 disks to a Vagrant vm with virsh attach-disk ansible_default --source /var/lib/libvirt/images/ansible_default.img --target vdb --cache none But i'm getting the following error: &...
Vanias Kopas's user avatar
0 votes
0 answers
168 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? I ...
Yoann's user avatar
  • 1
1 vote
0 answers
102 views

I can't install libvirt Ubuntu 22.04

I'm trying to vagrant up a VM with libvirt as provider but I'm getting the following error: The provider 'libvirt' could not be found, but was requested to back the machine 'default'. Please use a ...
Vanias Kopas's user avatar
0 votes
0 answers
73 views

Volume for domain is already created. Please run 'vagrant destroy' first

I'm trying to create a vagrant vm with vagrant up and libvirt as provider. But when i'm running the command i'm getting this error = "Volume for domain is already created. Please run 'vagrant ...
Vanias Kopas's user avatar
0 votes
0 answers
92 views

Is there a way to create disk partitions on Vagrant vm?

I have tried everything so far but without result. I have a ansible role which creates partitions on the machine. I'm trying to set up the partitions on the vm but i can't (i'm using libvirt as ...
Vanias Kopas's user avatar
1 vote
0 answers
30 views

Map a vagrant disk to ansible host file

I'm trying to create partitions in Vagrant vm and to map them to an ansible host file but the play that i'm running is not recognizing them. Here's the Vagrantfile configuration: Vagrant.configure(&...
Vanias Kopas's user avatar
0 votes
0 answers
64 views

vagrant-scp : Providing a local path to a non-default drive to copy a file from my USB key to my vagrant VM

I'm trying this : vagrant scp D:\location vmname:\otherlocation But I get the following error : The machine with the name 'D' was not found configured for this Vagrant environment. I get that vagrant-...
vmonteco's user avatar
  • 163
0 votes
1 answer
234 views

Invalid host type 'player' specified

I have the same error. I noticed the "vmrun -T player ...." doesn't work but "vmrun -T fusion" does. Though I still don't know how to execute -T fusion instead of -T player within ...
windrider's user avatar
0 votes
1 answer
399 views

Vagrant up does not work in macos m2 pro with lates ventura

I have installed vagrant, wmvare fusion in macos m2. But when I run vagrant up it returns below error: An error occurred while executing vmrun, a utility for controlling VMware machines. The command ...
Javid Karimov's user avatar
0 votes
0 answers
17 views

couldn't create free space in vagrant

I tried different commands available on net to resolve the space issue in my vagrant, but nothing working. Getting the below error: [root@oracle-19c-vagrant vagrant]# lvextend -An -L+10G --resizefs /...
Jay's user avatar
  • 1
1 vote
0 answers
114 views

Multiple disks on different locations in Vagrant

I have a Windows Server on which I want to create 3 virtual machines with Vagrant. Each one should have two disks attached: the primary one - SSD with 50GB of storage space and another one - HDD with ...
Tree's user avatar
  • 11
0 votes
0 answers
22 views

Vagrant VM lost port connection to host machine

Let me explain, I have a server on Ubuntu 22 where I have MongoDB running. In this server I created a vagrant vm where Ubuntu run with nginx and a python program. I set the VM like this Vagrant....
Felix's user avatar
  • 1
0 votes
0 answers
36 views

Can't start up vagrant box with libvirt as a provider

I'm trying to start up vagrant box with libvirt as a provider but i can't. I'm getting the following error. Name .at_default of domain about to create is already taken. Please try to run vagrant up ...
Vanias Kopas's user avatar
0 votes
0 answers
70 views

Vagrant Authentication failure after customizing centos 7 .box

My goal is to build a customized CentOS 7.9 Vagrant box. For this I provisioned a VM with the centos/7 box. From there I : Create a user Add a .ssh folder for this user Add a .ssh/authorized_keys ...
NeitoFR's user avatar
  • 101
0 votes
0 answers
67 views

How to fix Vagrant using invalid URL when trying to download 35-cloud-base box?

nix-shell:\~/keylime-vagrant-ansible-tpm-emulator\]$ vagrant -v Vagrant 2.2.19 nix-shell:\~/keylime-vagrant-ansible-tpm-emulator\]$ vagrant up --provision Bringing machine 'keylime-fedora1' up with '...
crayor's user avatar
  • 1
0 votes
0 answers
226 views

Vagrant SSH works on existing box but not new box

I have successfully worked with Vagrant 2.2.4 on Windows 10 for years. I had created a custom box based on Ubuntu 14.04 and am able to log in using vagrant ssh. I created a new test project to try ...
Ryan's user avatar
  • 11
0 votes
0 answers
267 views

Vagrant ansible provisioning not working

I have a vagrantfile and am trying to instantiate a final provisioner of type ansible where I intend to do the bulk of the work configuring the vm. The Vagrantfile works fine without the ansible ...
gone t'pub's user avatar
0 votes
1 answer
472 views

Why can't I edit the sudoers.d files with vim but I can with nano

I tried editing a file in the sudoers.d directory using vi in a vagrant box (Ubuntu Trusty64) but it just opens the file in readonly mode but when I use the nano editor it works. The command sudo vi /...
George Udosen's user avatar
0 votes
0 answers
150 views

Vagrant: syncing folder /var/cache/apt: filesystem vboxsf not available

I use Windows as a host and Kali Linux as a guest. VirtualBox provider. I routinely destroy and re-provision Kali. I want to have a synced folder /var/cache/apt so that apt files aren't downloaded ...
Amedee Van Gasse's user avatar
2 votes
1 answer
277 views

Vagrant + Virtualbox on Debian Bullseye

I've got Debian Bullseye installed on my computer and I want to play a bit with Vagrant. Unfortunately, I stumbled upon two problems that at first sight are not related, however in order to give full ...
martinoidar's user avatar
2 votes
0 answers
232 views

Vagrant - Ansible - Install PostgreSQL and Postgis

I'm trying to install PostgreSQL and Postgis with Ansible on a Vagrant VM. The VM is only use locally for local development, so that's why I grant access to databases. But I'm reaching some issues to ...
BobDev's user avatar
  • 21
1 vote
0 answers
453 views

Vagrant Error: The guest machine entered an invalid state while waiting for it to boot. (Macbook pro M1)

I'm using Vagrant for the first time and when I run the command vagrant up --no-provision it runs for a few second and then it gives me this error The guest machine entered an invalid state while ...
Tarun's user avatar
  • 11
0 votes
1 answer
46 views

Can't use 'vagrant' after installling 'jekyll' with error: 'can't find gem vagrant'

After the install of jekyll with gem install jekyll, my vagrant commands fails with: $ vagrant up /usr/lib/ruby/vendor_ruby/rubygems.rb:265:in `find_spec_for_exe': can't find gem vagrant (>= 0.a) ...
Gilles Quénot's user avatar
0 votes
0 answers
47 views

How it comes that authorized_keys exist on my Vagrant Ubuntu?

From my playbook folder I run vagrant up Vagrantfile is simple Vagrant.configure("2") do |config| config.vm.box = "ubuntu/focal64" end I can not copy my key ssh-copy-id ...
MikiBelavista's user avatar
0 votes
0 answers
60 views

Cannot add GPG keys to an Ubuntu 22.04 VM Vagrant Box. What can I do to further debug this issue?

Let me preface by saying I don't know much about how OS behavior may change when virtualized in a type-2 hypervisor. After trying to a bunch of different things to resolve issues related to this post: ...
lmonninger's user avatar
0 votes
0 answers
179 views

Apple silicon M1 vagrant plugin install vagrant-libvirt error

I am on an Apple Silicon M1. I want to use libvirt with vagrant. I got installed: ❯ brew -v ...
Pathros's user avatar
  • 101
0 votes
0 answers
68 views

Vagrant snapshot that doesn't survive a reboot (VERR_SSM_LOAD_CONFIG_MISMATCH)

I use Vagrant to host a stateless service on a server. When the server starts, I want my service to start as well, so I wrote a script called by /etc/rc.local that restores a working snapshot of the ...
Federico's user avatar
  • 101
0 votes
1 answer
183 views

Provide internet access to VM in private network through another VM

I have use vagrant to defined 2 VMS (FW and server). FW has 2 nics: 1 public network with an IP from my LAN and 1 private network server has 1 nic: private network. I am trying to provide internet ...
Petote's user avatar
  • 1
1 vote
0 answers
27 views

Vagrantfile : config.vm.provision "shell" replicate data

This is my first post here, i will try to be the more specific possible. I created a Vagrantfile in order to create a small infrastructure to make practice Ansible to my students. Here the Vagrantfile ...
Fares's user avatar
  • 11
0 votes
0 answers
90 views

Vagrant synced folder from Linux host (libvirt) to Windows guest without using rsync?

I've spent hours on this and found a lot of outdated, unmaintained or abandoned plugins from sshfs, smb, better-smb, nfsd and many others. I've read blog posts, GitHub issues, most of which are 6, 7 ...
pauby's user avatar
  • 101
0 votes
1 answer
88 views

Vagrant + Virtualbox cannot `sharedfolder add` during VM provisioning

I am automating the provisioning of a custom Ubuntu Server 22.10 (custom-built with packer) in Virtualbox using vagrant. During provisioning I get the following error: 2023-01-12T07:39:14.671+0200 [...
cyau's user avatar
  • 101
0 votes
0 answers
112 views

Using vagrant can I use vb.customize "modifyvm" to migrate the processor type from Intel to AMD64 for a certain VM while downloading and installing?

Using vagrant can I use vb.customize "modifyvm" to migrate the processor type from Intel to amd64 for a certain VM while downloading and installing? This is the vagrantfile I'm using ...
m0nde's user avatar
  • 61
0 votes
0 answers
311 views

Trying to Connect(ssh) to Vagrant Machine on Windows from WSL

I try to ssh to the vagrant machine running on my Windows 10 host from the WSL of that same machine. The port forwarding is the default one, that being port 22 of Vagrant machine is forwarded to port ...
Santiago Henao Gonzalez's user avatar
1 vote
0 answers
273 views

Prevent Vagrant from mounting shared folder

I am trying to use a Vagrant Docker provider running on VirtualBox with Windows host. But I can't get in because it's asking for an SMB username/password. I tried disabling synced folders with the ...
Todd's user avatar
  • 111
1 vote
0 answers
48 views

Can't run vagrant, getting 'Could not find class php for vagrant.vm on node vagrant.vm'

I've inherited a web project from another developer, it is built in Laravel and was set up to use Vagrant. I've installed the latest Vagrant, and when I run vagrant up it runs through the usual steps, ...
Al_'s user avatar
  • 111
0 votes
1 answer
98 views

Vagrant up executes inline script within wrong VM

I need help fixing following Vagrant file as it behaves incorrectly. For some reason Shell script is executed on Windows VM, instead of Linux one when executing vagrant up. Vagrant.configure("2&...
crNh's user avatar
  • 1
1 vote
0 answers
169 views

Install libvirt-vagrant crash on MacOS ARM (Failed to build gem native extension)

I'm trying to install the plugn Vagrant-libvirt on my MacOS ARM (Monterey) but I can't install the plugin vagrant-libvirt I installed theses packages with brew before : brew install --cask vagrant &...
DamDam's user avatar
  • 11
0 votes
0 answers
147 views

Pin guest CPU cores to Host CPU cores in vagrant using a libvirt provider

I am using Vagrant with the libvirt provider. In my VM config, I would like to pin individual guest CPU cores to individual host CPU cores. As far as I know, this can be done in libvirt xml-...
cryptobeginner's user avatar
0 votes
0 answers
68 views

vagrant radical change in connectivity - cannot ping or ssh 192.168.x.x yet `vagrant ssh` does work

SOLUTION: a restart of the computer seemed to clear out any residual conflict on IP addresses -- I have a business MacBook and a personal MacBook. Within the last 8 hours since I was working on ...
Oliver Williams's user avatar
0 votes
1 answer
353 views

How to use ssh-copy-id with vagrant? It keeps asking for .pub

I have been trying to use add ssh key to vagrant VMs through this command. ssh-copy-id -f -i .vagrant/machines/workers/virtualbox/private_key -o PasswordAuthentication=no [email protected] The ...
Sarin Suriyakoon's user avatar

1
2 3 4 5
12