Questions tagged [vagrant]

Use this tag for questions about Vagrant, an open-source software product for building and maintaining portable virtual development environments.

Filter by
Sorted by
Tagged with
0 votes
0 answers
34 views

How to use Vagrant and Vagrantfiles on the beta version of Virtualbox on a Mac with the M1 or M2 chip?

I am trying to recreate some of the previous DevOps projects that I had previously created while using Parallels as my virtualization tool. However, I saw that last month that Oracle released a new ...
  • 1
-2 votes
1 answer
29 views

Minimum laptop requirements for devops learning

I started learning devops technologies, but I encountered a problem with my laptop on the first labs, I cant provision more than 3 VMs in Vagrant, and I found out that my processor is not sufficient, ...
1 vote
1 answer
33 views

How does one perform systems testing against multiple interdependent machines?

I'm looking for a platform that allows me to run tests against multiple, closely-coupled systems. We deploy different products to Red Hat family machines - think Rocky Linux, CentOS, Fedora, RHEL, etc....
  • 11
0 votes
0 answers
32 views

Vagrant and network interfaces

My Vagrant file does not look like it is doing anything special with networking: config.vm.box = "centos/7" config.vbguest.installer_options = { allow_kernel_upgrade: true } config.vm....
  • 43
0 votes
0 answers
18 views

Difference between using the default "config" variable and the vm defined variable

I am new to vagrant and was following a training course and I noticed a subtle difference between how one can run the vagrant provision targeting specific machines based of the contents of the ...
0 votes
0 answers
33 views

getting error when trying to spin a vm using vagrant , is this issue with the box?

Getting this error when trying to spin a new vm using vagrant: >vagrant up swarm-master Bringing machine 'swarm-master' up with 'virtualbox' provider... ==> swarm-master: Box 'GospodinovM/ubuntu-...
1 vote
0 answers
38 views

Even after memeory set to 2048 in Vagrantfile the virtualbox shows 1024 allocated?

I have tried creating VM for 3rd time as docker was failing with segmentation fault due to no memory left. So I destroyed the old vm and increased the memory to 2048 in vagrant file. Vagrant....
1 vote
0 answers
147 views

Packer Ubuntu 21.10 initramfs unpacking failed write error

I'm trying to create a VMI using the official Ubuntu 21.10 iso using Packer and export it to Vagrant box and, if possible, to a simple ISO that I can install manually on another computer. I'm getting ...
  • 123
0 votes
0 answers
11 views

public network and local directory did not get mounted as in virtualbox

I decided to switch from using virtualbox to hyperv on windows 10 professional. I am using vagrant to spin vm . the vagrant file is shown below. VAGRANTFILE_API_VERSION = "2" ...
0 votes
1 answer
21 views

cannot ssh first vm created by multi vm vagrantfile and vm name net getting set & public network not getting created for second vm

I have written a multi-vm vagrant file, first I am not able to ssh using vagrant ssh dnsmasq to the first vm and for second vm the public network is not getting created i.e. after I ssh to pihole vm, ...
1 vote
0 answers
38 views

Security of vagrant boxes - who maintains them?

Is there anywhere to see who a box is maintained by? For example the debian related boxes at https://app.vagrantup.com/debian - are these official images/boxes maintained by "The Debian Project&...
0 votes
0 answers
32 views

How can I provision using Vagrant if I need a system restart in the middle of the provisioning process?

Good day to you all, How can I approach the following case: System: CentOS Stream/7-8; RHEL; Fedora Vagrant up (init a machine) with shell script provisioning as a file. Case: I go for a full update, ...
  • 1
4 votes
0 answers
54 views

How do I get synced_folder to execute after a shell provisoner

So what I think I'm trying to do is pretty simple, I need to execute the following in-order: Run a script that will install via script VBoxLinuxAdditions.run [this is working when I run it by itself] ...
2 votes
1 answer
86 views

vagrant on windows 10 incorrect network configuration on multi-machine setup

I have a problem with vagrant that is running on windows 10 when I deploy centos 8 machines all the machines have eth0 with the same Ip and they cannot communicate with each other the ip 10.0.2.15 ...
  • 23
4 votes
2 answers
6k views

Ansible warning that host key has changed, even though I've taken multiple steps to prevent this warning

I've followed the recommendations I could find to prevent this from happening. I am using Vagrant, but once the boxes are spun, I'd like to do things with the ansible command sometimes. $ grep ...
1 vote
1 answer
276 views

