We have in our projects a Vagrantfile, which is configured to fetch a metadata json as box_url.
In this metadata json, we list all available boxes (different versions and/or providers) as described here
If we execute vagrant up
, then vagrant create a virtuelbox with name like <currentfoldername>_default_<timestamp>
I set now a custom virtualboxname as follow:
config.vm.provider "virtualbox" do |vb|
vb.name = "my-project (centos-67-x64)"
end
But I want the following virtualbox name:
my-project (centos-67-x64) - 1.0.0
The version should come from the version property in metadata.json.
It is possible? I found no information to this topic and i'm wondering, that no other user, has this problem.
vb.name = "my-project (centos-67-x64)" + config.vm.box_version
– Sebastian Stigler