# Knife server create

**URL:** <https://discourse.chef.io/t/knife-server-create/5064>\
**Category:** Chef Infra (archive)\
**Created:** [February 22, 2014, 9:54pm UTC](https://discourse.chef.io/t/knife-server-create/5064 "2014-02-22T21:54:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JJ\_Asghar](https://avatars.discourse-cdn.com/v4/letter/j/e99b99/32.png) [@JJ\_Asghar](https://discourse.chef.io/u/JJ_Asghar)\
**Post date:** [February 22, 2014, 9:54pm UTC](https://discourse.chef.io/t/knife-server-create/5064/1 "2014-02-22T21:54:04Z")

</div>

I’m attempting to write some wrappers around knife server create. (ideally knife rackspace knife ec2 and knife openstack).

My question is, is the output from knife server create stdout? Stderr? Is there a way to change it?

Best Regards,  
JJ Asghar  
e: [jj.asghar@peopleadmin.com](mailto:jj.asghar@peopleadmin.com) | c: 512.619.0722 | o: 512.977.5876

---

<div class="post-metadata">

**Author:** ![Joe\_Nuspl](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/joe_nuspl/32/3243_2.png) [@Joe\_Nuspl](https://discourse.chef.io/u/Joe_Nuspl)\
**Post date:** [February 22, 2014, 11:51pm UTC](https://discourse.chef.io/t/knife-server-create/5064/2 "2014-02-22T23:51:00Z")

</div>

Would you be able to use 'knife exec’ ? This eliminates parsing issues because you are manipulating Chef objects themselves.

```
Joe

```

On Feb 22, 2014, at 1:54 PM, JJ Asghar [jj.asghar@peopleadmin.com](mailto:jj.asghar@peopleadmin.com) wrote:

> I’m attempting to write some wrappers around knife server create. (ideally knife rackspace knife ec2 and knife openstack).
> 
> My question is, is the output from knife server create stdout? Stderr? Is there a way to change it?
> 
> Best Regards,  
> JJ Asghar  
> e: [jj.asghar@peopleadmin.com](mailto:jj.asghar@peopleadmin.com) | c: 512.619.0722 | o: 512.977.5876

---

<div class="post-metadata">

**Author:** ![DV1](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/dv1/32/186_2.png) [@DV1](https://discourse.chef.io/u/DV1)\
**Post date:** [February 24, 2014, 7:42pm UTC](https://discourse.chef.io/t/knife-server-create/5064/3 "2014-02-24T19:42:47Z")

</div>

For Cloudstack we're using the following gem which allows us to call a  
special knife command to create a VM and then bootstrap it with Chef  
all in one take. I think this is the best approach to take when adding  
functionality to knife.

> **[GitHub - CloudStack-extras/knife-cloudstack](https://github.com/CloudStack-extras/knife-cloudstack)**
>
> Contribute to CloudStack-extras/knife-cloudstack development by creating an account on GitHub.

On Sat, Feb 22, 2014 at 3:51 PM, Joe Nuspl [nuspl@nvwls.com](mailto:nuspl@nvwls.com) wrote:

> Would you be able to use 'knife exec’ ? This eliminates parsing issues  
> because you are manipulating Chef objects themselves.
> 
> Joe
> 
> On Feb 22, 2014, at 1:54 PM, JJ Asghar [jj.asghar@peopleadmin.com](mailto:jj.asghar@peopleadmin.com) wrote:
> 
> I’m attempting to write some wrappers around knife server create. (ideally  
> knife rackspace knife ec2 and knife openstack).
> 
> My question is, is the output from knife server create stdout? Stderr? Is  
> there a way to change it?
> 
> Best Regards,  
> JJ Asghar  
> e: [jj.asghar@peopleadmin.com](mailto:jj.asghar@peopleadmin.com) | c: 512.619.0722 | o: 512.977.5876

--  
Best regards, Dmitriy V.
