vagrantfile

Vagrant Config Error - “A box must be specified.”

余生长醉 提交于 2019-12-09 05:23:05
问题 The boxes were working fine. Then I halted one (the only one running at the time) and now I can't get either of them back up. Running vagrant up [name] gives me the following error, regardless of which I pick or whether I leave it at vagrant up for them both to come up: There are errors in the configuration of this machine. Please fix the following errors and try again: vm: * A box must be specified. Running latest version of Vagrant (1.7.4). Here is my Vagrantfile in its entirety, comments

How to package synced folder in vagrant box

爱⌒轻易说出口 提交于 2019-12-08 20:46:27
问题 What I want and achieved so far: I want to create a custom vagrant box including a configuration and an application to reuse it in different client or serve environments. Specifically I managed to create vagrant box, based on Ubuntu (precise/64), that has node.js installed, and package it on my dev machine with vagrant package my-box --output filename.box I am able to copy the filename.box to a remote server and vagrant up the box there. Node.js is installed within the vagrant box as expected

Getting The box 'hashicorp/precise32' could not be found on firing 'vagrant up' from terminal in ubuntu

痞子三分冷 提交于 2019-12-08 17:28:28
问题 I have installed Vagrant and once I am inside my project folder from the terminal I fire the following commands: vagrant box add hashicorp/precise32 http://files.vagrantup.com/precise32.box Output: [vagrant] Downloading with Vagrant::Downloaders::HTTP... [vagrant] Downloading box: files.vagrantup.com/precise32.box [vagrant] Downloading box: hashicorp-files.vagrantup.com/precise32.box [vagrant] Extracting box... [vagrant] Verifying box... [vagrant] Cleaning up downloaded box... vagrant init

Vagrant box: default: Warning: Connection timeout. Retrying

我与影子孤独终老i 提交于 2019-12-08 17:06:53
问题 I'm having trouble getting vagrant box running. I tried the solution in this thread: Vagrant stuck connection timeout retrying. No luck there. I also tried increasing the value of config.vm.boot_timeout. No luck either. Please help! $ vagrant destroy && vagrant up default: Are you sure you want to destroy the 'default' VM? [y/N] y ==> default: Forcing shutdown of VM... ==> default: Destroying VM and associated drives... ==> default: Running cleanup tasks for 'shell' provisioner... ==> default

Create two disks for multiple environment machines in Vagrant

China☆狼群 提交于 2019-12-08 09:35:12
问题 I'm going to create a multiple environments machines with Vagrant. Here is the VagrantFile I'm trying to configure. I would like to instantiate seven machines connected them across a private networks. Every of this one should have two disks. I have found in Vagrant documentation the VBoxManage that expose the createhd command. I'm not sure where should I place this command. Inside every machine block or inside virtual provider block config? Vagrant.configure(2) do |config| config.vm.provision

Run Python script in Vagrant

試著忘記壹切 提交于 2019-12-07 19:27:26
This is a dumb question but please help me. Q. How do I run Python script that is saved in my local machine? after vagrant up and vagrant ssh , I do not see any Python file in the VM. Then what if I want to run Python scripts that are saved in my Mac? I do not want to copy and paste them manually using vim. How would you run Python script in Vagrant ssh? On your Guest OS there will be a folder under / called /vagrant/ this will be all the files and directories under the directory on your host machine that contains the .VagrantFile If you put your script in that folder they will be shared with

Overriding Cookbook Attribute in Vagrantfile Custom JSON Data

余生颓废 提交于 2019-12-07 13:51:20
问题 How do you access node.override using chef.json in a Vagrant file? For example, using vagrant-berkshelf , I'm trying to install a particular Maven version based on Custom JSON Data in the Vagrantfile : chef.json = { 'maven' => { 'version' => '3.0.5' } } cookbooks\maven_custom\attributes\default.rb default['maven']['version'] = "3.2.1" cookbooks\maven_custom\recipes\default.rb Chef::Log.info(node['maven']['version']) When I run vagrant provision , the following gets printed out: 3.2.1

Centos7 with private network lost fixed IP

℡╲_俬逩灬. 提交于 2019-12-07 02:32:05
问题 I've a network issue with a centos7 vagrant box. When I setup a private network, with fixed IP, this one is well binding first, but get lost after some seconds/minutes. vagrant up ==> default: Forcing shutdown of VM... ==> default: Destroying VM and associated drives... ==> default: Running cleanup tasks for 'shell' provisioner... Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'sfeirbenelux/centos7'... ==> default: Matching MAC address for NAT

How to fix Vagrant error: `private_key_path` file must exist:

亡梦爱人 提交于 2019-12-07 01:56:49
问题 I've been using PuPHPet to create virtual development environments. Yesterday I generated a config file for a new box. When I try to spin it up using the vagrant up command, I get the following error message: C:\xx>vagrant up Bringing machine 'default' up with 'virtualbox' provider... There are errors in the configuration of this machine. Please fix the following errors and try again: SSH: * private_key_path file must exist: P://.vagrant.d/insecure_private_key I came across this question and

Why won't Ansible mount Vagrant remote NFS share

亡梦爱人 提交于 2019-12-06 14:56:21
My Ansible playbook is raising an error when I try to execute the mount module: Error mounting 192.168.33.1:/Users/me/playbooks/site1/website: mount.nfs: remote share not in 'host:dir' format The code directory is mounted: $ vagrant ssh -c "mount | grep http" 192.168.33.1:/Users/me/playbooks/site1/website on /srv/http/site1.com type nfs (...) Vagrantfile: Vagrant.configure("2") do |config| config.vm.box = "debian/jessie64" config.vm.network "forwarded_port", guest: 80, host: 8080 config.vm.network "forwarded_port", guest: 443, host: 8443 config.vm.network "private_network", ip: "192.168.33.10"