Closed iffy closed 8 years ago
Hi,
Do you have checkout submodules? It looks you have the chef-repo/
directory but the kali-base
role is missing.
What's the content of chef-repo/roles/
?
You can try a submodule init/update:
git submodule init
git submodule update
If you don't want Chef provisioning you can remove the chef-repo/
directory.
I tried with the git submodule
commands you listed and get this instead:
==> kali: [2016-02-18T10:50:40-05:00] INFO: Forking chef instance to converge...
==> kali: Starting Chef Client, version 12.2.1
==> kali: [2016-02-18T10:50:40-05:00] INFO: *** Chef 12.2.1 ***
==> kali: [2016-02-18T10:50:40-05:00] INFO: Chef-client pid: 1405
==> kali: [2016-02-18T10:50:41-05:00] INFO: Setting the run_list to ["recipe[apt]", "role[kali-base]"] from CLI options
==> kali: [2016-02-18T10:50:41-05:00] INFO: Run List is [recipe[apt], role[kali-base]]
==> kali: [2016-02-18T10:50:41-05:00] INFO: Run List expands to [apt, kali]
==> kali: [2016-02-18T10:50:41-05:00] INFO: Starting Chef Run for kali
==> kali: [2016-02-18T10:50:41-05:00] INFO: Running start handlers
==> kali: [2016-02-18T10:50:41-05:00] INFO: Start handlers complete.
==> kali:
==> kali: Running handlers:
==> kali: [2016-02-18T10:50:41-05:00] ERROR: Running exception handlers
==> kali: Running handlers complete
==> kali:
==> kali: [2016-02-18T10:50:41-05:00] ERROR: Exception handlers complete
==> kali: [2016-02-18T10:50:41-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> kali: Chef Client failed. 0 resources updated in 1.510444876 seconds
==> kali: [2016-02-18T10:50:41-05:00] ERROR: You must specify at least one cookbook repo path
==> kali: [2016-02-18T10:50:41-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
I'll try without chef-repo now.
Ok, now it find the kali-base
role.
You need to download cookbooks dependencies, you can do it with the rake
command (Note: you will need rake
and berkshelf
gems):
rake
This will download cookbooks deps in cookbooks/
directory which is used as the cookbook path for chef-solo
.
You can also find install instructions here: https://github.com/Sliim/pentest-env/wiki/Installation
Oh, okay... the README deceived me :)
Hmm ok, I will improve it! Thanks.
Here's what I did:
And here's the abbreviated output of
vagrant up kali
: