- 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
idwithout 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
Vagrantfileof 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'