Synced folder in vagrant is not syncing in realtime

In your Vagrantfile the synced folder type is default vboxsf, however, in the vagrant up stdout, it is showing rsync type, I think you need to fix it in the config file. Assume that you are using rsync type, you should have the following in your Vagrantfile Vagrant.configure(“2”) do |config| config.vm.synced_folder “.”, “/vagrant”, type: “rsync”, … Read more

vagrant up: Got different reports about installed GuestAdditions version

Possibly too late for OP but in case it helps anyone else, comments in the vagrant-vbguest plugin project on GitHub suggest the additions are installed correctly but reported incorrectly. Updating to the latest version fixed it for me: vagrant plugin update Updating installed plugins… Updated ‘vagrant-vbguest’ to version ‘0.14.2’!

Install MySQL with ansible on ubuntu

When mysql-server is installed headlessly, there’s no password. Therefore to make .my.cnf work, it should have a blank password line. Here’s what I tested with for a .my.cnf: [client] user=root password= It’s also slightly strange to put .my.cnf in your vagrant user directory as owned by root and only readable as root. After ensuring the … Read more

Install Oh My Zsh on a Vagrant Box as part of the bootstrap process

Found the solution: # Added zsh shell. sudo apt-get install zsh wget –no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O – | sh sudo chsh -s /bin/zsh vagrant zsh As an nice addition, so that your terminals don’t look too similar on the different boxes # Change the oh my zsh default theme. sed -i ‘s/ZSH_THEME=”robbyrussell”/ZSH_THEME=”3den”/g’ ~/.zshrc

A better alternative to Vagrant

Vagrant uses virtualbox as the virtualization layer, so you can start a vagrant vm using the gui. Add the following to your VagrantFile. config.vm.boot_mode = :gui Also take a look at sahara as it lets you treat it more like a sandbox with quick rollbacks, etc.

chef-solo ssl warning when provisioning

This warning was introduced in Chef 11.12.0. See the release notes for details: When ssl_verify_mode is set to :verify_none, Chef will print a warning. Use knife ssl check to test SSL connectivity and then add ssl_verify_mode :verify_peer to your configuration file to fix the warning. Though :verify_none is currently the default, this will be changed … Read more