Open rj-reilly opened 9 years ago
got past this and now it seems to fail on opening the box because it fails to download it
[2015-08-19T03:21:27-04:00] ERROR: machine[mario] (@recipe_files::/home/rreilly/chef-repo/cookbooks/provision/cluster.rb line 3) had an error: RuntimeError: vagrant up mario --provider virtualbox failed!
STDOUT:Bringing machine 'mario' up with 'virtualbox' provider...
==> mario: Box 'precise64' could not be found. Attempting to find and install...
mario: Box Provider: virtualbox
mario: Box Version: >= 0
==> mario: Box file was not detected as metadata. Adding it directly...
==> mario: Adding box 'precise64' (v0) for provider: virtualbox
mario: Downloading: precise64
STDERR:An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Couldn't open file /home/rreilly/chef-repo/.chef/vms/precise64
[2015-08-19T03:21:28-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
I have wr on that dir
rreilly@vbox01:~/chef-repo/.chef/vms$ ls -al
total 20
drwxr-xr-x 3 rreilly root 4096 Aug 19 03:27 .
drwxr-xr-x 4 rreilly rreilly 4096 Aug 18 23:24 ..
-rw-r--r-- 1 rreilly root 161 Aug 18 23:24 mario.vm
drwxr-xr-x 3 rreilly root 4096 Aug 18 23:24 .vagrant
-rw-r--r-- 1 rreilly root 107 Aug 18 23:24 Vagrantfile
rreilly@vbox01:~/chef-repo/.chef/vms$
Hi @devilldog,
How did you get past the first issue ? I have the same problem.
Turns out this is caused by the wrapper around vagrant box list
which does not work when there is no box installed.
The trick is to add one.
For example I did a:
vagrant box add hashicorp/precise64
And got rid of that first error.
Hi i have a new ubuntu setup installed chefdk, vagrant, chef-provisioning chef-provisioning-vagrant virtualbox, I can vagrant up no problem but if i use the example at the top of the doc https://github.com/chef/chef-provisioning and I get the following error: [2015-08-18T20:24:00-04:00] INFO: Started chef-zero at chefzero://localhost:8889 with repository at /home/rreilly/chef-repo One version per cookbook