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
0answers
57 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 ...
0
votes
0answers
143 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
0answers
22 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....
0
votes
0answers
15 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)
0
votes
0answers
4 views

What is an idiomatic way of creating vagrant base bow with a custom kernel module?

I am making a tutorial resource where the participants have to interact with a custom kernel module. In particular I want to stick to vagrant with VirtualBox provider, as it is the tool that the ...
0
votes
0answers
45 views

Vagrant Enable UFW Firewall During Provisioning

I would like to configure the firewall using UFW to allow only connections from the localhost: This is the provisioning section in the Vagrantfile for hashicorp/bionic64: config.vm.provision "...
0
votes
0answers
142 views

Where is the memlock limit in an LXC container from?

In the host shell: $ ulimit -l 65536 $ vagrant ssh --command='ulimit -l' 64 What could cause this difference? Dead ends so far: On the host and the guest /etc/security/limits.conf has no entries ...
-1
votes
1answer
354 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/...
0
votes
0answers
52 views

Vagrantfile fails to run apt commands in order to enable nfs file syncing

On my Vagrantfile I try to share via nfs files between host and guest: Vagrant.configure("2") do |config| config.vm.box = "etable/bionic64" config.vm.box_version = "...
0
votes
0answers
30 views

How to set large disk to vagrant server?

I installed plugin as: vagrant plugin install vagrant-disksize Config Vagrantfile as: Vagrant.configure("2") do |config| config.vm.box = "centos/7" config.disksize.size = '80GB' config.vm....
0
votes
1answer
50 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 ...
0
votes
2answers
114 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/...
1
vote
1answer
2k views

Crontab command missing in Fedora 31

Probably a ridiculously simple question, but I cannot find a thing on this online. I am using vagrant boxes for several tests and in this particular case it is the Fedora 31 box from Bento with ...
0
votes
1answer
177 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 ...
0
votes
1answer
388 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
1answer
573 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 ...
0
votes
0answers
93 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
1answer
919 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
2answers
95 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/...
0
votes
1answer
81 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
0answers
47 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
1answer
80 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
0answers
83 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 ...
1
vote
0answers
293 views

What to put in /etc/sub{u,g}id to run unprivileged containers?

I'm trying to run an unprivileged Vagrant box using LXD, but I can't get the ID mappings to work. First try: $ sudo rm /etc/sub{u,g}id $ echo "root:1000000:65536" | sudo tee /etc/sub{u,g}id ...
0
votes
1answer
921 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-...
0
votes
1answer
315 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: ...
1
vote
0answers
38 views

Ubuntu Server upgrade on Vagrant

I am running Vagrant on Windows with Virtualbox. I have a vagrant base box of Ubuntu 14.04. I tried to upgrade it to 16.04 via ssh. After the upgrade, it requires to restart. Either picking yes or no,...
1
vote
1answer
93 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:...
0
votes
1answer
722 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 ...
1
vote
0answers
467 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 (...
1
vote
1answer
834 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....
0
votes
1answer
107 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....
2
votes
2answers
8k 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 ...
0
votes
1answer
409 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 ...
0
votes
1answer
35 views

downloading git using shell

Im trying to download git using a .sh file for vagrant but when it gives me the prompt to continue, it aborts automatically. This is the contents of my .sh file: #!/usr/bin/env bash sudo apt-get ...
0
votes
1answer
488 views

Vagrant: Is it possible to use Vagrant with VMWare as a provider without paying?

I am learning Vagrant from scratch from a Udemy tutorial. I want to use my centos machine to install everything and run all from there, but they use VirtualBox and in my Centos machine (a dell ...
3
votes
1answer
3k views

How do you change the GRUB2 username & password?

I recently downloaded the official centos/7 Vagrant Cloud VM. While trying to access its GRUB2 menu during a reboot via the e key, I ran into a prompt for a username + password. I was unsuccessful in ...
2
votes
1answer
567 views

How would I edit Vagrantfile so that Vagrant knows to get the .box file from my host?

I'm setting up a development environment with Vagrant. In provisioning a base box, how would I edit Vagrantfile so that Vagrant knows to get the .box file from my host? I've followed the ...
0
votes
1answer
42 views

How to install vagrantbox from a downloaded file

I have decided to install a vagrant box (laravel/homestead) using a downloaded file from atlas on ubuntu 16.04. I ran the following command to install the box (from the downloaded file) by running the ...
0
votes
1answer
460 views

Custom vagrant box for libvirt and ssh

I have followed this instruction and tried to prepare my own vagrant box: how to create custom vagrant box from libvirt/kvm instance? Unfortunately I am facing one issue. Vagrant up hangs on: ==> ...
-1
votes
1answer
528 views

Shell script “apachectl restart” password automation

In a shell/bash script (I use it for vagrant provision), I configure apache2 server and then restart it. But since I use a key file for https, apache asks for a password. How can I automate this and ...
0
votes
1answer
104 views

tcpdump crashing Vagrant box in VMWare Fusion

I deployed both a FreeBSD 10.3 and a OpenBSD 6.2 VM in VMWare Fusion 10 + Vagrant + High Sierra. However, they both hang when running: sudo tcpdump -n port 53 What is happening here?
0
votes
1answer
290 views

not able to shutdown or destroy a crashed Vagrant box

I am using VMWare Fusion 10 + vagrant + High Sierra. I provisioned a vagrant FreeBSD box with: $ vagrant init freebsd/FreeBSD-10.3-RELEASE $ vagrant up --provider vmware_fusion Then I made a stupid ...
2
votes
3answers
1k views

Vagrant: VMware “vmnet” devices are failing to start

I have just installed the 'vagrant-vmware-fusion' 5.0.4 official plug-in from HashiCorp, in Vagrant. I am using Vagrant with VMWare Fusion 10 running in High Sierra. However, when doing the vagrant ...
0
votes
1answer
66 views

Read content of MS Windows shortcut from within VirtualBox

I have setup (using vagrant) a VirtualBox machine with a shared directory. I can read text files from the /media/sf_vagrant just fine. However I cannot cat the content of a file that I can only ...
0
votes
1answer
1k views

Install Pi-Hole without user interaction?

I would like to install Pi-Hole automatically inside Vagrant (Virtual Box). Therefore, inside an automated script, it has to run to box start. Unfortunately, normally, you have to answer multiple ...
2
votes
2answers
1k views

VirtualBox (5.2) installation issue / guest additions for metasploitable3

I am having issues installing virtualbox on my kali-rolling dist (Linux kali 4.12.0-kali1-amd64 #1 SMP Debian 4.12.6-1kali6 (2017-08-30) x86_64 GNU/Linux). My main goal is to setup metasploitable3 (...
1
vote
1answer
104 views

Background check a Box in the Vagrant Box Catalog

Looking through the Vagrant Box Catalog I am wondering how one can obtain more information about certain available 'boxes' (images). There are profile pages, but often they are very sparse. Examples:...
2
votes
0answers
1k views

Building a box with packer that runs on vagrant-libvirt

I would like to build a debian stretch to run on vagrant with the libvirt provider. I have tried building from scratch and also with packer and the best I get is a OS not found error on the reboot or ...
2
votes
2answers
3k views

No usable default provider could be found for your system (VM not recognized)

I am having problems with Vagrant,it does not recognize Oracle VM When I try: $ vagrant up No usable default provider could be found for your system. Vagrant relies on interactions with 3rd party ...