Many times we may need to change the Vagrant OS for some reason, there a are many methods. I am documenting here how I did it.
I wanted to change the Ubuntu OS version from 12.04(hashicorp/precise64) to 14.04(ubuntu/trusty64), but
Renamed .vagrant to some thing else, eg old.vagrant
In Vagrantfile set the config.vm.box to “ubuntu/trusty64”
config.vm.box = "ubuntu/trusty64"
That’s it, vagrant will now load the new OS.
Note : if you change the OS image, all your OS setups will lost, you need to reinstall/configure the OS.