Reboot the virtual machine during backup

I am trying to configure vagrant + chef configuration. One of the provisioning actions requires me to change the locales on the server. When I change the locales, I have to restart the virtual machine or go to it. Any idea if this is possible in Vagrant?

+4
source share
1 answer

I wrote a simple security tool to be able to do just that.

https://gist.github.com/ukabu/6780121

This works for Windows Guest and the VirtualBox provider (can be easily adapted for other operating systems or providers).

With it, you can:

config.vm.provision :chef_solo do |chef| # run list for stuff that needs to be done before a reboot end config.vm.provision :reboot config.vm.provision :chef_solo do |chef| # run list for stuff that needs to be done after a reboot end 
+4
source

All Articles