- Run the following command and copy the ID of your VM
VBoxManage list vms
=> "virtualMachine" {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
- Go to the Vagrant project configuration folder
cd .vagrant/machines/default/virtualbox
- Create a file called
id
without a newline but the ID of your VMxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
echo -n 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' > id
- In the directory where your
Vagrantfile
of the associated VM is located, run Vagrant with new config
vagrant up
Really useful. Thanks!