I am trying to setup my test-kitchen setup with lxc. Lxc is working fine on my machine and i have tested it.
When i try to do kitchen create
i am getting following error.
-----> Starting Kitchen (v1.6.0)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ClientError
>>>>>> Message: Could not load the 'lxc' driver from the load path. Please ensure that your driver is installed as a gem or included in your Gemfile if using Bundler.
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
My .kitche.yml
file is
---
driver:
name: lxc
provisioner:
name: chef_zero
platforms:
- name: test-container
driver_config:
username: ubuntu
password: ubuntu
suites:
- name: default
run_list:
attributes:
This is what i did to setup things.
- Install chefdk.
- Go to a dir and run
kitchen init --driver=kitchen-lxc --create-gemfile
- Run
kitchen create
Also my test-container lxc was present at this point of time.
==> I have also run chef gem install kitchen-lxc
as mentioned in one of answers.
I have no idea why this error is coming. Any pointer in right direction will be very helpful.