Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
19 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
0answers
125 views

vagrant: Error getting repository data for C7.6.1810-base, repository not found

I'm following below steps to create mesos - https://dcos-e2e-cli.readthedocs.io/en/latest/dcos-vagrant-cli.html when I run the command minidcos vagrant create ./dcos_generate_config.sh --agents 0 I ...
1
vote
1answer
15 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 ...
0
votes
0answers
22 views

Vagrant won't start Laravel

How can I start Laravel development using Virtualbox? I tried to install it user@user-Aspire-E1-572:~$ vagrant box list laravel/homestead (virtualbox, 6.4.0) user@user-Aspire-E1-572:~$ vagrant up ...
0
votes
0answers
18 views

How to change official Ubuntu Virtualbox image to SATA controller and SSD?

I'm using the official ubuntu/bionic64 Virtualbox image in Vagrant. When starting it comes up as a spinning disk (HDD) on a SCSI controller. I'd like to change this to be treated as an SSD (aka "...
1
vote
0answers
66 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
votes
0answers
16 views

Vagrant and Encryption

So I have this weird situation were when I run a ubuntu 16.04 vm with vargrant I can't encrypt a drive with luksFormat using cryptsetup. I have LVM setup also. I tried alot of things to try fix it ...
1
vote
1answer
91 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
27 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....
0
votes
1answer
429 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
0answers
39 views

VirtualBox and Python version conflict

I am running Debian (buster) with Cinnamon as window manager. Recent update of this window manager required Python update so my current Python version is 3.6.5-3... but on the other hand virtualbox ...
0
votes
1answer
71 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
21 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
67 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 ...
0
votes
0answers
33 views

Qemu process hangs on stat D

I have several Ubuntu 16.04 VMs running under Ubuntu 16.04 system. For the virtualization I am using qemu and libvirt (and vagrant as a manager). From time to time some guest machines hang and are not ...
3
votes
1answer
316 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 ...
0
votes
0answers
13 views

Vagrant provisioning script ends early

I am attempting to write a provisioning script for vagrant, however, after the following lines, the provisioning script ends early, and does not continue, I am looking for an alternative method or ...
2
votes
1answer
48 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
0answers
20 views

Guest VM GUI foreground when boots up

I am creating Guest VM Rhel 7.2 ( in my case) through Vagrant and provider is Vagrant-libvirt. Command used to boot up :- Vagrant up VM boots up correctly but Guest VM boots up shows in virt-manager ...
0
votes
1answer
24 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
186 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: ==> ...
0
votes
0answers
372 views

vagrant private network configuration on ubuntu

I download minimalCD ubuntu and Ubuntu 16.04.4 LTS. I create my custom vagrant boxes with virtualbox. All steps to the end is same. Both boots up fine. I am trying to configure private_network in ...
0
votes
0answers
19 views

how can I box new vagrant base image?

I normally create a virtualbox and install ubuntu1604 and then package it to create a custom base image.I know that there is another way to do custom base image.It is possible to create from scratch ...
-1
votes
1answer
222 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
57 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
59 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
596 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
31 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
268 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 ...
0
votes
2answers
821 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
81 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
547 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
737 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 ...
0
votes
1answer
178 views

Vagrantfile setup to allow Ansible to SSH in

I have a vagrantfile from a book about Ansible for Devops. The issue I have is that I can SSH into the servers but Ansible cannot. Here is my vagrantfile; # -*- mode: ruby -*- # vi: set ft=ruby ...
0
votes
1answer
40 views

Multiple RHEL local development VMs?

The company I work for is likely going to migrate our servers to Red Hat Enterprise Linux (RHEL). In the past I have been responsible for setting up our development boxes using Vagrant to replicate ...
0
votes
0answers
381 views

New disk on Vagrant vm

Trying to create second disk on a vagrant vm, I used customize in Vagrantfile. However it fails with, * Unknown configuration section 'customize' Figured out I need to install vagrant plugin ...
4
votes
0answers
419 views

Vagrant configure eth0

I started using Vagrant recently to quickly install virtual machines. I noticed that my network configuration isn't perfect, but I can't get it right. This is my Vagrantfile: ENV['...
0
votes
1answer
1k views

Curl localhost from within vagrant VM results in 'Empty reply from server'

I started a deepstream server in a vagrant vm. The server says it's Listening for websocket connections on 0.0.0.0:6020/deepstream The /etc/hosts in the vm: # 0.0.0.0 localhost 127.0.0.1 ...
0
votes
1answer
1k views

How to use Vagrant with VirtualBox AND kvm-qemu installed?

I have an Ubuntu 17.04 machine that has both VirtualBox and libvirt/kvm-qemu installed. Whenever I try to bring up a Vagrant box with the VirtualBox prodiver, I get this error: $ vagrant up Bringing ...
6
votes
2answers
3k views

Vagrant ssh doesn't display command prompt

I have a computer that runs Windows 8.1 and for some projects I use Vagrnat and VirtualBox, however after upgrading VirtualBox and Vagrant, after running Vagrant ssh, vagrant doesn't display the ...
0
votes
0answers
258 views

Laravel Homestead Missing SSH Public Key

My Laravel Homestead installation is missing its public ssh key (id_rsa.pub). I can obviously add this after creating the server (like now), but I want to do it on creation so when I share my ...
1
vote
2answers
4k views

How to update git in centOS 6

I have installed chef workstation on centOS 6 using vagrant. My current git version here is 1.7.1 In the git config --list, it is not accepting push.default = simple. How can I update this git ...
1
vote
1answer
346 views

Can't uninstall ruby gem Vagrant to install Vagrant via RPM

I can't install or reinstall a vagrant on CentOS 7. First, I've followed a tutorial on how to install a Vagrant on CentOS 7 with Ruby & Ruby Gem. After installation, I've typed inside a terminal ...
0
votes
0answers
51 views

Vagrant in Mac Terminal

I installed CentOS vagrant on virtual box through terminal. Is there any command that I can directly switch user to vagrant from terminal?
0
votes
1answer
321 views

How to upload file into File View on Ambari Web?

I am using HDP 2.6 and ambari 2.5. on a 5 node cluster. The cluster was setup with vagrant following these instructions https://cwiki.apache.org/confluence/display/AMBARI/Quick+Start+for+New+VM+Users ...
1
vote
1answer
313 views

Automation of Oracle XE installation with ansible and vagrant - Oracle environment variables not correctly visible?

I am currently trying to automate Oracle Database XE using ansible playbook. Everything with the installation seems to be fine, except for the step in which environment variables for Oracle are set: ...
0
votes
1answer
329 views

Use expect script from Vagrantfile for provisioning - problem with non existing file during execution

Is is possible to use expect script from Vagrantfile for provisioning? It looks like file inside the installOracle.exp script is not there at the proper moment (see error log): spawn "/var/wminst/...
0
votes
1answer
55 views

Lumify installation with error in vagrant as The box 'nrel/CentOS-6.6-x86_64' could not be found

I am trying to install lumify in my vmware workstation as follows. $ cd lumify $ git clone https://github.com/lumifyio/lumify.git $ cd lumify/lumify $ vagrant up demo after running last step vagrant ...
2
votes
2answers
443 views

Vagrant tries to use VirtualBox although I specified libvirt

I would like to use a virtual box with Vagrant using KVM and libvirt on my Fedora 25 system. This has worked already with Fedora 24. When I try to start the machine, it seems to ignore the --provider ...
1
vote
2answers
37 views

About listing virtual disks on debian

I have been using Debian Jessie. I've used vagrant recently. I tried to "vagrant up" a box, but after several failing attempts I gave up. However, I noticed that my free space has shrunk notably. I ...