I have been trying to create and bootstrap a VM from my chefworkstation using
knife-vsphere plugin.
I am able to clone a VM from a template in vsphere environment using the
following command.
knife vsphere vm clone vmname --template templatename --cspec customspecname
But I need to know if the above command creates and bootstraps(install
chef-client on it) a chef node which I believe is not the case. If not how to
bootstrap the vm node using the same command from my worstation. I see a lot of
option to be used in the command in
"https://github.com/ezrapagel/knife-vsphere/blob/master/README.rdoc" but I
need the most basic ones required to bootstrap and register my vm with the chef
server.
any help would be great.
Thanks in advance,
Vignesh
Hi Vignesh,
I haven't tried this yet but knife vsphere vm clone --help shows a
'--bootstrap' option which indicates whether to bootstrap a VM or not.
Hope this helps.
Regards,
Aditya
On Mon, Jun 16, 2014 at 11:25 AM, vickyramuk4u@gmail.com wrote:
I have been trying to create and bootstrap a VM from my chefworkstation
using
knife-vsphere plugin.
I am able to clone a VM from a template in vsphere environment using the
following command.
knife vsphere vm clone vmname --template templatename --cspec
customspecname
But I need to know if the above command creates and bootstraps(install
chef-client on it) a chef node which I believe is not the case. If not how
to
bootstrap the vm node using the same command from my worstation. I see a
lot of
option to be used in the command in
"https://github.com/ezrapagel/knife-vsphere/blob/master/README.rdoc" but
I
need the most basic ones required to bootstrap and register my vm with the
chef
server.
any help would be great.
Thanks in advance,
Vignesh
Hi Aditya,
thanks for the suggestion.It did not help me but when I give this --distro
option as well it bootstraps my node and registers it with the chef server.
Regards,
Vignesh.
On Mon, Jun 16, 2014 at 1:46 PM, Aditya Karanjkar <
aditya.karanjkar@relevancelab.com> wrote:
Hi Vignesh,
I haven't tried this yet but knife vsphere vm clone --help shows a
'--bootstrap' option which indicates whether to bootstrap a VM or not.
Hope this helps.
Regards,
Aditya
On Mon, Jun 16, 2014 at 11:25 AM, vickyramuk4u@gmail.com wrote:
I have been trying to create and bootstrap a VM from my chefworkstation
using
knife-vsphere plugin.
I am able to clone a VM from a template in vsphere environment using the
following command.
knife vsphere vm clone vmname --template templatename --cspec
customspecname
But I need to know if the above command creates and bootstraps(install
chef-client on it) a chef node which I believe is not the case. If not
how to
bootstrap the vm node using the same command from my worstation. I see a
lot of
option to be used in the command in
"https://github.com/ezrapagel/knife-vsphere/blob/master/README.rdoc"
but I
need the most basic ones required to bootstrap and register my vm with
the chef
server.
any help would be great.
Thanks in advance,
Vignesh