Skip to content

Instantly share code, notes, and snippets.

@luizventurote
Last active July 26, 2017 02:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save luizventurote/e6428148a6969c4a4b02e8484d844718 to your computer and use it in GitHub Desktop.
Save luizventurote/e6428148a6969c4a4b02e8484d844718 to your computer and use it in GitHub Desktop.
Re-associate a Vagrant project directory with an existing VirtualBox VM
  • Use VBoxManage list vms to get VM id
  • Open folder .vagrant/machines/default/virtualbox
  • Set the new ID on files action_provision and id
  • Remove SSH connection on Vagrantfile
config.ssh.insert_key = false
config.ssh.username = 'vagrant'
config.ssh.password = 'vagrant'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment