I use Vagrant for Ruby on Rails development on my Mac by setting up a Ubuntu VM. I've had it for a year or so but I know that I have updated many things while in the VM so my original Vagrantfile is out of date as far as my VM is concerned. Now I want to recreate the environment on a new Mac. Is there a way to create or accurately update my Vagrantfile to match my current environment?
2 thoughts on “Build a Vagrantfile from a Previously Created Vagrant VM”
You could try creating a custom base box to use.
\> my original Vagrantfile is out of date as far as my VM is concerned.
(Isn’t that pretty much what Vagrant was created to avoid?)
I’d probably open the VirtualBox interface and do “Export to OVF” and see how close that gets me.