Questions tagged [vagrant]
Use this tag for questions about Vagrant, an open-source software product for building and maintaining portable virtual development environments.
45
questions
0
votes
1
answer
10
views
vmware/photon with vagrant and virtualbox provider
Im trying to get a vagrant virtualbox vmware/photon up and running but the most basic Vagrantfile emits an error.
Vagrant.configure("2") do |config|
config.vm.box = "vmware/...
0
votes
0
answers
20
views
get no debug on why my role is not triggered from my ansible playbook
I have a Vagrant infra to test ansible roles.
Here is my playbook
luis@spinoza:~/proj/g/infra/mz_devops/vagrant/deb11$ more tests/playbook_test_doc.yml
---
- name: Debug role path content
hosts: all
...
-1
votes
1
answer
78
views
vagrant up command fails to find any box
The issue:
For any vagrant box, whenever I run the vagrant up command, I get the following error:
This even happened when I tried the centos/7 box instead.
What I have tried:
Tried having VirtualBox ...
0
votes
0
answers
327
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 ...
-2
votes
1
answer
358
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
144
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....
1
vote
0
answers
44
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
245
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 ...
0
votes
1
answer
29
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
84
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
57
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, ...
4
votes
0
answers
64
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
133
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 ...
5
votes
2
answers
9k
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
321
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 ...
3
votes
2
answers
4k
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 ...
0
votes
1
answer
297
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
125
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
84
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 ...
1
vote
1
answer
178
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?
1
vote
1
answer
67
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 ...
0
votes
1
answer
36
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 ...
-1
votes
1
answer
73
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 --- ...
1
vote
2
answers
37
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 ...
-1
votes
1
answer
65
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 ...
-1
votes
1
answer
50
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 ...
7
votes
1
answer
993
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 ...
3
votes
1
answer
867
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 ...
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
181
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
201
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 ...
0
votes
1
answer
52
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 ...
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: ...
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) =>...
1
vote
1
answer
125
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
525
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 ...
2
votes
1
answer
150
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
73
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,...
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 ...
3
votes
1
answer
103
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: ...
17
votes
4
answers
24k
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
5k
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 =...
6
votes
1
answer
236
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?
...
8
votes
1
answer
691
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 ...
4
votes
1
answer
592
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 ...