chef provisiong by using Vagarnt

81 views Asked by At

I am new to CHEF provisioning. These are steps, I am following to spin-up VMs on Vagrant.

Step 1: Cloned the Git code (https://github.com/chef/chef-provisioning.git)
Step 2: gem install chef-provisioning chef-provisioning-vagrant
Step 3: export CHEF_DRIVER=vagrant

Step 4: export VAGRANT_DEFAULT_PROVIDER=virtualbox
Step 5: chef-client -z vagrant_linux.rb simple.rb

I am not able to figure out the error.

Error executing action converge on resource 'machine[Makeitpossible]'

STDERR:The HGFS kernel module was not found on the running virtual machine. This must be installed for shared folders to work properly. Please install the VMware tools within the guest and try again. Note that the VMware tools installation will succeed even if HGFS fails to properly install. Carefully read the output of the VMware tools installation to verify the HGFS kernel modules were installed properly.

vagrant_linux.rb:

 require 'chef/provisioning/vagrant_driver'

 vagrant_box 'sles11sp3.box' do
        url 'https://jenkins-hzn.eng.vmware.com/tools/vagrant/sles11sp3.box'
 end

 with_driver 'vagrant'

 with_machine_options :vagrant_options => {
     'vm.box' => 'sles11sp3.box'
 }

Simple.rb

 require 'chef/provisioning'

 machine 'Makeitpossible' do
    tag 'itsa_me'
    converge true
 end
0

There are 0 answers