Build Docker Images with Ansible + Vagrant

So I am working on a research project and I am trying to automatically generate specific environments on different virtualization techniques. So, first I made a Vagrantfile that pulls an Ubuntu ...
  • 105
3 votes
2 answers
3k views

Ansible configure and compile in directory

So I have have an Ansible Task that extracts a programs sourcecode zip into a certain directory and is then supposed to compile and install it. The extraction of the zip works fine, but then I need to ...
  • 105
0 votes
1 answer
154 views

Problem with Vagrant : Nothing happens on vagrant up command

Versions Vagrant: 1.9.5 Provider: Virtualbox 5.2.30 Guest: precise32 Host: windows 7 -32bit, build:7600 Powershell: 2.0 Vagrant destroy & up output nothing happens here...just an empty directory ...
2 votes
1 answer
84 views

Understanding Vagrant virtual machine import

I'm building my Windows server 2012 vm with packer and when I'm doing a vagrant up it's failing because the folder name already exists… Here is my json file for packer { "builders": [ { "...
2 votes
1 answer
83 views

Structuring Ansible playbooks for low volume, purpose-built images

I hope this question is not too vague / opinion-based: I need to create and maintain a handful of virtual machines that get packaged up and deployed out to thousands of users, depending on specific ...
  • 265
1 vote
1 answer
74 views

How does Vagrant differ from VirtualBox and similar software, if at all?

Both Vagrant and VirtualBox (or their alternatives) seem to me to virtualize an OS on top of another OS, How do they differ from one another essentially, if at all?
user avatar
1 vote
1 answer
64 views

How frequently do PaaS:VPS agencies upgrade OS_release in comparison to PaaS:shared-webserver?

I know that in a In PaaS:shared-webserver service a user could have the OS of its server environment release_upgraded in 8 or 12 years or so ! For example, I host a few sites on a particular host that ...
user avatar
0 votes
1 answer
34 views

Is Vagrant an operating system by itself?

If Vagrant (and similar software) uses to orchestrate, install and continuously upgrade one or more OSs on a single machine, isn't it some kind of an operating system by itself? Or it actually ...
user avatar
-1 votes
1 answer
71 views

A cloud technology with automatic upgrades of my OS-release and web server release?

