> You should have mentioned your host...
I will (did not feel it is so important). It is Fedora 27, and here is the kernel I am using: 4.14.13-300.fc27.x86_64
And here is small script I wrote, in order to maintain relations between Vagrant and Virtual Box. Please, do note that Vagrant is very aware of Virtual Box (it is an abstraction layer for creating with the generic commands VM, using different underlying VMMs - in this case Virtual Box), and Virtual Box has no "any" idea that some entity above is scavenging its config files and abstracting the commands, making them generic.
Code: Select all
## Print out all the relevant data for the vagrant machine and underlying Virtual Box
## Find Virtual Box VM machine directory
VBOX_IMG_DIR=`vboxmanage list systemproperties | grep "Default machine folder" | cut -b 34-`
echo "Virtual Box VM machine directory: $VBOX_IMG_DIR"
if [ ! -d ".vagrant" ]; then
echo "vagrant machine not created"
exit 1
fi
## Find the UUID of the currently used Virtual Box machine
vbox_uuid=`cat .vagrant/machines/default/virtualbox/id`
echo "The UUID of the currently used Virtual Box machine $vbox_uuid"
## Find the UUID of the currently used vagrant machine
vagrant_uuid=`cat .vagrant/machines/default/virtualbox/index_uuid`
echo "The UUID of the currently used vagrant machine $vagrant_uuid"
echo "What vagrant machines are active in the system?"
vagrant box list
echo "What Virtual Box machines are active in the system?"
vboxmanage list vms
And the results on my host (Fedora 27) from executing the script above:
[vuser@localhost fedora27]$ ./info_vm.sh
Virtual Box VM machine directory: /home/vuser/projects2/vagrant/VMs
The UUID of the currently used Virtual Box machine d8a47d82-5808-4089-94dd-1e6cf2a2db89
The UUID of the currently used vagrant machine ed3ef76bfa2a45c1973870825e685138
What vagrant machines are active in the system?
debian/stretch64 (virtualbox, 9.3.0)
generic/fedora27 (virtualbox, 1.3.40)
What Virtual Box machines are active in the system?
"cip-b_at_d-generic_default_1516618400501_81341" {a84e36bd-d2f1-448b-8932-7eff467fccc7}
"fedora27_default_1516632277842_3407" {d8a47d82-5808-4089-94dd-1e6cf2a2db89}
[vuser@localhost fedora27]$
If anybody needs any advice in these relations [Vagrant -> VBox], I can answer here... Lot of experience last two weeks playing with Vagrant and VBox!
_nobody_