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’
Recent Posts
- Stubbing class constants with rspec and Ruby
- Downloading All The Github Repositories
- Generating entropy in the cloud
- Disabling Firefox shortcuts on OS X
- Recreating the Opscode Chef validation key
- require-rubygems.overrides and gem2deb 0.2.2
- locale errors on debian
- Creating a Debian sid emi for Eucalyptus
- LVM errors with sbuild
- munin-cgi-graph with fcgid on ubuntu lucid
Archives
What I'm Doing...
- Sun and porchfilled bands (@ Somerville Porchfest w/ 14 others) http://t.co/adfUK54G 1 day ago
- Hooray Emma! #lesley2012 http://t.co/VDoaHVJQ 2 days ago
- @ScottMuc as in, the meatcloud. http://t.co/pyk67swq in reply to ScottMuc 3 days ago
- More updates...
Posting tweet...
Powered by Twitter Tools
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