vagrant box list does not show boxes I have already added with this script even though I am able to see them in ~/.vagrant.d/boxes:
vagrant-kvm (0.1.9)
vagrant-kvm plugin is installed. Moving on...
vagrant-mutate (1.0.2)
vagrant-mutate plugin is installed. Moving on...
Extracting box...te: 23.7M/s, Estimated time remaining: 0:00:01)
The box you're attempting to add already exists:
Name: ubuntu/vivid64
Provider: virtualbox
Box ubuntu/vivid64 added.
./create-images.sh: line 81: box: command not found
Box ubuntu/vivid64 added.
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- vagrant/box_metadata (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /root/.vagrant.d/gems/gems/vagrant-mutate-1.0.2/lib/vagrant-mutate/box_loader.rb:7:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /root/.vagrant.d/gems/gems/vagrant-mutate-1.0.2/lib/vagrant-mutate/mutate.rb:1:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /root/.vagrant.d/gems/gems/vagrant-mutate-1.0.2/lib/vagrant-mutate.rb:14:in `block in <class:Plugin>'
from /usr/lib/ruby/vendor_ruby/vagrant/registry.rb:27:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/registry.rb:27:in `get'
from /usr/lib/ruby/vendor_ruby/vagrant/cli.rb:28:in `execute'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:484:in `cli'
from /usr/bin/vagrant:127:in `<main>'
Box ubuntu/vivid64 mutated to libvirt format
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- vagrant/box_metadata (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /root/.vagrant.d/gems/gems/vagrant-mutate-1.0.2/lib/vagrant-mutate/box_loader.rb:7:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /root/.vagrant.d/gems/gems/vagrant-mutate-1.0.2/lib/vagrant-mutate/mutate.rb:1:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /root/.vagrant.d/gems/gems/vagrant-mutate-1.0.2/lib/vagrant-mutate.rb:14:in `block in <class:Plugin>'
from /usr/lib/ruby/vendor_ruby/vagrant/registry.rb:27:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/registry.rb:27:in `get'
from /usr/lib/ruby/vendor_ruby/vagrant/cli.rb:28:in `execute'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:484:in `cli'
from /usr/bin/vagrant:127:in `<main>'
Box ubuntu/vivid64 mutated to libvirt format.
Vagrant boxes ready to go:
There are no installed boxes! Use `vagrant box add` to add some.
ubuntu/ ubuntu-vividtest/ vivid/
root@csx-a-qatools-002:/opt/trunk/mythos/images# ls -al ~/.vagrant.d/boxes/
total 20
drwxr-xr-x 5 root root 4096 Oct 12 20:37 .
drwxr-xr-x 7 root root 4096 Oct 12 17:42 ..
drwxr-xr-x 3 root root 4096 Oct 12 19:01 ubuntu
drwxr-xr-x 2 root root 4096 Oct 12 18:41 ubuntu-vividtest
drwxr-xr-x 3 root root 4096 Oct 12 20:37 vivid
The logic I am applying in my scripting relies on vagrant box list to determine if an image is there and not download/modify it again if it exists in the expected state. I need vagrant to see the boxes I add, or I assume not only will the list logic not work, but there is little value in a workaround because if it cannot list them, it also cannot start them.
Any thoughts? I tried to ask in the IRC chat, but even with over 400 people in the room nobody responded.
Thanks.