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
2 answers
30 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 ...
user avatar
  • 95
0 votes
0 answers
23 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 ...
user avatar
  • 439
0 votes
0 answers
11 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 ...
user avatar
0 votes
0 answers
48 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),...
user avatar
0 votes
0 answers
7 views

"vagrant halt vm1" takes 100 CPU seconds

I have been unable to find if this is normal behaviour. On my system the second: vagrant halt vm1 vagrant halt vm1 takes 100 CPU seconds for a VM that is already halted. Is this normal?
user avatar
  • 29.5k
1 vote
1 answer
351 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 ...
user avatar
  • 325
1 vote
1 answer
1k 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 ...
user avatar
  • 311
0 votes
0 answers
34 views

Why does the VirtualBox Guest Additions kernel need to be rebuilt every time I bring vagrant up?

Even though Guest Additions is updated to the latest version, when I vagrant up I get: GuestAdditions seems to be installed (6.1.18) correctly, but not running. update-initramfs: Generating /boot/...
user avatar
  • 319
0 votes
0 answers
15 views

Vagrant config network between Docker provide and VirtualBox provide

I am running VirtualBox via Vagrant: config.vm.define "build" do |build| build.vm.box = "ubuntu/trusty64" build.vm.provider "virtualbox" build.vm.network "...
user avatar
1 vote
0 answers
42 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 ...
user avatar
0 votes
0 answers
50 views

I can't configure persistent default routes on debian VMs with Ansible and Vagrant

My scenario is the following Those 2 VMs are automatically created with Vagrant, and then configured with Ansible. For the moment, I've been able to delete and add the desired default route with the ...
user avatar
1 vote
1 answer
95 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. ...
user avatar
0 votes
0 answers
54 views

Vagrant: Generate Ansible inventory without running a playbook?

I'm using Vagrant to set up a small group of virtual machines. Because of limitations in the way vagrant handles Ansible provisioning, I'd like to run my playbooks by hand after vagrant up is complete....
user avatar
  • 24.1k
0 votes
0 answers
54 views

What is a good way to deal with vagrant box CentOS/7 partition scheme which comes with xfs file system full size 40GB which cannot shrink size?

こんにちは、I install vagrant box CentOS/7 that default disk size is 40GB https://app.vagrantup.com/centos/boxes/7 on VM Virtual box and then I resize the disk to 80GB so I have unallocated space 40GB to ...
user avatar
  • 1
-1 votes
1 answer
103 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 ...
user avatar
  • 1
3 votes
1 answer
311 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 ...
user avatar
0 votes
1 answer
166 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): ...
user avatar
  • 23
1 vote
1 answer
605 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 ...
user avatar
1 vote
1 answer
345 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 ...
user avatar
  • 113
0 votes
1 answer
350 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:...
user avatar
  • 103
0 votes
1 answer
169 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 --...
user avatar
1 vote
0 answers
38 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 ...
user avatar
  • 1,137
3 votes
2 answers
3k 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 '...
user avatar
1 vote
1 answer
254 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 ...
user avatar
  • 29.5k
2 votes
0 answers
843 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 /...
user avatar
1 vote
0 answers
96 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....
user avatar
0 votes
0 answers
40 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)
user avatar
-1 votes
1 answer
784 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/...
user avatar
0 votes
1 answer
101 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 ...
user avatar
  • 514
0 votes
2 answers
249 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/...
user avatar
  • 121
4 votes
1 answer
6k 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. ...
user avatar
  • 633
0 votes
1 answer
556 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 ...
user avatar
  • 101
0 votes
1 answer
943 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: ...
user avatar
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 ...
user avatar
  • 143
0 votes
0 answers
172 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....
user avatar
1 vote
1 answer
1k 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'...
user avatar
0 votes
2 answers
191 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/...
user avatar
  • 46.8k
0 votes
1 answer
173 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'...
user avatar
1 vote
0 answers
83 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" =&...
user avatar
-1 votes
1 answer
102 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 ...
user avatar
1 vote
0 answers
127 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 ...
user avatar
  • 3,077
0 votes
1 answer
1k views

Troubles with putty to connect to VM CentOS 7 (Vagrant / Virtualbox)

I've created a VM CentOS7 using Vagrant (2.2.3) and Virtual Box (5.2.24), on Windows 10 in this way (following these instructions ... https://blog.centos.org/2019/02/updated-centos-vagrant-images-...
user avatar
  • 101
0 votes
1 answer
579 views

vagrant network bridge using public static ip

I am using vagrant 2.2.3 version and I want to configure bridge network using static ip address. My code is: Vagrant.configure("2") do |config| config.vm.network "public_network", auto_config: ...
user avatar
1 vote
1 answer
140 views

iptables, rpcbind, nfs (v4) - vagrant cannot mount

The setup debian 9.6 vagrant 2.2.3 VMs are all configured in vagrant as private network with static IPv4 in address space "192.168.3.0/24" as far as I discovered NFSv4 and later is listening to TCP:...
user avatar
0 votes
1 answer
2k views

How do I configure a Vagrant virtual machine with a host name?

I'm trying to use Vagrant to set up an Ubuntu/Apache virtual machine using Virtual Box on a Windows 10 host, and then configure my host machine so that opening the URL magento.dev in my browser pulls ...
user avatar
  • 137
1 vote
0 answers
632 views

How to set VirtualBox disk size to fixed in Vagrantfile?

I've got a Vagrant box which uses the vagrant-disksize plugin to increase the size of a downloaded image. Since some people argue that setting the disk size fixed is going to speed up adding files (...
user avatar
  • 46.8k
1 vote
1 answer
1k views

I'd like to setup a bond0 interface using 2 eth devices in CentOS 7 in VirtualBox?

I would like to set up a CentOS 7.x VM inside of VirtualBox so I can experiment with bonding interfaces. How can I set up this VM so that it has the following interfaces: eth1 (private network - 192....
user avatar
  • 344k
0 votes
1 answer
133 views

How do I sync shared folders to my WordPress directory?

How can I get my scripts in data folder synced to the wordpress themes folder? Currently I've got it set from this: config.vm.synced_folder "./data", "/vagrant_data" to this: config.vm....
user avatar
2 votes
2 answers
17k views

SSH configuration: chown username:group: says invalid user

My Ubuntu16.04.4 server has username: graycodes THE ERROR OUTPUT: chown: invalid user: 'vagrant:vagrant' I'm setting file permissions for OpenSSH. What I'd like is to keep my username as ...
user avatar
0 votes
1 answer
514 views

Homestead run command as root

Over my Homestead configuration, I try to make my after.sh script to auto-configure xdebug so over a box update or re-creation to be able to enfroce my configuration for it without the need to redo it ...
user avatar