Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am able to create a new server using knife-eucalyptus like so:

knife euca server create

The server gets created but provisioning fails with the following message:

"ERROR: Errno::ENOENT: No such file or directory - /etc/chef/validation.pem"

This is understandable as I presume it is trying to use Chef Server for provisioning. This is the problem. I want to use Chef Solo to provision this server (at least for now).

Is there some way to instruct knife-eucalyptus to provision new servers with Chef Solo?

share|improve this question
up vote 1 down vote accepted

You can use knife-solo. As knife-eucalyptus uses the standard Knife::Bootstrap class which knife-solo monkey patches a bit, you can put knife[:solo] = true into the knife.rb.

Consult the documentation for information how to set up the "kitchen" if you're not familiar with knife-solo yet.

share|improve this answer
I should have mentioned this in my question but I am using Chef Solo to provision. The thing is that knife euca server create creates my server at my EC2 provicer but then fails as mentioned. At that point I have to log into the server, add my SSH key, run knife solo prepare and then run knife solo cook my_client_definition_file.json. What I actually wanted to ask was how to combine all those steps into one (or maybe two... at least I want to avoid having to log in and add the SSH keys). – StFS Mar 3 '14 at 10:18
Ahh... nevermind. I'm an idiot. I just tried your solution and it "works". Only thing is that I should be using some provisioning keypair instead of creating a server with the default keypair. So in short your answer works just fine. – StFS Mar 3 '14 at 10:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.