Skip to content

Instantly share code, notes, and snippets.

@BlinkyStitt
Last active August 29, 2015 14:01
Show Gist options
  • Save BlinkyStitt/efa3e2bd87c7d12a5f9c to your computer and use it in GitHub Desktop.
Save BlinkyStitt/efa3e2bd87c7d12a5f9c to your computer and use it in GitHub Desktop.
vagrant 1.6.0 shell error
$ vagrant -v
Vagrant 1.6.0
$ vagrant plugin list
vagrant-aws (0.4.1)
vagrant-login (1.0.1, system)
vagrant-share (1.0.1, system)
vagrant-triggers (0.3.0)
vagrant-vbguest (0.10.0)
vagrant-vbox-snapshot (0.0.4)
$ cat Vagrantfile
Vagrant.configure("2") do |config|
config.vm.provision "shell",
inline: "echo Hello, World"
config.vm.box = "precise"
config.ssh.username = "myuser"
config.ssh.private_key_path = "~/.ssh/id_rsa"
config.vm.provider :aws do |aws, override|
aws.access_key_id = "XXXX"
aws.secret_access_key = "YYYY"
aws.keypair_name = "ZZZZ"
end
end
$ vagrant up --provider virtualbox
WORKS AS EXPECTED
$ vagrant up --provider aws
Bringing machine 'default' up with 'aws' provider...
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1
[fog][WARNING] Unable to load the 'unf' gem. Your AWS strings may not be properly encoded.
==> default: HandleBoxUrl middleware is deprecated. Use HandleBox instead.
==> default: This is a bug with the provider. Please contact the creator
==> default: of the provider you use to fix this.
==> default: Warning! The AWS provider doesn't support any of the Vagrant
==> default: high-level network configurations (`config.vm.network`). They
==> default: will be silently ignored.
==> default: Launching an instance with the following settings...
==> default: -- Type: m1.small
==> default: -- AMI: ami-12345678
==> default: -- Region: us-east-1
==> default: -- Keypair: ZZZZ
==> default: -- Block Device Mapping: []
==> default: -- Terminate On Shutdown: false
==> default: -- Monitoring: false
==> default: -- EBS optimized: false
==> default: Waiting for instance to become "ready"...
==> default: Waiting for SSH to become available...
==> default: Machine is booted and ready for use!
==> default: Rsyncing folder: /private/tmp/foo2/ => /vagrant
==> default: Running provisioner: shell...
There are errors in the configuration of this machine. Please fix
the following errors and try again:
shell provisioner:
* The following settings shouldn't exist: vm
@amiorin
Copy link

amiorin commented May 8, 2014

Same error here with 1.6.1. :-(

@sebgoa
Copy link

sebgoa commented May 8, 2014

Same here :) we should probably file a bug with vagrant

@ichnograph
Copy link

Me too unfortunately. I spend half a day trying to diagnose this error. Still lost though. Does anyone know a workaround?

@sebgoa
Copy link

sebgoa commented May 8, 2014

I opened a bug, feel free to chime in:

hashicorp/vagrant#3712

@multiart
Copy link

multiart commented May 8, 2014

some error for lxc provider

@fgrehm
Copy link

fgrehm commented May 8, 2014

This should be fixed on git after hashicorp/vagrant@1eec62c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment