# Knife with vSphere

**URL:** <https://discourse.chef.io/t/knife-with-vsphere/3896>\
**Category:** Chef Infra (archive)\
**Created:** [April 3, 2013, 3:57pm UTC](https://discourse.chef.io/t/knife-with-vsphere/3896 "2013-04-03T15:57:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Unni\_Sathyarajan](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/unni_sathyarajan/32/562_2.png) [@Unni\_Sathyarajan](https://discourse.chef.io/u/Unni_Sathyarajan)\
**Post date:** [April 3, 2013, 3:57pm UTC](https://discourse.chef.io/t/knife-with-vsphere/3896/1 "2013-04-03T15:57:28Z")

</div>

Hi Friends,

I want to create the VMware VMs upon demand using Chef but I couldnt find a  
clear picture on how to configure the same (I have experience using Chef with  
AWS - using it for a year now) , is there any support documents or links that  
anyone could share with me giving step by step procedure of chef setup using  
VMware Virtualization.

Can Knife OVH be used with VMware ? ([https://github.com/Estebita/knife-ovh](https://github.com/Estebita/knife-ovh))

Does Knife-vsphere provide all functionalities like knife with aws ec2 instance  
such create a new vm, run runlists on vm, provision storage and memory etc.

Any resources on best practices when using Chef along with VMware are Welcome!!

Thanks  
Unni

---

<div class="post-metadata">

**Author:** ![Gourav\_Shah](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/gourav_shah/32/386_2.png) [@Gourav\_Shah](https://discourse.chef.io/u/Gourav_Shah)\
**Post date:** [April 3, 2013, 4:07pm UTC](https://discourse.chef.io/t/knife-with-vsphere/3896/2 "2013-04-03T16:07:11Z")

</div>

Unni,

You could use knife vsphere plugin to integrate with vsphere.

> **[GitHub - chef/knife-vsphere: Chef knife plug-in for VMware vSphere](https://github.com/chef/knife-vsphere)**
>
> Chef knife plug-in for VMware vSphere. Contribute to chef/knife-vsphere development by creating an account on GitHub.

If you have knife client configured, all you need to do is ,

- install knife-vsphere gem
- configure knife.rb with vsphere host and credentials

Once you do that, you should be able to provision vsphere vms the way you  
would do with knife ec2 plugin. It lets you provision, delete vm with  
custom configs such as memory size, no. of cpus, data stores etc.

Thanks  
Gourav

On Wed, Apr 3, 2013 at 9:27 PM, [unnisathya88@gmail.com](mailto:unnisathya88@gmail.com) wrote:

> Hi Friends,
> 
> I want to create the VMware VMs upon demand using Chef but I couldnt find a  
> clear picture on how to configure the same (I have experience using Chef  
> with  
> AWS - using it for a year now) , is there any support documents or links  
> that  
> anyone could share with me giving step by step procedure of chef setup  
> using  
> VMware Virtualization.
> 
> Can Knife OVH be used with VMware ? ([GitHub - alexis-gruet-deel/knife-ovh](https://github.com/Estebita/knife-ovh)  
> )
> 
> Does Knife-vsphere provide all functionalities like knife with aws ec2  
> instance  
> such create a new vm, run runlists on vm, provision storage and memory etc.
> 
> Any resources on best practices when using Chef along with VMware are  
> Welcome!!
> 
> Thanks  
> Unni

---

<div class="post-metadata">

**Author:** ![Unni\_Sathyarajan](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/unni_sathyarajan/32/562_2.png) [@Unni\_Sathyarajan](https://discourse.chef.io/u/Unni_Sathyarajan)\
**Post date:** [April 3, 2013, 4:34pm UTC](https://discourse.chef.io/t/knife-with-vsphere/3896/3 "2013-04-03T16:34:01Z")

</div>

Hi Gourav Shah,

thanks for the reply , I have experience using knife with ec2 but new to  
VMware so I am not sure if Knife-vSphere commands could meet my specific  
requirements before I commit and spend time configure it , could you please  
let me know if the following are feasible with knife-vSphere :

1. Provision a VM using a knife plugin where we can provide parameters for  
the VM. Since there are routines available for vshpere.

2. I need to create a windows 2008 VM, assign a public IP to it & add to a  
windows domain

3. create a dashboard when above 2 are done so that provisioning can be  
done.

Also does vCentre got any role between the configuration of chef , vSphere,  
knife-vSphere etc

thanks alot  
Unni

On Wed, Apr 3, 2013 at 9:37 PM, Gourav Shah [gs@initcron.org](mailto:gs@initcron.org) wrote:

> Unni,
> 
> You could use knife vsphere plugin to integrate with vsphere.  
> [GitHub - chef/knife-vsphere: Chef knife plug-in for VMware vSphere](https://github.com/ezrapagel/knife-vsphere)
> 
> If you have knife client configured, all you need to do is ,
> 
> - install knife-vsphere gem
> - configure knife.rb with vsphere host and credentials
> 
> Once you do that, you should be able to provision vsphere vms the way you  
> would do with knife ec2 plugin. It lets you provision, delete vm with  
> custom configs such as memory size, no. of cpus, data stores etc.
> 
> Thanks  
> Gourav
> 
> On Wed, Apr 3, 2013 at 9:27 PM, [unnisathya88@gmail.com](mailto:unnisathya88@gmail.com) wrote:
> 
> > Hi Friends,
> > 
> > I want to create the VMware VMs upon demand using Chef but I couldnt find  
> > a  
> > clear picture on how to configure the same (I have experience using Chef  
> > with  
> > AWS - using it for a year now) , is there any support documents or links  
> > that  
> > anyone could share with me giving step by step procedure of chef setup  
> > using  
> > VMware Virtualization.
> > 
> > Can Knife OVH be used with VMware ? (  
> > [GitHub - alexis-gruet-deel/knife-ovh](https://github.com/Estebita/knife-ovh))
> > 
> > Does Knife-vsphere provide all functionalities like knife with aws ec2  
> > instance  
> > such create a new vm, run runlists on vm, provision storage and memory  
> > etc.
> > 
> > Any resources on best practices when using Chef along with VMware are  
> > Welcome!!
> > 
> > Thanks  
> > Unni
