I tried doing following with the shell provisioner.
KEYFILE=/vagrant/.vagrant/machines/server/virtualbox/private_key
sudo cp -v "${KEYFILE}" /home/vagrant/.ssh/id_rsa
But the problem with this is that the
.vagrant/machines/server/virtualbox/private_key is not available when the
first system calls the shell provisioner. It is however available once the
first system comes up.
I get the following on the first system, but second system works fine.
==> work: cp: cannot stat
`/vagrant/.vagrant/machines/server/virtualbox/private_key': No such file or
directory
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/435ba03b-634a-4ffa-981f-c54728172612%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.