I have multiple Vagrant boxes, and would like to see what version of what box is running in which directory.
vagrant box list
returns a global list of boxes:
puphpet/centos65-x64 (virtualbox, 1.2.1)
puphpet/centos65-x64 (virtualbox, 2.0)
vagrant global-status
shows directories with providers:
id name provider state directory
--------------------------------------------------
a427238 default virtualbox poweroff /path/to/dir1
fa21751 default virtualbox running /path/to/dir2
But how can I see which Vagrant box version is used in which directory?
grep -ir 'vm.box' path/to/vms 2>&-
and, if using VirtualBox,VBoxManage list vms --long | egrep -i "(^Name:\s{8,})|(^Guest OS:\s)"
puphpet/centos65-x64 (virtualbox, 1.2.1)
as opposed topuphpet/centos65-x64 (virtualbox, 2.0)
rather it just gives you something more generic likeRed Hat (64-bit)
. Thanks though.