Knife ec2 ssh and windows 2008


#1

Hi,

I’m just starting to do a proof of concept to provision a AWS Windows 2008
environment using Chef but I’m having some problems which I was hoping someone
could help me with.

So far I have gone through the quick start guides which are really good and
I’ve got to the point where I can spin up an instance using something like:

knife ec2 server create -r “role[webserver]” -I ami-14bb047d --flavor t1.micro
–region us-east-1 -G default -N DanServer

This works but then it gets stuck on:
Waiting for sshd…

I can see that it needs SSH on the server and I presume to get this working I
would need to create a base AMI with something like FreeSSH installed.

So my question is working in the Windows world I’m primarily going to be using
WinRM and it I don’t really want to have SSH and WinRM open.

Is there a better way around this that I’m missing? Can I tell knife not to do
the SSH bootstraping or are there any plans to have an option for WinRM?

Thanks

Dan


#2

Hello Daniel,
Currently knife-ec2 does not support winrm-based bootstrapping ability for
Windows servers. Although there are discussions/pull-requests going on
regarding the optimal way of providing support . Infact, we have worked on
adding this support recently; here is the pull request, I had submitted
recently for the same: https://github.com/opscode/knife-ec2/pull/77 . Also
here is the existing discussion around it :
http://tickets.opscode.com/browse/KNIFE_EC2-87

Alternately you can use my knife-ec2 fork :
https://github.com/chirag-jog/knife-ec2/tree/OC-3428 from which the above
pull request was sent for your POC.

Hope this helps!

Regards*,*
Chirag Jog
Chief Technology Officer,
Clogeny Technologies | http://clogeny.com
(M) 0091-9766619440 | Skype: chirag.jog

On Wed, Nov 7, 2012 at 2:45 PM, daniel.gibbons@rbi.co.uk wrote:

Hi,

I’m just starting to do a proof of concept to provision a AWS Windows 2008
environment using Chef but I’m having some problems which I was hoping
someone
could help me with.

So far I have gone through the quick start guides which are really good and
I’ve got to the point where I can spin up an instance using something like:

knife ec2 server create -r “role[webserver]” -I ami-14bb047d --flavor
t1.micro
–region us-east-1 -G default -N DanServer

This works but then it gets stuck on:
Waiting for sshd…

I can see that it needs SSH on the server and I presume to get this
working I
would need to create a base AMI with something like FreeSSH installed.

So my question is working in the Windows world I’m primarily going to be
using
WinRM and it I don’t really want to have SSH and WinRM open.

Is there a better way around this that I’m missing? Can I tell knife not
to do
the SSH bootstraping or are there any plans to have an option for WinRM?

Thanks

Dan


#3

Hi Chirag,

Thanks for the prompt response! I will definitely try your version with WinRM, can you configure the WinRM port? The company where I am have a policy which runs WinRM on a different port than the default.

Ultimately I would like to spin up a complete web farm environment using Chef, any tips or tools/plugins I should look at appreciated!

Thanks

Dan

From: Chirag Jog [mailto:chirag@clogeny.com]
Sent: 07 November 2012 09:36
To: chef@lists.opscode.com
Cc: Gibbons, Daniel (RBI-UK)
Subject: [chef] Re: knife ec2 ssh and windows 2008

Hello Daniel,
Currently knife-ec2 does not support winrm-based bootstrapping ability for Windows servers. Although there are discussions/pull-requests going on regarding the optimal way of providing support . Infact, we have worked on adding this support recently; here is the pull request, I had submitted recently for the same: https://github.com/opscode/knife-ec2/pull/77 . Also here is the existing discussion around it : http://tickets.opscode.com/browse/KNIFE_EC2-87

Alternately you can use my knife-ec2 fork : https://github.com/chirag-jog/knife-ec2/tree/OC-3428 from which the above pull request was sent for your POC.

Hope this helps!

Regards,
Chirag Jog
Chief Technology Officer,
Clogeny Technologies | http://clogeny.comhttp://clogeny.com/
(M) 0091-9766619440 | Skype: chirag.jog

On Wed, Nov 7, 2012 at 2:45 PM, <daniel.gibbons@rbi.co.ukmailto:daniel.gibbons@rbi.co.uk> wrote:
Hi,

I’m just starting to do a proof of concept to provision a AWS Windows 2008
environment using Chef but I’m having some problems which I was hoping someone
could help me with.

So far I have gone through the quick start guides which are really good and
I’ve got to the point where I can spin up an instance using something like:

knife ec2 server create -r “role[webserver]” -I ami-14bb047d --flavor t1.micro
–region us-east-1 -G default -N DanServer

