Konstantin Vlasenko

An engineer is someone who can make for a dollar what any fool could make for two. – Alan Kay

AT: Moving Ahead With Amazon EC2 (Creating AMI by modifying the existing one)

  1. Login to the AWS Management Console
  2. Switch to EC2 tab
  3. Click on AMIs
  4. Select EBS image and Launch it
  5. Do not select micro or small instance at this step to avoid long running configuration
  6. Click on Instances
  7. Wait ~5 minutes and try to Get Windows Admin Password of your started instance
  8. RDP to your instance by using Public DNS (you can find it at the description tab for the running instance)
  9. Install latest Windows updates
  10. Make your additional changes
  11. Create Image (EBS AMI). Don’t worry about running state of the instance. It will be stopped automatically while making the new AMI.
  12. Click on AMIs
  13. Wait. You should get the new image Owned By Me
  14. Terminate running instance. You don’t need it anymore

AT: Moving Ahead With Amazon EC2 (Building the testing environment)

ATAcceptance Testing
For the first try I decided to build the following very simple Windows lab:

  • Domain Controller with DNS
  • Application Server

Here are some questions that you must have the answer before moving forward:

  • Which amazon images (AMI) to use for the virtual machines? How to create AMI for VMs?
    Actually had no any chance to create the AMI from scratch. Could not argue with anything here…but it is possible. I chose the easiest and fastest option to create AMI by modifying the one from the Amazon Machine Images library.
  • What is the difference between Instance-Store and EBS root devices?

    When you launch your Amazon EC2 instances you have the ability to store your root device data on Amazon EBS or the local instance store. By using Amazon EBS, data on the root device will persist independently from the lifetime of the instance. This enables you to stop and restart the instance at a subsequent time, which similar to shutting down your laptop and restarting it when you need it again.

    Alternatively, the local instance store only persists during the life of the instance. This is an inexpensive way to launch instances where data is not stored to the root device. For example, some customers use this option to run large web sites where each instance is a clone to handle web traffic.

  • In which Amazon Region you are going to implement your testing environment?

    Amazon EC2 provides the ability to place instances in multiple locations. Amazon EC2 locations are composed of Regions and Availability Zones. Availability Zones are distinct locations that are engineered to be insulated from failures in other Availability Zones and provide inexpensive, low latency network connectivity to other Availability Zones in the same Region. By launching instances in separate Availability Zones, you can protect your applications from failure of a single location. Regions consist of one or more Availability Zones, are geographically dispersed, and will be in separate geographic areas or countries. The Amazon EC2 Service Level Agreement commitment is 99.95% availability for each Amazon EC2 Region. Amazon EC2 is currently available in five regions: US East (Northern Virginia), US West (Northern California), EU (Ireland), Asia Pacific (Singapore), and Asia Pacific (Tokyo). – http://aws.amazon.com/ec2/

    I am personally decided to use US East region while my work place is in Russia. The price for instance here is the cheapest!

AT: Moving Ahead With Amazon EC2 (Prerequisites)

ATAcceptance Testing
You need to have RDP (3389) and SSH (22) access to the IP addresses from the Amazon EC2 Public IP Ranges to manage your testing environment. Ask your administrator to open this access in case you don’t have it. Don’t try to run an EC2 instance before you will have this access (it will be just the waste of money). Please keep in mind that you will be billed for 2 instance-hours if you start instance, stop it and start it again in scope of one hour.
Also you need to enable RDP (3389) and SSH (22) in your Default Security Group.

WCF and JSON

You can also use the WebGet attribute to specify the format for request and response messages By default, operations marked with WebGet send response messages formatted as XML data, and the WCF runtime serializes them as POX objects However, you can send response messages in JSON format by specifying the ResponseFormat property of the WebGet attribute with the value WebMessageFormat.Json, as shown here:
[WebGet(Uri Template = ". . .", ResponseFormat = WebMessageFormat.Json) ]
Windows® Communication Foundation 4 Step by Step

Исследование CNews: Где учились лучшие ИТ-менеджеры России

Ключевые фигуры российского ИТ-рынка имеют образование связанное с физико-математическими науками.

На мой взгляд, лучше всего либо получить фундаментальное образование в одном из ведущих вузов по математике или физике, что хорошо тренирует, прежде всего, умение приобретать знания, широко и системно мыслить, либо по экономике или юриспруденции, если склонности к точным наукам не наблюдается, – говорит Рязанцев. – А вот в дальнейшем надо устраиваться на работу в ИТ-компанию и постепенно делать в ней карьеру…Source

AT: Moving Ahead With Amazon EC2 (Intro)

ATAcceptance Testing
I’ve got ten hosts, but their capacity is almost 100% in use by virtual machines. Many of the hosts are obsolete and do not support new configurations. But I am against requesting new hosts.

If you’re part of a big company and need additional IT resources, you probably find you’re required to navigate through a process that includes a substantial amount of person-to-person communication and negotiation. Perhaps you send emails, create an online order or ticket, or simply pick up the phone and discuss your resource requirements. At the other end of the system there’s some manual work involved to approve the request; locate, allocate, and configure the hardware; deal with cables, routers, and firewalls; and so forth. It is not unheard of for this process to take 12–18 months in some organizations! – Host Your Web Site in the Cloud: Amazon Web Services Made Easy by Jeff Barr

To give you an approximate estimation, screwing around with setting up hosts and VMs takes about 40% of development. This is true, of course, if you yourselves are responsible for the quality of what you develop (can there be another way?). I’d like to keep this 40% to play with the test environment, after removing everything supporting virtualization hosts, VMs setup. I mean, I’d like to concentrate solely on research and development, not on virtualization management. Everything in our agile process is good and satisfying, except for this archaic approach to using virtualization. I’ve decided to try using Amazon EC2 as an option to set up the product testing environment…

PowerShell: Download File

(new-object System.Net.WebClient).DownloadFile(‘http://macosoft.gnom/files/xon.png’, ‘c:\xon.png’)

AWS CloudFormation

AWS CloudFormation gives developers and systems administrators an easy way to create a collection of related AWS resources and provision them in an orderly and predictable fashion.
With CloudFormation, you can start and stop an entire environment with one operation.

It’s very similar to Microsoft Azure’s approach with their .cscfg and .csdef files which are an analogous XML model – you really could fairly call this feature “Amazon implements Azure on Amazon” (just as you could fairly call Elastic Beanstalk “Amazon implements Google App Engine on Amazon”.)
Amazon CloudFormation: Model Driven Automation For The Cloud

There is one nasty thing at the moment is that there is no support for Spot Instances in the CloudFormation :(

Enable NetBIOS over TCP/IP

To enable NetBIOS over TCP/IP first identify the adapters index number using
wmic nicconfig get caption,index,TcpipNetbiosOptions

then using one of the following values:
0 – Use NetBios setting from DHCP
1 – Enable NetBios over TCP/IP
2 – Disable NetBios over TCP/IP

set the required NetBIOS over TCP/IP value to each Nic.
wmic nicconfig where index=1 call SetTcpipNetbios 1

Enable Server Core remote management from any MMC snap-in through the firewall

netsh advfirewall firewall set rule group="Remote Administration" new enable=yes
You can always run the following command in order to disable this option:
netsh advfirewall firewall set rule group="Remote Administration" new enable=no

Follow

Get every new post delivered to your Inbox.