$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
default: The Berkshelf shelf is at "/Users/robinho/.berkshelf/vagrant-berkshelf/shelves/berkshelf20141121-64754-135yo16-default"
==> default: Sharing cookbooks with VM
There are errors in the configuration of this machine. Please fix
the following errors and try again:
Berkshelf:
* berksfile_path must be set
$ ls -l
total 136
-rw-r--r-- 1 robinho staff 74 Nov 20 10:28 Berksfile
-rw-r--r-- 1 robinho staff 161 Nov 20 10:28 Berksfile.lock
-rw-r--r-- 1 robinho staff 1093 Nov 20 10:28 README.md
-rw-r--r-- 1 robinho staff 726 Nov 21 12:40 Vagrantfile
...
$ chef --version
Chef Development Kit Version: 0.3.5
$ berks --version
3.2.1
$ vagrant version
Installed Version: 1.6.5
Latest Version: 1.6.5
You're running an up-to-date version of Vagrant!
$ vagrant plugin list
vagrant-berkshelf (4.0.0)
vagrant-cachier (1.1.0)
vagrant-hostmanager (1.5.0)
vagrant-login (1.0.1, system)
vagrant-omnibus (1.4.1)
vagrant-share (1.1.2, system)
vagrant-vbguest (0.10.0)
$ uname -a
Darwin robinho.local 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "hashicorp/precise64"
config.vm.provider :lxc do |lxc, override|
override.vm.box = "precise64"
override.vm.box_url = "https://vagrantcloud.com/fgrehm/precise64-lxc/version/2/provider/lxc.box"
lxc.backingstore = 'none'
end
config.omnibus.chef_version = :latest
config.berkshelf.enabled = true
config.vm.network "forwarded_port", guest: 3306, host: 3306
config.vm.provision "chef_solo" do |chef|
chef.add_recipe "apt"
chef.add_recipe "mysql::server"
end
end
Vagrantfile
Berkfile