This works but then it gets stuck on:
Waiting for sshd…

I can see that it needs SSH on the server and I presume to get this working I
would need to create a base AMI with something like FreeSSH installed.

So my question is working in the Windows world I’m primarily going to be using
WinRM and it I don’t really want to have SSH and WinRM open.

Is there a better way around this that I’m missing? Can I tell knife not to do
the SSH bootstraping or are there any plans to have an option for WinRM?

Thanks

Dan

===================== DISCLAIMER ======================
This message is intended only for the use of the person(s)
(“Intended Recipient”) to whom it is addressed. It may contain
information which is privileged and confidential. Accordingly
any dissemination, distribution, copying or other use of this
message or any of its content by any person other than the Intended
Recipient may constitute a breach of civil or criminal law and is
strictly prohibited. If you are not the Intended Recipient, please
contact the sender as soon as possible.

Reed Business Information Limited.
Registered Office: Quadrant House, The Quadrant, Sutton, Surrey, SM2 5AS, UK.
Registered in England under Company No. 151537

=======================================================


#4

Yes, the winrm port is configurable. If you refer the knife-windows README,
it will provide all the information.

Regards*,*
Chirag Jog
Chief Technology Officer,
Clogeny Technologies | http://clogeny.com
(M) 0091-9766619440 | Skype: chirag.jog

On Wed, Nov 7, 2012 at 3:21 PM, Gibbons, Daniel (RBI-UK) <
Daniel.Gibbons@rbi.co.uk> wrote:

Hi Chirag,****


Thanks for the prompt response! I will definitely try your version with
WinRM, can you configure the WinRM port? The company where I am have a
policy which runs WinRM on a different port than the default.****


Ultimately I would like to spin up a complete web farm environment using
Chef, any tips or tools/plugins I should look at appreciated!****


Thanks****


Dan****





From: Chirag Jog [mailto:chirag@clogeny.com]
Sent: 07 November 2012 09:36
To: chef@lists.opscode.com
Cc: Gibbons, Daniel (RBI-UK)
Subject: [chef] Re: knife ec2 ssh and windows 2008****


Hello Daniel,****

Currently knife-ec2 does not support winrm-based bootstrapping ability for
Windows servers. Although there are discussions/pull-requests going on
regarding the optimal way of providing support . Infact, we have worked on
adding this support recently; here is the pull request, I had submitted
recently for the same: https://github.com/opscode/knife-ec2/pull/77 .
Also here is the existing discussion around it :
http://tickets.opscode.com/browse/KNIFE_EC2-87****


Alternately you can use my knife-ec2 fork :
https://github.com/chirag-jog/knife-ec2/tree/OC-3428 from which the above
pull request was sent for your POC.****


Hope this helps!****


Regards*,*****

Chirag Jog****

Chief Technology Officer, ****

Clogeny Technologies | http://clogeny.com ****

(M) 0091-9766619440 | Skype: chirag.jog****


On Wed, Nov 7, 2012 at 2:45 PM, daniel.gibbons@rbi.co.uk wrote:****

Hi,

I’m just starting to do a proof of concept to provision a AWS Windows 2008
environment using Chef but I’m having some problems which I was hoping
someone
could help me with.

So far I have gone through the quick start guides which are really good and
I’ve got to the point where I can spin up an instance using something like:

knife ec2 server create -r “role[webserver]” -I ami-14bb047d --flavor
t1.micro
–region us-east-1 -G default -N DanServer

This works but then it gets stuck on:
Waiting for sshd…

I can see that it needs SSH on the server and I presume to get this
working I
would need to create a base AMI with something like FreeSSH installed.

So my question is working in the Windows world I’m primarily going to be
using
WinRM and it I don’t really want to have SSH and WinRM open.

Is there a better way around this that I’m missing? Can I tell knife not
to do
the SSH bootstraping or are there any plans to have an option for WinRM?

Thanks

Dan****


===================== DISCLAIMER ======================
This message is intended only for the use of the person(s)
(“Intended Recipient”) to whom it is addressed. It may contain
information which is privileged and confidential. Accordingly
any dissemination, distribution, copying or other use of this
message or any of its content by any person other than the Intended
Recipient may constitute a breach of civil or criminal law and is
strictly prohibited. If you are not the Intended Recipient, please
contact the sender as soon as possible.

Reed Business Information Limited.
Registered Office: Quadrant House, The Quadrant, Sutton, Surrey, SM2 5AS,
UK.
Registered in England under Company No. 151537

=======================================================