Questions tagged [vagrant]

Vagrant is free and open-source software for creating and configuring virtual development environments. It can be considered a wrapper around virtualization software such as VirtualBox and configuration management software such as Chef, Salt and Puppet.

Filter by
Sorted by
Tagged with
1 vote
0 answers
23 views

Nextcloud Docker container doesn't sync data to VirtualBox host

Setup: Over the past week I've been trying to set up a Nextcloud Docker instance on an Ubuntu Server VM, in my old 2015 Macbook Pro using VirtualBox and Vagrant. While the VM only has limited storage ...
  • 11
0 votes
0 answers
30 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 ...
0 votes
2 answers
45 views

Open Solaris11 in Vagrant: Unable to negotiate with 127.0.0.1 port 2222: no matching host key type found. Their offer: ssh-rsa,ssh-dss

I use this Vagrantfile: Vagrant.configure("2") do |config| config.vm.box = "jonatasbaldin/solaris11" config.vm.box_version = "1.0.0" end The vagrant up is ...
0 votes
0 answers
27 views

Issue with installing mirco8ks on wsl 2

Good evening, I'm currently stuck on trying to figure out why vagrant cannot startup arrikto/minikf Here are the commands I used so far: $ vagrant init arrikto/minikf $ vagrant up However, I receive ...
1 vote
1 answer
49 views

macOS Vagrant image stuck on "boot.efi, launching..", Linux host

This is my Vagrantfile: Vagrant.configure("2") do |config| config.vm.box = "ramsey/macos-catalina" config.vm.define "macosx-test" config.vm.box_version = "1.0....
0 votes
1 answer
60 views

Vagrant invalid range of IP

root  pop-os  /etc  mkdir vbox root  pop-os  /etc  cd vbox/ root  pop-os  /etc/vbox  nano networks.conf * 10.0.0.0/8 192.168.0.0/16 * 2001::/64 I used this solution to solve the problem ...
0 votes
0 answers
91 views

Nested Libvirt (KVM) fails to create network with vagrant

I want to create a nested virtual machine with network access. I use vagrant on the Host (Layer 0) to create the Layer 1 guest, and then would want to use vagrant to create a Layer 2 guest (inside the ...
0 votes
1 answer
28 views

Why does Vagrant-defined networking have no effect?

I'm attempting to provision two VM's that can send traffic to each other, but I am having trouble implementing this with Vagrant. In my Vagrantfile I have: Vagrant.configure("2") do |config| ...
0 votes
2 answers
152 views

Vagrant-libvirt install unsuccessful on Debian 11 Bullseye? "The provider 'libvirt' could not be found"

I am attempting to recover a dropped laptop hard drive and ended up installing Debian 11 fresh to a swapped SSD that I had cloned the internal SSD to but it still wouldn't work. So I am recovering my ...
0 votes
0 answers
34 views

My Vagrant Ubuntu kernel randomly freezes while running some processes

My Vagrant Ubuntu kernel randomly freezes while running some processes.  Also, it issues some messages that look likekernel:[nnnnn.nnnnnn] watchdog: BUG: soft lockup - CPU#1 stuck for 23s! [node:61935]...
1 vote
1 answer
32 views

Why does adding a counter queue to my Netfilter chain break my VM?

I'm configuring Netfilter Tables to queue packets to and from the userspace, and the table configuration I have so far looks like: table inet filter { # protocols to allow set ...
1 vote
1 answer
57 views

Where is /etc/nftables/inet-filter?

I am trying to locate the file /etc/nftables/inet-filter which is referenced in the readme for a project I've inherited. When I installed nftables, the only files that existed in etc/nftables were: . ...
0 votes
0 answers
121 views

Change CentOS 7 Boot Progress Bar Text

I'm working on a Vagrant CentOS 7 build right now and I want to change the text that shows up in the boot loading screen. I can't take any screenshots because my keyboard doesn't have a PrtSc button, ...
0 votes
0 answers
219 views

How do I configure Netfilter packet queues with NFTables?

Summary I would appreciate some guidance in how to configure Netfilter packet filter queues in a Fedora/36-cloud-base virtual machine running in Vagrant, according to a (seemingly outdated) project ...
0 votes
1 answer
218 views

Connection refused on Ubuntu on Vagrant-Parallels

I'm trying to vagrant up three Ubuntu 20.04-arm64 servers on Mac m1 and getting a loop cycle of errors: ==> db: Waiting for machine to boot. This may take a few minutes... db: SSH address: :22 ...
0 votes
1 answer
198 views

VirtualBox vboxnet0 responds on pings to 192.168.56.100, which is not associated to any virtual machine?

I configured a VirtualBox virtual machine via vagrant to have a private_network address at 192.168.56.100 and noticed that I can ping the address, but not ssh to it. After some investigation I found ...
  • 111
2 votes
2 answers
2k views

Cutter not working over SSH X11 Forwarding

I've got a small SRE lab set up using various Vagrant boxes (VirtualBox backend). I usually work on a Debian or Archlinux box and attach to a Windows box via remote debugging. On my Linux boxes, X11 ...
  • 125
0 votes
0 answers
602 views

How can I install packages silently (without user interaction) with apt? [duplicate]

For a vagrant setup, I want to install xfce4 in the machine. My Vagrant file is based on the box ubuntu/focal64 (which is a bare minimum system). One of the post-installation steps is: sudo apt ...
  • 479
0 votes
0 answers
93 views

Using Docker inside VirtualBox (preferably via Vagrant / Vagrantfile)

How to make VM with Virtualbox (preferably with Vagrantfile), that allows running Dockerfile inside? (architecture: x86-64) Objective: I would like to benefit from VirtualBox VM isolation (for safety),...
2 votes
1 answer
2k views

vagrant doesn't find installed libvirt plugin (host Ubuntu 20.04.3 LTS)

I can't get vagrant working with libvirt. I first used the distro packages, but it produced the same error you see in my description below. Then I removed every distro vagrant package and installed ...
  • 345
3 votes
1 answer
4k views

How do I regenerate /etc/resolv.conf from /etc/systemd/resolved.conf?

I'm trying to follow this tutorial here: https://www.itwonderlab.com/en/ansible-kubernetes-vagrant-tutorial/ using Debian 10 as the vagrant host, and as Debian no longer supports Virtual Box, I'm ...
  • 673
1 vote
0 answers
71 views

IP forwarding not working on Vagrant + Ansible scenario

This is the scenario It is created with Vagrant and configured with Ansible, but the specific problem I'm going to ask about here is why IP forwarding is not working when it should be working. On the ...
1 vote
1 answer
190 views

openssl and ruby error when using vagrant

I use CentOS 8.4, libvirtd (libvirt) 6.0.0, Vagrant 2.2.18, gem version 2.7.6.3 and ruby 2.5.9p229 (2021-04-05 revision 67939) [x86_64-linux] I am trying to use vagrant to build VM's on Qemu/KVM. ...
-1 votes
1 answer
240 views

How to decrease /dev/sda1 partition size?

This is defualt CentOS7 partition download from Vagrant box package except the disk size I change from 40GB to 80GB How can I decrease /dev/sda1 partition size without losing Boot data? And Is fresh ...
  • 1
3 votes
1 answer
405 views

shebang on vagrant mount doesn't work: bad interpreter: Invalid argument

I run in a strange problem if I try to execute a file inside vagrant mount, but not outside: $ cat test #!/usr/bin/env node console.log('works!') $ ls -la test -rwxr-xr-x 1 vagrant vagrant 43 May ...
0 votes
1 answer
485 views

Vagrant machine unreachable from the outside [closed]

When I mean "from the outside", I mean from the internet. My machine is behind a router. And I'm running vagrant to bring up 3 machines. Here's the vagrant file (I removed the fluff): ...
  • 33
1 vote
1 answer
993 views

Why doesn't /var/run/libvirt exist?

I'm trying to use a tool called SecGen that creates a virtual machine with a random vulnerability for hacking. I'm not using the newer repo because I've been having unrelated issues that I won't state ...
1 vote
1 answer
617 views

Vagrant - shell provisioner cannot set PATH variable

I want to setup Ubuntu 18.04 VM with installed go. I have the following shell provisioner script: wget https://dl.google.com/go/go1.15.5.linux-amd64.tar.gz sudo tar -xzvf go1.15.5.linux-amd64.tar.gz ...
  • 113
0 votes
1 answer
910 views

systemd service permission error when binding to ipc port inside a VM

I'm using vagrant to emulate services with network communication. My base box is the ubuntu/bionic64. The application that I'm porting to the VM is written in C++ and binds to ipc addresses as follows:...
  • 103
0 votes
1 answer
377 views

How to generate debconf for specific packages?

I try to clone a Debian10 computer in a VM automatically via vagrant. I start from scratch with packer then reinstall all the packages and configurations. So, I tried from hardware computer: dpkg --...
1 vote
0 answers
45 views

Date jumps to year 2285 in Vagrant

It happened yesterday, and today again. The vagrant box on my machine jumped to the year 2285 (venv3.9.0) root@v-yf:/var/log# timedatectl Local time: Mon 2285-09-21 06:15:40 CET ...
  • 1,219
3 votes
2 answers
4k views

How to run vagrant up in debian wsl in windows terminal

I want to run vagrant up in Debian WSL from a Windows terminal. I have installed vagrant: /mnt/c/HS_DEV/Homestead$ vagrant --version I get Vagrant 2.2.6 When I run vagrant up, I get: The executable '...
1 vote
1 answer
341 views

Vagrant command fails, but not if run by hand

I built my first Vagrant box. When I vagrant up the box I get this error: tange/centos3.3 Bringing machine 'default' up with 'virtualbox' provider... tange/centos3.3 ==> default: Importing base box ...
  • 32.7k
2 votes
0 answers
1k views

How can I fix the error 'Is the MGS running?' when I try to mount FSx for lustre in Vagrant ( Virtualbox, Centos 7 )

I am running openVPN gateway to an AWS VPC. I can normally mount AWS FSx for Lustre on my bare metal CENTOS7 machine using a command like this sudo mount -t lustre -o noatime,flock 10.1.1.90@tcp:/fsx /...
1 vote
0 answers
185 views

Restrict a systemd service on a specific user

Currently having a trouble restricting a service on a specific user. Here's my systemd file for reference. [Unit] Description=myapp After=syslog.target [Service] User=user1 ExecStart=/var/myapp/myapp....
1 vote
0 answers
82 views

Where does vagrant store generated keys?

By default vagrant generated keys to replace the insecure one. However I have no idea where they're stored, and I'm trying to back them up. Where are they stored? (On Ubuntu 20.04)
-1 votes
1 answer
954 views

Can't download file on dropbox 400 Bad Request

Guide https://tracker.ceph.com/projects/ceph/wiki/Ceph_Vagrant_Setup $ wget https://www.dropbox.com/s/hn28qgjn59nud6h/ceph-all-in-one.box --2020-03-14 12:11:09-- https://www.dropbox.com/s/...
  • 105
0 votes
1 answer
152 views

Vagrant: errors about ignoring Rubygems as their extensions are not built after install on Fedora 31

After installing the vagrant packages on Fedora 31 and subsequently running the vagrant command, there are these errors regarding ignored Rubygems: Ignoring ffi-1.10.0 because its extensions are not ...
  • 776
0 votes
2 answers
402 views

Can only ping OpenVPN server, not other guests (host-only network) on VPN network

I installed OpenVPN server successfully on a server (X.X.X.X/32). Here is my OpenVPN config file: port 1194 proto udp6 dev tun ca /etc/openvpn/keys/ca.crt cert /etc/openvpn/keys/server.crt key /etc/...
  • 121
4 votes
1 answer
10k views

Crontab command missing in Fedora 31

I am using vagrant boxes for several tests and in this particular case it is the Fedora 31 box from Bento with VirtualBox. When trying to use the crontab command, I get an error that it is not found. ...
  • 693
0 votes
1 answer
728 views

Start a su command in a Vagrant

I have a Vagrant machine, but I cannot change the vagrant configuration. I want to access to the vagrant machine, switch to superuser and then launch some commands. How can I do this in one shot or ...
  • 101
0 votes
1 answer
1k views

Error trying to use Vagrant up with Virtual Box

I have installed homestead with Vagrant in my MacOS. I have installed all with Virtual Box, but when i try to use vagrant up command in my terminal for running Virtual Machine appear this error: ...
0 votes
1 answer
2k views

VirtualBox is complaining that kernel module is not loaded after vagrant up run

I tried to run vagrant up command in linux terminal then facing these following errors : The provider 'virtualbox' that was requested to back the machine 'default' is reporting that it isn't usable ...
  • 153
0 votes
0 answers
216 views

How can I answer "Yes" to an apache installation using Vagrantfile for automatic creation of a VM?

# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.define :nodo1 do |nodo1| nodo1.vm.box = "debian/buster64" nodo1.vm.hostname = "nodo1" nodo1.vm....
1 vote
1 answer
2k views

VirtualBox isn't working correctly on Windows 10 bash/linux subsytem

I've using/on Windows10 v1903. WSL: GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu). Ubuntu 18.04.3 Inside windows10, I ran bash (ran command prompt as an Admin, then > bash). Inside Bash, I'...
0 votes
2 answers
223 views

How to deal with failing Vagrant plugin updates?

Just now: $ vagrant plugin update Updating installed plugins... Fetching public_suffix-3.1.1.gem Fetching vagrant-lxd-0.4.2.gem Traceback (most recent call last): 19: from /opt/vagrant/embedded/...
  • 49.4k
0 votes
1 answer
258 views

unable to connect with localhost (11.213.234.24) on port 9200 from vagrant

I am running vagrant from a virtual box with centos. Trying to connect my localhost on port 9200 from vagrant by using (curl -X GET 'http://11.213.234.24:9200'). Getting below error curl: (7) couldn'...
1 vote
0 answers
100 views

Why do I have two interfaces on my VM?

For one of my projects,I cretead Vm with standard Vagrantfile,by defining private IP Vagrantfile hosts = { "n1" => "192.168.77.10", "n2" => "192.168.77.11", "n3" => "192.168.77.12", "n4" =&...
-1 votes
1 answer
113 views

Virtual Box, Vagrant, Docker - vmdk ssh damaged?

CentOS 7 host o/s, guest o/s. VirtualBox-6.0-6.0.4_128413_el7-1.x86_64 Virtualbox Guest Additions 6.0.4 Host kernel 3.10.0-957.1.3.el7.x86_64 Guest kernel 3.10.0-957.10.1.el7.x86_64 Guest file ...
1 vote
0 answers
131 views

Vagrant: Problem with vagrant ssh when sha-1 key is in .ssh/config for unrelated host

I am using Vagrant to create hosts in network simulations. Recently, I re-installed an old pet-computer (ACME Foxboard, if you're interested) that still ran a very old Linux version. So old, that it ...
  • 3,672