I set up virtual machine with help of Vagrant. Also set up Chef - basic
stuff so it has folder for cookbooks but it ended under tmp folder
instead of usr and building apache2 failed
I don’t know why… Followed Vagrant docs
Here it is what I put under Vagrantfile
Vagrant::Config.run do |config|
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = [“cookbooks”, [:vm, “/usr/local/cookbooks”]]
But before complete boot of my VM I got this error
– v-csc-1: /tmp/vagrant-chef-1/chef-solo-1/cookbooks
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -t vboxsf -o uid=
id -u vagrant,gid=
id -g vagrant v-csc-1
Is it possible to edit cookbooks under tem so I don’t have to destroy VM
every single time and re-edit Vagrantfile?
I am a noob here. So, if you would be so kind and help me to resolve this
Also, if you have any good tutorial how do I set up Virtual machine in a
way that when I ssh to it I see which role that VM has… For example that
it has base role