I desire a cloud technology that will redund my need of using Vagrant to continuously integrate OS release upgrades (say from Ubuntu 18.04 to 20.04 including all software installed by apt-get --- ...
user avatar
1 vote
2 answers
34 views

Can a 5 US $ VPSE support VAD stack with 2 relatively-small CMSs?

I'm new to DevOps and quite troubled financially but I desire to put websites that I now host on a shared server environment (CetnOS 12.x.x) on some cloud like DigitalOcean or Lindoe (but without ...
user avatar
-1 votes
1 answer
60 views

VAD (Vagrant-Ansible-Docker) stack for Ubuntu and Apache

I'm having trouble establishing a Ubuntu-LAMP environment with continuous integration - I feel lost from the different solutions out there and time and again I fear that my vanilla-Bash Ubuntu-LAMP ...
user avatar
-1 votes
1 answer
48 views

Maximally-self-managed hosting-platforms and OS-and-above containerizators (like Vagrant)

A maximally-self-managed hosting-platform like DigitalOcean/Linode lets a customer quickly create its own VPSE (Virtual Private Server Environment) which includes a common FOSS operating system like ...
user avatar
7 votes
1 answer
718 views

How does Vagrant differ from Ansible and Docker?

I understand that Ansible is a Configuration Management (CM) tool for orchestrating, deploying (and continuously upgrading) software and conf via a special YAML format created for that software, and ...
user avatar
3 votes
1 answer
777 views

How do I automate population of known_hosts and authorized_keys?

This is a question that may be easier answered on askubuntu or, perhaps, serverfault, but it arises in the context of automated provisioning, so I figured that it's more appropriate here. I am ...
  • 265
0 votes
1 answer
1k views

vagrant box tests in gitlab-ci

I have a vagrant box, provisioned with Ansible that needs testing on github pull requests. Is it possible to setup CI test suite for the mirror in gitlab-ci without extra expenses on droplets? Or ...
5 votes
3 answers
165 views

Other tools to provision virtual machines

I've been using vagrant for provisioning virtual machines (Linux only) and so far I've been happy with it. The two things I dislike about it - the hardcoded dependency on the user vagrant as well as ...
5 votes
1 answer
195 views

What is a suitable strategy for provisioning Chef Server through code?

Background I am tasked with setting up a Chef server on our Azure Cloud for a new DevOps automation project. We are using the Resource Manager model for Azure, in case it's relevant. We will likely ...
  • 601
0 votes
1 answer
48 views

Vagrant box take long time to access shared /vagrant folder

I have a vagrant box running on windows 10 hyper-v config.vm.box = "kmm/ubuntu-xenial64" #A standard Ubuntu 16.04 LTS (x64). config.vm.provider "hyperv" Just after provisioning it, it seems to be ...
  • 111
13 votes
3 answers
11k views

How to use Vagrant and Docker-for-Windows on a Hyper-V system?

Back in the day, I was using VirtualBox (VB) and Vagrant (V) to run VMs. Since I installed docker-for-windows (DfW) and run V, VB complains about Hyper-V (HV). [user@localhost ~]$ vagrant up Stderr: ...
  • 12.8k
5 votes
3 answers
1k views

Vagrant inside a VM to control the VM host

Background I have an application which comes with a Vagrant setup that is designed for this usage scenario: Laptop (Windows, Virtualbox host) => edit source code +----> Vagrant VM (Linux) =>...
  • 4,756
1 vote
1 answer
120 views

How to setup testkitchen with ansible-provisioning from localhost for different vagrant-vms?

As pointed out here, testkitchen is in principable usable with ansible if the right plugins are installed. Now I've done all the installing and am at the point, where I wonder, what I missunderstood: ...
1 vote
1 answer
505 views

SSH to VM inside Docker container

I have a Docker image based on Ubuntu Xenial. Inside that container I try to start FreeBSD VM by using Vagrant and VirtualBox (Note: host OS for Docker is VM based on Vagrant and VirtualBox). VM is ...
  • 593
2 votes
1 answer
144 views

Error Vagrant Provisioning with Virtual Box on Fedora

I'm Provisioning Vagrant Box with Virtual-box on Fedora 26. $ vagrant -v Vagrant 1.9.1 $ virtualbox -v virtualbox 5.1 Below is the error; muhammadtaqi@localhost etc]$ vagrant up Bringing machine '...
1 vote
1 answer
72 views

Start dev with purely docker, or something like vagrant (in a to-be-dockerized application)?

I have a Ruby on Rails application that has been around for a while, and implemented completely classical, so far. Everything is fine; but since the number of environments we are deploying to (testing,...
  • 4,756
1 vote
1 answer
41 views

Deploying a set of cloud instances based on a list of parameter differences

Sorry for the general and vague nature of my question. Let me describe with some more detail what I would like to do (or what I think I would like to do). I have a shell script for ubuntu 16.04 ...
  • 113
3 votes
1 answer
96 views

SaltStack and Vagrant adding files

I use file.managed to add a file: /home/vagrant/.bash_profile: file.append: - name: /home/vagrant/.bash_profile - source: salt://config/user/.bash_profile - user: vagrant - group: ...
  • 31
17 votes
4 answers
23k views

How do I configure SSH keys in a Vagrant multi-machine setup?

I have 4 VMs in my Vagrantfile - 3 application servers and an Ansible control host. I only use Vagrant to create the VMs as I provision them manually from the ansible control host because I am still ...
10 votes
3 answers
4k views

Unable to ssh in a multi-machine vagrant environment

I created a three node multi-machine vagrant environment and am having issues ssh'ing from one vagrant vm to another. Here is the Vagrantfile: Vagrant.configure("2") do |config| config.vm.box =...
  • 101
6 votes
1 answer
230 views

What can Vagrant, Puppet, Docker, Chef do for a Full stack Web developer?

First of all let me say that I'm aware of related questions here in SO: Vagrant, Docker, Puppet, Chef Vagrant + puppet + docker chef-server - chef-solo - vagrant - puppet... which is correct for me? ...
user avatar
8 votes
1 answer
664 views

Vagrantfile change with Ansible playbook to control file permission on Vagrant synced folder for Trellis

I use Trellis for my WordPress development. It works great, except I'm finding it hard to change file (or directory) permission within the synced folder. Generally I'm OK with the default permission ...
  • 183
4 votes
1 answer
564 views

How to terminate EC2 instance in Jenkins via Vagrant when job is stopped manually?

I've freestyle jobs which aims to run EC2 instances via Vagrant (vagrant up), however when I cancel the job manually (by clicking X button), the instances on EC2 are still running. How can I make sure ...
  • 7,321