In less than obvious fashion, Amazon EC2 Windows Server AMIs reset their hostname on startup due to the Ec2ConfigService. To disable this feature, select ‘EC2ConfigService Settings’ from the start menu, and uncheck the first checkbox under ‘Set Computer Name’
Good one,
This behaviour of Amazon EC2 – Windows based hosts – caused us a lot of headache because our software stack was sensitive to host name changes
Thanks. I hadn’t seen this setting! 🙂
Thanks for the tip! Is there a way to permanently associate an Elastic IP address with an instance too so that I don’t have to associate it each time I start the instance?
Is there a way to make this change programmatically?
Cheers mate! This is what I needed.
Hi btm.geek,
Thanks for the inputs, we’ve been searching for this answer since last year.
Maraming Salamat! (Thank you very much!)
What do you mean by “Start Menu”? I’m not finding this or a reference to ‘EC2ConfigService’.
The only problem is that all instance created from that AMI will have the same name…
I did that and now I can’t revert to the prior behavior… even if I check back the check box on it still keeps the name I gave it… I want to get the instances name by the ip back.
Wish I knew this before, arghhhhhhhh!
Strob:”The only problem is that all instance created from that AMI will have the same name”
So go into Control Panel/System and change the name by hand to whatever you want.
Awesome. hit the spot