- 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
In the Vagrantfile put the username and password (only required once), like so:
config.ssh.username = 'vagrant'
config.ssh.password = 'vagrant'